Package org.hibernate.dialect.function
Class SQLFunctionRegistry
- java.lang.Object
-
- org.hibernate.dialect.function.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 nameboolean
hasFunction(java.lang.String functionName)
Does this registry contain the named function
-
-
-
Constructor Detail
-
SQLFunctionRegistry
public SQLFunctionRegistry(Dialect dialect, java.util.Map<java.lang.String,SQLFunction> userFunctionMap)
Constructs a SQLFunctionRegistry- Parameters:
dialect
- The dialectuserFunctionMap
- 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
-
-