Top Description Fields Constructors Methods
org.hibernate.dialect.function

public Class SQLFunctionRegistry

extends Object
Class Inheritance
Imports
java.util.Map, .TreeMap, org.hibernate.dialect.Dialect

Defines a registry for SQLFunction instances
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Map<String, SQLFunction>

Constructor Summary

AccessConstructor and Description
public
SQLFunctionRegistry(Dialect
The dialect
dialect
,
Map<String, SQLFunction>
Any application-supplied function definitions
userFunctionMap
)

Constructs a SQLFunctionRegistry

Method Summary

Modifier and TypeMethod and Description
public SQLFunction

Returns:

The located function, maye return null
findSQLFunction
(String
The name of the function to locate
functionName
)

Find a SQLFunction by name

public boolean

Returns:

true if the registry contained that function
hasFunction
(String
The name of the function to attempt to locate
functionName
)

Does this registry contain the named function

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionMapback to summary
private final Map<String, SQLFunction> functionMap

Constructor Detail

SQLFunctionRegistryback to summary
public SQLFunctionRegistry(Dialect dialect, Map<String, SQLFunction> userFunctionMap)

Constructs a SQLFunctionRegistry

Parameters
dialect:Dialect

The dialect

userFunctionMap:Map<String, SQLFunction>

Any application-supplied function definitions

Method Detail

findSQLFunctionback to summary
public SQLFunction findSQLFunction(String functionName)

Find a SQLFunction by name

Parameters
functionName:String

The name of the function to locate

Returns:SQLFunction

The located function, maye return null

hasFunctionback to summary
public boolean hasFunction(String functionName)

Does this registry contain the named function

Parameters
functionName:String

The name of the function to attempt to locate

Returns:boolean

true if the registry contained that function

Annotations
@SuppressWarnings:UnusedDeclaration