Class StandardSQLFunction

    • Constructor Summary

      Constructors 
      Constructor Description
      StandardSQLFunction​(java.lang.String name)
      Construct a standard SQL function definition with a variable return type; the actual return type will depend on the types to which the function is applied.
      StandardSQLFunction​(java.lang.String name, Type registeredType)
      Construct a standard SQL function definition with a static return type.
    • Constructor Detail

      • StandardSQLFunction

        public StandardSQLFunction​(java.lang.String name)
        Construct a standard SQL function definition with a variable return type; the actual return type will depend on the types to which the function is applied.

        Using this form, the return type is considered non-static and assumed to be the type of the first argument.

        Parameters:
        name - The name of the function.
      • StandardSQLFunction

        public StandardSQLFunction​(java.lang.String name,
                                   Type registeredType)
        Construct a standard SQL function definition with a static return type.
        Parameters:
        name - The name of the function.
        registeredType - The static return type.
    • Method Detail

      • getName

        public java.lang.String getName()
        Function name accessor
        Returns:
        The function name.
      • getType

        public Type getType()
        Function static return type accessor.
        Returns:
        The static function return type; or null if return type is not static.
      • hasArguments

        public boolean hasArguments()
        Description copied from interface: SQLFunction
        Does this function have any arguments?
        Specified by:
        hasArguments in interface SQLFunction
        Returns:
        True if the function expects to have parameters; false otherwise.
      • hasParenthesesIfNoArguments

        public boolean hasParenthesesIfNoArguments()
        Description copied from interface: SQLFunction
        If there are no arguments, are parentheses required?
        Specified by:
        hasParenthesesIfNoArguments in interface SQLFunction
        Returns:
        True if a no-arg call of this function requires parentheses.
      • getRenderedName

        protected java.lang.String getRenderedName​(java.util.List arguments)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object