Package org.h2.mode
Class FunctionInfo
- java.lang.Object
-
- org.h2.mode.FunctionInfo
-
public final class FunctionInfo extends java.lang.ObjectThis class contains information about a built-in function.
-
-
Field Summary
Fields Modifier and Type Field Description booleandeterministicIf this function always returns the same value for the same parameters.java.lang.StringnameThe name of the function.booleannullIfParameterIsNullIf the result of the function is NULL if any of the parameters is NULL.(package private) intparameterCountThe number of parameters.intreturnDataTypeThe data type of the return value.inttypeThe function type.
-
Constructor Summary
Constructors Constructor Description FunctionInfo(java.lang.String name, int type, int parameterCount, int returnDataType, boolean nullIfParameterIsNull, boolean deterministic)Creates new instance of built-in function information.FunctionInfo(FunctionInfo source, java.lang.String name)Creates a copy of built-in function information with a different name.
-
-
-
Field Detail
-
name
public final java.lang.String name
The name of the function.
-
type
public final int type
The function type.
-
parameterCount
final int parameterCount
The number of parameters.
-
returnDataType
public final int returnDataType
The data type of the return value.
-
nullIfParameterIsNull
public final boolean nullIfParameterIsNull
If the result of the function is NULL if any of the parameters is NULL.
-
deterministic
public final boolean deterministic
If this function always returns the same value for the same parameters.
-
-
Constructor Detail
-
FunctionInfo
public FunctionInfo(java.lang.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
public FunctionInfo(FunctionInfo source, java.lang.String name)
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
-
-