| Access | Constructor and Description |
|---|---|
| public | StandardSQLFunction(String
The name of the function. 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. |
| public | StandardSQLFunction(String
The name of the function. name, Type The static return type. registeredType)Construct a standard SQL function definition with a static return type. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| protected String | |
| public Type | getReturnType(Type
The type of the first argument firstArgumentType, Mapping The mapping source. mapping)Implements org. |
| public Type | Returns: The static function return type; or null if return type is not static.Function static return type accessor. |
| public boolean | hasArguments()
Implements org. |
| public boolean | hasParenthesesIfNoArguments()
Implements org. |
| public String | render(Type
The type of the first argument firstArgumentType, List<E> The function arguments arguments, SessionFactoryImplementor The SessionFactory sessionFactory)Implements org.
Deprecated
as a consequence of
Render the function call as SQL fragment.
SessionFactoryImplementor being deprecated.
|
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| registeredType | back to summary |
|---|---|
| private final Type registeredType | |
| StandardSQLFunction | back to summary |
|---|---|
| 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.
| |
| StandardSQLFunction | back to summary |
|---|---|
| public StandardSQLFunction(String name, Type registeredType) Construct a standard SQL function definition with a static return type. | |
| getName | back to summary |
|---|---|
| public String getName() Function name accessor
| |
| getRenderedName | back to summary |
|---|---|
| protected String getRenderedName(List<E> arguments) | |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType(Type firstArgumentType, Mapping mapping) Implements org. Doc from org. The return type of the function. May be either a concrete type which is preset, or variable depending upon the type of the first function argument.
Note, the 'firstArgumentType' parameter should match the one passed into | |
| getType | back to summary |
|---|---|
| public Type getType() Function static return type accessor.
| |
| hasArguments | back to summary |
|---|---|
| public boolean hasArguments() Implements org. Doc from org. Does this function have any arguments?
| |
| hasParenthesesIfNoArguments | back to summary |
|---|---|
| public boolean hasParenthesesIfNoArguments() Implements org. Doc from org. If there are no arguments, are parentheses required?
| |
| render | back to summary |
|---|---|
| public String render(Type firstArgumentType, List<E> arguments, SessionFactoryImplementor sessionFactory) Implements org. Doc from org. Deprecated as a consequence of Render the function call as SQL fragment.
Note, the 'firstArgumentType' parameter should match the one passed into
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |