java.lang.Object | ||
↳ | org.hibernate.dialect.function.AbstractAnsiTrimEmulationFunction | |
↳ | org.hibernate.dialect.function.AnsiTrimEmulationFunction |
A SQLFunction
implementation that emulates the ANSI SQL trim function
on dialects which do not support the full definition. However, this function
definition does assume the availability of ltrim, rtrim, and replace functions
which it uses in various combinations to emulate the desired ANSI trim()
functionality.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BOTH_SPACE_TRIM_FROM_TEMPLATE | ||||||||||
String | BOTH_SPACE_TRIM_TEMPLATE | ||||||||||
String | BOTH_TRIM_TEMPLATE | A template for the series of calls required to trim non-space chars from both the beginning and the end of text. | |||||||||
String | LEADING_SPACE_TRIM_TEMPLATE | ||||||||||
String | LEADING_TRIM_TEMPLATE | A template for the series of calls required to trim non-space chars from the beginning of text. | |||||||||
String | LTRIM | ||||||||||
String | REPLACE | ||||||||||
String | RTRIM | ||||||||||
String | SPACE_PLACEHOLDER | ||||||||||
String | TRAILING_SPACE_TRIM_TEMPLATE | ||||||||||
String | TRAILING_TRIM_TEMPLATE | A template for the series of calls required to trim non-space chars from the end of text. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a trim() emulation function definition using the specified function calls.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resolve the function definition which should be used to trim both leading and trailing spaces.
| |||||||||||
Resolve the function definition which should be used to trim both leading and trailing spaces.
| |||||||||||
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.
| |||||||||||
Resolve the function definition which should be used to trim leading spaces.
| |||||||||||
Resolve the function definition which should be used to trim the specified character from the
beginning (leading) of the trim source.
| |||||||||||
Resolve the function definition which should be used to trim trailing spaces.
| |||||||||||
Resolve the function definition which should be used to trim the specified character from the
end (trailing) of the trim source.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.dialect.function.AbstractAnsiTrimEmulationFunction
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.dialect.function.SQLFunction
|
A template for the series of calls required to trim non-space chars from both the beginning and the end of text.
NOTE: again, we have a series of calls that is essentially the same as outlined inLEADING_TRIM_TEMPLATE
except that here we perform both left (leading) and right (trailing) trimming.
A template for the series of calls required to trim non-space chars from the beginning of text.
NOTE : essentially we:A template for the series of calls required to trim non-space chars from the end of text.
NOTE: essentially the same series of calls as outlined inLEADING_TRIM_TEMPLATE
except that here,
instead of left-trimming the added spaces, we right-trim them to remove them from the end of the text.
Constructs a trim() emulation function definition using the specified function calls.
ltrimFunctionName | The left trim function to use. |
---|---|
rtrimFunctionName | The right trim function to use. |
replaceFunctionName | The replace function to use. |
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 duringrender(Type, List, SessionFactoryImplementor)
processing.
Resolve the function definition which should be used to trim both leading and trailing spaces.
In this form, the imput arguments is missing the FROM keyword.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.
Resolve the function definition which should be used to trim leading spaces.
Resolve the function definition which should be used to trim the specified character from the beginning (leading) of the trim source.
Resolve the function definition which should be used to trim trailing spaces.
Resolve the function definition which should be used to trim the specified character from the end (trailing) of the trim source.