Package org.h2.mode

Class ModeFunction

    • Field Detail

      • VAR_ARGS

        protected static final int VAR_ARGS
        Constant for variable number of arguments.
        See Also:
        Constant Field Values
      • info

        protected final FunctionInfo info
        The information about this function.
    • Method Detail

      • getFunction

        public static ModeFunction getFunction​(Database database,
                                               java.lang.String name)
        Get an instance of the given function for this database. If no function with this name is found, null is returned.
        Parameters:
        database - the database
        name - the upper case function name
        Returns:
        the function object or null
      • getCompatibilityDateTimeValueFunction

        public static Expression getCompatibilityDateTimeValueFunction​(Database database,
                                                                       java.lang.String name,
                                                                       int scale)
        Get an instance of the given function without parentheses for this database. If no function with this name is found, null is returned.
        Parameters:
        database - the database
        name - the upper case function name
        scale - the scale, or -1
        Returns:
        the function object or null
      • getName

        public java.lang.String getName()
        Description copied from interface: NamedExpression
        Get the name.
        Returns:
        the name in uppercase
      • isEverything

        public boolean isEverything​(ExpressionVisitor visitor)
        Description copied from class: Expression
        Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
        Overrides:
        isEverything in class OperationN
        Parameters:
        visitor - the visitor
        Returns:
        if the criteria can be fulfilled