public final class ExtTypeInfoEnum extends ExtTypeInfo
| Constructor and Description |
|---|
ExtTypeInfoEnum(java.lang.String[] enumerators)
Creates new instance of extended parameters of the ENUM data type.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
cast(Value value)
Casts a specified value to this data type.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCreateSQL()
Returns SQL including parentheses that should be appended to a type name.
|
java.lang.String |
getEnumerator(int ordinal)
Returns an enumerator with specified 0-based ordinal value.
|
static ExtTypeInfoEnum |
getEnumeratorsForBinaryOperation(Value left,
Value right)
Returns enumerators for the two specified values for a binary operation.
|
ValueEnum |
getValue(int ordinal)
Get ValueEnum instance for an ordinal.
|
ValueEnum |
getValue(java.lang.String label)
Get ValueEnum instance for a label string.
|
int |
hashCode() |
toStringpublic ExtTypeInfoEnum(java.lang.String[] enumerators)
enumerators - the enumerators. May not be modified by caller or this class.public static ExtTypeInfoEnum getEnumeratorsForBinaryOperation(Value left, Value right)
left - left (first) operandright - right (second) operandpublic Value cast(Value value)
ExtTypeInfocast in class ExtTypeInfovalue - value to castpublic java.lang.String getEnumerator(int ordinal)
ordinal - ordinal value of an enumeratorpublic ValueEnum getValue(int ordinal)
ordinal - ordinal value of an enumpublic ValueEnum getValue(java.lang.String label)
label - label stringpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getCreateSQL()
ExtTypeInfogetCreateSQL in class ExtTypeInfo