org.hibernate.dialect.function
Class CastFunction
java.lang.Objectorg.hibernate.dialect.function.CastFunction
- SQLFunction
public class CastFunction
extends java.lang.Object
ANSI-SQL style cast(foo as type) where the type is
a Hibernate type
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.