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 boolean
If this function always returns the same value for the same parameters.final String
The name of the function.final boolean
If the result of the function is NULL if any of the parameters is NULL.(package private) final int
The number of parameters.final int
The data type of the return value.final int
The 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. -
parameterCount
final int parameterCountThe number of parameters. -
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
-