public class ValueStringFixed extends ValueString
Value.ValueBlob, Value.ValueClob| Modifier and Type | Field and Description |
|---|---|
static int |
PRECISION_DO_NOT_TRIM
Special value for the precision in
get(String, int, Mode) to indicate that the value
should not be trimmed. |
static int |
PRECISION_TRIM
Special value for the precision in
get(String, int, Mode) to indicate
that the default behaviour should of trimming the value should apply. |
valueARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, ENUM, FLOAT, GEOMETRY, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUID| Modifier | Constructor and Description |
|---|---|
protected |
ValueStringFixed(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
static ValueStringFixed |
get(java.lang.String s)
Get or create a fixed length string value for the given string.
|
static ValueStringFixed |
get(java.lang.String s,
int precision,
Mode mode)
Get or create a fixed length string value for the given string.
|
protected ValueString |
getNew(java.lang.String s)
Create a new String value of the current class.
|
int |
getType()
Get the value type.
|
compareSecure, convertPrecision, equals, get, getDisplaySize, getMemory, getObject, getPrecision, getSQL, getString, hashCode, setadd, checkPrecision, clearCache, compareTo, compareTypeSafe, convertScale, convertTo, convertTo, convertTo, convertToEnum, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getReader, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract, throwUnsupportedExceptionForType, toStringpublic static final int PRECISION_DO_NOT_TRIM
get(String, int, Mode) to indicate that the value
should not be trimmed.public static final int PRECISION_TRIM
get(String, int, Mode) to indicate
that the default behaviour should of trimming the value should apply.public int getType()
ValuegetType in class ValueStringpublic static ValueStringFixed get(java.lang.String s)
s - the stringpublic static ValueStringFixed get(java.lang.String s, int precision, Mode mode)
This method will use a 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 PRECISION_DO_NOT_TRIM.
s - the stringprecision - if the Mode.padFixedLengthStrings indicates that strings should
be padded, this defines the overall length of the (potentially padded) string.
If the special constant PRECISION_DO_NOT_TRIM is used the value will
not be trimmed.mode - the database modeprotected ValueString getNew(java.lang.String s)
ValueStringgetNew in class ValueStrings - the string