public class ValueEnum extends ValueEnumBase
Value.ValueBlob, Value.ValueClobARRAY, 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 and Type | Method and Description |
|---|---|
static void |
check(java.lang.String[] enumerators)
Check for any violations, such as empty
values, duplicate values.
|
protected int |
compareSecure(Value v,
CompareMode mode)
Compare the value with another value of the same type.
|
static ValueEnum |
get(java.lang.String[] enumerators,
int value)
Create an ENUM value from the provided enumerators
and value.
|
static ValueEnum |
get(java.lang.String[] enumerators,
java.lang.String value) |
java.lang.String[] |
getEnumerators() |
static boolean |
isValid(java.lang.String[] enumerators,
Value value)
Evaluates whether a valid ENUM can be constructed
from the provided enumerators and value.
|
add, divide, equals, get, getDisplaySize, getInt, getLong, getObject, getPrecision, getSignum, getSQL, getString, getType, hashCode, modulus, multiply, set, subtractcheckPrecision, clearCache, compareTo, compareTypeSafe, convertPrecision, convertScale, convertTo, convertTo, convertTo, convertToEnum, copy, copyToResult, copyToTemp, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getMemory, getReader, getReader, getResultSet, getScale, getShort, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, negate, remove, throwUnsupportedExceptionForType, toStringpublic static void check(java.lang.String[] enumerators)
enumerators - the enumeratorsprotected int compareSecure(Value v, CompareMode mode)
ValuecompareSecure in class ValueEnumBasev - the other valuemode - the compare modepublic static ValueEnum get(java.lang.String[] enumerators, int value)
enumerators - the enumeratorsvalue - a valuepublic static ValueEnum get(java.lang.String[] enumerators, java.lang.String value)
public java.lang.String[] getEnumerators()
public static boolean isValid(java.lang.String[] enumerators,
Value value)
enumerators - the enumeratorsvalue - the value