public enum DataType extends java.lang.Enum<DataType>
PersistentProperty.getDataType()
Enum Constant and Description |
---|
BIGDECIMAL
A big decimal such as
BigDecimal . |
BOOLEAN
A boolean value.
|
BYTE
A byte.
|
BYTE_ARRAY
A byte array.
|
CHARACTER
A character.
|
DATE
A date such as
Date or LocalDate . |
DOUBLE
A
Double value. |
ENTITY
A class annotated with
MappedEntity . |
FLOAT
A
Float value. |
INTEGER
A
Integer value. |
JSON
A JSON type.
|
LONG
A
Long value. |
OBJECT
An object of an indeterminate type.
|
SHORT
A
Short value. |
STRING
A
String value. |
TIMESTAMP
A timestamp such as
Timestamp or Instant . |
Modifier and Type | Field and Description |
---|---|
static DataType[] |
EMPTY_DATA_TYPE_ARRAY
Empty array of data types.
|
Modifier and Type | Method and Description |
---|---|
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 BIGDECIMAL
BigDecimal
.public static final DataType BOOLEAN
public static final DataType BYTE
public static final DataType BYTE_ARRAY
public static final DataType CHARACTER
public static final DataType DATE
Date
or LocalDate
.public static final DataType TIMESTAMP
Timestamp
or Instant
.public static final DataType DOUBLE
Double
value.public static final DataType FLOAT
Float
value.public static final DataType INTEGER
Integer
value.public static final DataType LONG
Long
value.public static final DataType SHORT
Short
value.public static final DataType STRING
String
value.public static final DataType OBJECT
public static final DataType ENTITY
MappedEntity
.public static final DataType JSON
public static final DataType[] EMPTY_DATA_TYPE_ARRAY
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 null