Class SQLFunctionRegistry


  • public class SQLFunctionRegistry
    extends Object
    Defines a registry for SQLFunction instances
    • Constructor Detail

      • SQLFunctionRegistry

        public SQLFunctionRegistry​(Dialect dialect,
                                   Map<String,​SQLFunction> userFunctionMap)
        Constructs a SQLFunctionRegistry
        Parameters:
        dialect - The dialect
        userFunctionMap - Any application-supplied function definitions
    • Method Detail

      • findSQLFunction

        public SQLFunction findSQLFunction​(String functionName)
        Find a SQLFunction by name
        Parameters:
        functionName - The name of the function to locate
        Returns:
        The located function, maye return null
      • hasFunction

        public boolean hasFunction​(String functionName)
        Does this registry contain the named function
        Parameters:
        functionName - The name of the function to attempt to locate
        Returns:
        true if the registry contained that function