ValueStringFixed
Implementation of the CHAR data type.
| Methods |
| static ValueStringFixed |
get(String s)
Get or create a fixed length string value for the given string.
|
| static ValueStringFixed |
get(String s)
Get or create a fixed length string value for the given string.
Spaces at the end of the string will be removed.
Parameters:
s - the string
Returns:
the value
|
| static ValueStringFixed |
get(String s, int precision, Mode mode)
Get or create a fixed length string value for the given string.
|
| static ValueStringFixed |
get(String s, int precision, Mode mode)
Get or create a fixed length string value for the given string.
This method will use a {@link Mode}-specific conversion when mode is not
null.
Otherwise it will use the default H2 behaviour of trimming the given string if
precision is not {@link #PRECISION_DO_NOT_TRIM}.
Parameters:
s - the string
precision - if the {@link Mode#padFixedLengthStrings} indicates that strings should
be padded, this defines the overall length of the (potentially padded) string.
If the special constant {@link #PRECISION_DO_NOT_TRIM} is used the value will
not be trimmed.
mode - the database mode
Returns:
the value
|
| ValueString |
getNew(String s)
|
| ValueString |
getNew(String s)
|
| int |
getType()
|
| int |
getType()
|
PRECISION_TRIM
= -1
Special value for the precision in {@link #get(String, int, Mode)} to indicate
that the default behaviour should of trimming the value should apply.
PRECISION_DO_NOT_TRIM
= -2147483648
Special value for the precision in {@link #get(String, int, Mode)} to indicate that the value
should not be trimmed.