Package org.h2.mode
Class FunctionInfo
java.lang.Object
org.h2.mode.FunctionInfo
This class contains information about a built-in function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanIf this function always returns the same value for the same parameters.final StringThe name of the function.final booleanIf the result of the function is NULL if any of the parameters is NULL.final intThe data type of the return value.final intThe function type. -
Constructor Summary
ConstructorsConstructorDescriptionFunctionInfo(String name, int type, int parameterCount, int returnDataType, boolean nullIfParameterIsNull, boolean deterministic) Creates new instance of built-in function information.FunctionInfo(FunctionInfo source, String name) Creates a copy of built-in function information with a different name. -
Method Summary
-
Field Details
-
name
The name of the function. -
type
public final int typeThe function type. -
returnDataType
public final int returnDataTypeThe data type of the return value. -
nullIfParameterIsNull
public final boolean nullIfParameterIsNullIf the result of the function is NULL if any of the parameters is NULL. -
deterministic
public final boolean deterministicIf this function always returns the same value for the same parameters.
-
-
Constructor Details
-
FunctionInfo
public FunctionInfo(String name, int type, int parameterCount, int returnDataType, boolean nullIfParameterIsNull, boolean deterministic) Creates new instance of built-in function information.- Parameters:
name- the name of the functiontype- the function typeparameterCount- the number of parametersreturnDataType- the data type of the return valuenullIfParameterIsNull- if the result of the function is NULL if any of the parameters is NULLdeterministic- if this function always returns the same value for the same parameters
-
FunctionInfo
Creates a copy of built-in function information with a different name. A copy will require parentheses.- Parameters:
source- the source informationname- the new name
-