org.hibernate.dialect
Class DerbyDialect.DerbyTrimFunctionEmulation
java.lang.Object
org.hibernate.dialect.DerbyDialect.DerbyTrimFunctionEmulation
- DerbyDialect
- SQLFunction
public static class DerbyDialect.DerbyTrimFunctionEmulation
extends java.lang.Object
A specialized function template to emulate the ANSI trim function on Derby DB
since it does not support the full trim specification. However, we cannot even
fully emulate it because there is not standard 'replace' function either. :(
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.