Package com.mckoi.database
Interface FunctionInfo
- All Known Implementing Classes:
FunctionFactory.FF_FunctionInfo
public interface FunctionInfo
Meta information about a function. Used to compile information about a
particular function.
- Author:
- Tobias Downer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A type that represents an aggregate function.static final int
A function that is non-aggregate but whose return value is not guarenteed to be the same given the identical parameters over subsequent calls.static final int
A type that represents a static function. -
Method Summary
-
Field Details
-
STATIC
static final int STATICA type that represents a static function. A static function is not an aggregate therefore does not require a GroupResolver. The result of a static function is guarenteed the same given identical parameters over subsequent calls.- See Also:
-
AGGREGATE
static final int AGGREGATEA type that represents an aggregate function. An aggregate function requires the GroupResolver variable to be present in able to resolve the function over some set. The result of an aggregate function is guarenteed the same given the same set and identical parameters.- See Also:
-
STATE_BASED
static final int STATE_BASEDA function that is non-aggregate but whose return value is not guarenteed to be the same given the identical parameters over subsequent calls. This would include functions such as RANDOM and UNIQUEKEY. The result is dependant on some other state (a random seed and a sequence value).- See Also:
-
-
Method Details
-
getName
String getName()The name of the function as used by the SQL grammar to reference it. -
getType
int getType()The type of function, either STATIC, AGGREGATE or STATE_BASED (eg. result is not dependant entirely from input but from another state for example RANDOM and UNIQUEKEY functions). -
getFunctionFactoryName
String getFunctionFactoryName()The name of the function factory class that this function is handled by. For example, "com.mckoi.database.InternalFunctionFactory".
-