| Access | Constructor and Description |
|---|---|
| public | NoArgSQLFunction(String
The function name name, Type The function return type returnType)Constructs a NoArgSQLFunction |
| public | NoArgSQLFunction(String
The function name name, Type The function return type returnType, boolean Does the function call need parenthesis if there are no arguments? hasParenthesesIfNoArguments)Constructs a NoArgSQLFunction |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public Type | getReturnType(Type
The type of the first argument argumentType, Mapping The mapping source. mapping)Implements org. |
| public boolean | hasArguments()
Implements org. |
| public boolean | hasParenthesesIfNoArguments()
Implements org. |
| public String | render(Type
The type of the first argument argumentType, List<E> The function arguments args, SessionFactoryImplementor The SessionFactory factory)Implements org.
Deprecated
as a consequence of
Render the function call as SQL fragment.
SessionFactoryImplementor being deprecated.
|
| hasParenthesesIfNoArguments | back to summary |
|---|---|
| private boolean hasParenthesesIfNoArguments | |
| name | back to summary |
|---|---|
| private String name | |
| returnType | back to summary |
|---|---|
| private Type returnType | |
| NoArgSQLFunction | back to summary |
|---|---|
| public NoArgSQLFunction(String name, Type returnType) Constructs a NoArgSQLFunction | |
| NoArgSQLFunction | back to summary |
|---|---|
| public NoArgSQLFunction(String name, Type returnType, boolean hasParenthesesIfNoArguments) Constructs a NoArgSQLFunction | |
| getName | back to summary |
|---|---|
| protected String getName() | |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType(Type argumentType, Mapping mapping) throws QueryException 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
| |
| 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 argumentType, List<E> args, SessionFactoryImplementor factory) throws QueryException 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
| |