org.hibernate.dialect.function
Class StandardSQLFunction
java.lang.Object
org.hibernate.dialect.function.StandardSQLFunction
- SQLFunction
public class StandardSQLFunction
extends java.lang.Object
Provides a standard implementation that supports the majority of the HQL
functions that are translated to SQL. The Dialect and its sub-classes use
this class to provide details required for processing of the associated
function.
StandardSQLFunction(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(String name, Type type) - Construct a standard SQL function definition with a static return type.
|
StandardSQLFunction
public StandardSQLFunction(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.
name
- The name of the function.
StandardSQLFunction
public StandardSQLFunction(String name,
Type type)
Construct a standard SQL function definition with a static return type.
name
- The name of the function.type
- The static return type.
getName
public String getName()
Function name accessor
getType
public Type getType()
Function static return type accessor.
- The static function return type; or null if return type is
not static.
toString
public String toString()