org.hibernate.dialect.function
Class VarArgsSQLFunction
java.lang.Object
org.hibernate.dialect.function.VarArgsSQLFunction
- SQLFunction
public class VarArgsSQLFunction
extends java.lang.Object
Support for slightly more general templating than StandardSQLFunction,
with an unlimited number of arguments.
VarArgsSQLFunction
public VarArgsSQLFunction(String begin,
String sep,
String end)
VarArgsSQLFunction
public VarArgsSQLFunction(Type type,
String begin,
String sep,
String end)
getReturnType
public Type getReturnType(Type columnType,
Mapping mapping)
throws QueryException
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.
- getReturnType in interface SQLFunction
columnType
- the type of the first argumentmapping
- The mapping source.
- The type to be expected as a return.
hasArguments
public boolean hasArguments()
Does this function have any arguments?
- hasArguments in interface SQLFunction
- True if the function expects to have parameters; false otherwise.
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
If there are no arguments, are parens required?
- hasParenthesesIfNoArguments in interface SQLFunction
- True if a no-arg call of this function requires parentheses.