Class SQLFunctionRegistry


  • public class SQLFunctionRegistry
    extends java.lang.Object
    Defines a registry for SQLFunction instances
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLFunctionRegistry​(Dialect dialect, java.util.Map<java.lang.String,​SQLFunction> userFunctionMap)
      Constructs a SQLFunctionRegistry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SQLFunction findSQLFunction​(java.lang.String functionName)
      Find a SQLFunction by name
      boolean hasFunction​(java.lang.String functionName)
      Does this registry contain the named function
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLFunctionRegistry

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

      • findSQLFunction

        public SQLFunction findSQLFunction​(java.lang.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​(java.lang.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