Package org.h2.mode

Class FunctionInfo

java.lang.Object
org.h2.mode.FunctionInfo

public final class FunctionInfo extends Object
This class contains information about a built-in function.
  • Field Details

    • name

      public final 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 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 function
      type - the function type
      parameterCount - the number of parameters
      returnDataType - the data type of the return value
      nullIfParameterIsNull - if the result of the function is NULL if any of the parameters is NULL
      deterministic - if this function always returns the same value for the same parameters
    • FunctionInfo

      public FunctionInfo(FunctionInfo source, String name)
      Creates a copy of built-in function information with a different name. A copy will require parentheses.
      Parameters:
      source - the source information
      name - the new name