public class ValueEnum extends ValueEnumBase
Value.ValueBlob, Value.ValueClob
ARRAY, 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(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(String[] enumerators,
int value)
Create an ENUM value from the provided enumerators
and value.
|
static ValueEnum |
get(String[] enumerators,
String value) |
String[] |
getEnumerators() |
static boolean |
isValid(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, subtract
checkPrecision, 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, toString
public static void check(String[] enumerators)
enumerators
- the enumeratorsprotected int compareSecure(Value v, CompareMode mode)
Value
compareSecure
in class ValueEnumBase
v
- the other valuemode
- the compare modepublic static ValueEnum get(String[] enumerators, int value)
enumerators
- the enumeratorsvalue
- a valuepublic String[] getEnumerators()
Copyright © 2020 JBoss by Red Hat. All rights reserved.