org.hibernate.dialect.function.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.
Follows the template pattern in order to implement
the render method.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Type | getReturnType(Type
The type of the first argument argumentType, Mapping The mapping source. mapping)Implements org. |
| public final boolean | hasArguments()
Implements org. |
| public final boolean | hasParenthesesIfNoArguments()
Implements org. |
| public final String | render(Type
The type of the first argument argumentType, List<E> The function arguments args, SessionFactoryImplementor The SessionFactory factory)Implements org.
Deprecated
as a consequence of
Render the function call as SQL fragment.
SessionFactoryImplementor being deprecated.
|
| protected abstract SQLFunction | Returns: The sql functionResolve the function definition which should be used to trim both leading and trailing spaces. |
| protected abstract SQLFunction | Returns: The sql functionResolve the function definition which should be used to trim both leading and trailing spaces. |
| protected abstract SQLFunction | Returns: The sql functionResolve 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 | Returns: The sql functionResolve the function definition which should be used to trim leading spaces. |
| protected abstract SQLFunction | Returns: The sql functionResolve the function definition which should be used to trim the specified character from the beginning (leading) of the trim source. |
| protected abstract SQLFunction | Returns: The sql functionResolve the function definition which should be used to trim trailing spaces. |
| protected abstract SQLFunction | Returns: The sql functionResolve the function definition which should be used to trim the specified character from the end (trailing) of the trim source. |
| AbstractAnsiTrimEmulationFunction | back to summary |
|---|---|
| public AbstractAnsiTrimEmulationFunction() | |
| getReturnType | back to summary |
|---|---|
| public final Type getReturnType(Type argumentType, Mapping mapping) throws QueryException Implements org. Doc from org. 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.
Note, the 'firstArgumentType' parameter should match the one passed into
| |
| hasArguments | back to summary |
|---|---|
| public final boolean hasArguments() Implements org. Doc from org. Does this function have any arguments?
| |
| hasParenthesesIfNoArguments | back to summary |
|---|---|
| public final boolean hasParenthesesIfNoArguments() Implements org. Doc from org. If there are no arguments, are parentheses required?
| |
| render | back to summary |
|---|---|
| public final String render(Type argumentType, List<E> args, SessionFactoryImplementor factory) throws QueryException Implements org. Doc from org. Deprecated as a consequence of Render the function call as SQL fragment.
Note, the 'firstArgumentType' parameter should match the one passed into
| |
| resolveBothSpaceTrimFromFunction | back to summary |
|---|---|
| protected abstract SQLFunction resolveBothSpaceTrimFromFunction() Resolve the function definition which should be used to trim both leading and trailing spaces.
The same as {#link resolveBothSpaceTrimFunction} except that here theFROM is included and
will need to be accounted for during
| |
| resolveBothSpaceTrimFunction | back to summary |
|---|---|
| protected abstract SQLFunction resolveBothSpaceTrimFunction() Resolve the function definition which should be used to trim both leading and trailing spaces. In this form, the input arguments is missing the FROM keyword.
| |
| resolveBothTrimFunction | back to summary |
|---|---|
| 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.
| |
| resolveLeadingSpaceTrimFunction | back to summary |
|---|---|
| protected abstract SQLFunction resolveLeadingSpaceTrimFunction() Resolve the function definition which should be used to trim leading spaces.
| |
| resolveLeadingTrimFunction | back to summary |
|---|---|
| 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.
| |
| resolveTrailingSpaceTrimFunction | back to summary |
|---|---|
| protected abstract SQLFunction resolveTrailingSpaceTrimFunction() Resolve the function definition which should be used to trim trailing spaces.
| |
| resolveTrailingTrimFunction | back to summary |
|---|---|
| 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.
| |