public enum DataType extends java.lang.Enum<DataType>
| Enum Constant and Description |
|---|
BOOLEAN
equivalent to Java
boolean |
BYTE
equivalent to Java
byte |
COMPLEX
represents a complex column which is itself a relational table
|
DOUBLE
equivalent to Java
double |
FLOAT
equivalent to Java
float |
INTEGER
equivalent to Java
int |
LONG
equivalent to Java
long |
SHORT
equivalent to Java
short |
STRING
equivalent to Java
String |
TIMESTAMP
equivalent to Java
Timestamp |
UUID
equivalent to Java
UUID |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
getDataTypeForObject(java.lang.Object value)
Returns the equivalent data type for the given object's type.
|
java.lang.Class<?> |
getTypeClass()
Returns the class of the Java type that is used to represent a value of
this data type.
|
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType BOOLEAN
booleanpublic static final DataType BYTE
bytepublic static final DataType SHORT
shortpublic static final DataType INTEGER
intpublic static final DataType LONG
longpublic static final DataType FLOAT
floatpublic static final DataType DOUBLE
doublepublic static final DataType STRING
Stringpublic static final DataType UUID
UUIDpublic static final DataType TIMESTAMP
Timestamppublic static final DataType COMPLEX
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<?> getTypeClass()
public static DataType getDataTypeForObject(java.lang.Object value)
null, null is returned. Unknown/unsupported
data types will raise an IllegalArgumentException.value - the value object for which to return the equivalent data type