|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DataType>
com.j256.ormlite.field.DataType
public enum DataType
Data type enumeration that corresponds to a DataPersister.
| Enum Constant Summary | |
|---|---|
BIG_DECIMAL
Persists the BigDecimal Java class. |
|
BIG_INTEGER
Persists the BigInteger Java class. |
|
BOOLEAN
Persists the boolean Java primitive. |
|
BOOLEAN_OBJ
Persists the Boolean Java class. |
|
BYTE
Persists the byte primitive. |
|
BYTE_ARRAY
Persists the byte[] array type. |
|
BYTE_OBJ
Persists the Byte Java class. |
|
CHAR
Persists the char primitive. |
|
CHAR_OBJ
Persists the char primitive. |
|
DATE
Persists the Date Java class. |
|
DATE_LONG
Persists the Date Java class as long milliseconds since epoch. |
|
DATE_STRING
Persists the Date Java class as a string of a format. |
|
DOUBLE
Persists the double primitive. |
|
DOUBLE_OBJ
Persists the Double Java class. |
|
ENUM_INTEGER
Persists an Enum Java class as its ordinal integer value. |
|
ENUM_STRING
Persists an Enum Java class as its string value. |
|
FLOAT
Persists the float primitive. |
|
FLOAT_OBJ
Persists the Float Java class. |
|
INTEGER
Persists the int primitive. |
|
INTEGER_OBJ
Persists the Integer Java class. |
|
LONG
Persists the long primitive. |
|
LONG_OBJ
Persists the Long Java class. |
|
LONG_STRING
Persists the String Java class. |
|
SERIALIZABLE
Persists an unknown Java Object that is serializable. |
|
SHORT
Persists the short primitive. |
|
SHORT_OBJ
Persists the Short Java class. |
|
STRING
Persists the String Java class. |
|
STRING_BYTES
Persists the String Java class. |
|
UNKNOWN
Marker for fields that are unknown. |
|
UUID
Persists the UUID Java class. |
|
| Method Summary | |
|---|---|
DataPersister |
getDataPersister()
|
static DataType |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DataType STRING
String Java class.
public static final DataType LONG_STRING
String Java class.
public static final DataType STRING_BYTES
String Java class.
public static final DataType BOOLEAN
public static final DataType BOOLEAN_OBJ
Boolean Java class.
public static final DataType DATE
Date Java class.
NOTE: This is not the same as the Date class.
public static final DataType DATE_LONG
Date Java class as long milliseconds since epoch.
NOTE: This is not the same as the Date class.
public static final DataType DATE_STRING
Date Java class as a string of a format.
NOTE: This is not the same as the Date class.
WARNING: Because of SimpleDateFormat not being reentrant, this has to do some synchronization with every data in/out unfortunately.
public static final DataType CHAR
public static final DataType CHAR_OBJ
public static final DataType BYTE
public static final DataType BYTE_ARRAY
public static final DataType BYTE_OBJ
Byte Java class.
public static final DataType SHORT
public static final DataType SHORT_OBJ
Short Java class.
public static final DataType INTEGER
public static final DataType INTEGER_OBJ
Integer Java class.
public static final DataType LONG
public static final DataType LONG_OBJ
Long Java class.
public static final DataType FLOAT
public static final DataType FLOAT_OBJ
Float Java class.
public static final DataType DOUBLE
public static final DataType DOUBLE_OBJ
Double Java class.
public static final DataType SERIALIZABLE
public static final DataType ENUM_STRING
ENUM_INTEGER as the type.
public static final DataType ENUM_INTEGER
ENUM_STRING as the
type.
public static final DataType UUID
UUID Java class.
public static final DataType BIG_INTEGER
BigInteger Java class.
public static final DataType BIG_DECIMAL
BigDecimal Java class.
public static final DataType UNKNOWN
| Method Detail |
|---|
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic DataPersister getDataPersister()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||