|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.dialect.function.AbstractAnsiTrimEmulationFunction
public abstract class AbstractAnsiTrimEmulationFunction
A SQLFunction
providing support for implementing TRIM functionality
(as defined by both the ANSI SQL and JPA specs) in cases where the dialect may not support the full trim
function itself.
render(java.util.List, org.hibernate.engine.SessionFactoryImplementor)
method.
Constructor Summary | |
---|---|
AbstractAnsiTrimEmulationFunction()
|
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. |
protected abstract SQLFunction |
resolveBothSpaceTrimFromFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces. |
protected abstract SQLFunction |
resolveBothSpaceTrimFunction()
Resolve the function definition which should be used to trim both leading and trailing spaces. |
protected abstract SQLFunction |
resolveBothTrimFunction()
Resolve the function definition which should be used to trim the specified character from both the beginning (leading) and end (trailing) of the trim source. |
protected abstract SQLFunction |
resolveLeadingSpaceTrimFunction()
Resolve the function definition which should be used to trim leading spaces. |
protected abstract SQLFunction |
resolveLeadingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the beginning (leading) of the trim source. |
protected abstract SQLFunction |
resolveTrailingSpaceTrimFunction()
Resolve the function definition which should be used to trim trailing spaces. |
protected abstract SQLFunction |
resolveTrailingTrimFunction()
Resolve the function definition which should be used to trim the specified character from the end (trailing) of the trim source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAnsiTrimEmulationFunction()
Method Detail |
---|
public final Type getReturnType(Type columnType, Mapping mapping) throws QueryException
getReturnType
in interface SQLFunction
columnType
- the type of the first argumentmapping
- The mapping source.
QueryException
- Indicates an issue resolving the return type.public final boolean hasArguments()
hasArguments
in interface SQLFunction
public final boolean hasParenthesesIfNoArguments()
hasParenthesesIfNoArguments
in interface SQLFunction
public final String render(List args, SessionFactoryImplementor factory) throws QueryException
render
in interface SQLFunction
args
- The function argumentsfactory
- The SessionFactory
QueryException
- Indicates a problem rendering the
function call.protected abstract SQLFunction resolveBothSpaceTrimFunction()
protected abstract SQLFunction resolveBothSpaceTrimFromFunction()
SQLFunction.render(java.util.List, org.hibernate.engine.SessionFactoryImplementor)
processing.
protected abstract SQLFunction resolveLeadingSpaceTrimFunction()
protected abstract SQLFunction resolveTrailingSpaceTrimFunction()
protected abstract SQLFunction resolveBothTrimFunction()
protected abstract SQLFunction resolveLeadingTrimFunction()
protected abstract SQLFunction resolveTrailingTrimFunction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |