|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.dialect.DerbyDialect.DerbyTrimFunctionEmulation
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. :(
Constructor Summary | |
DerbyDialect.DerbyTrimFunctionEmulation()
|
Method Summary | |
Type |
getReturnType(Type columnType,
Mapping mapping)
The return type of the function. |
boolean |
hasArguments()
Does this function have any arguments? |
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parens required? |
String |
render(List args,
SessionFactoryImplementor factory)
Render the function call as SQL fragment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DerbyDialect.DerbyTrimFunctionEmulation()
Method Detail |
public Type getReturnType(Type columnType, Mapping mapping) throws QueryException
SQLFunction
getReturnType
in interface SQLFunction
columnType
- the type of the first argumentmapping
- The mapping source.
QueryException
- Indicates an issue resolving the return type.public boolean hasArguments()
SQLFunction
hasArguments
in interface SQLFunction
public boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments
in interface SQLFunction
public String render(List args, SessionFactoryImplementor factory) throws QueryException
SQLFunction
render
in interface SQLFunction
args
- The function argumentsfactory
- The SessionFactory
QueryException
- Indicates a problem rendering the
function call.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |