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.
|
BOOLEAN_ARRAY
A boolean array.
|
BYTE
A byte.
|
BYTE_ARRAY
A byte array.
|
CHARACTER
A character.
|
CHARACTER_ARRAY
A character array.
|
DATE
A date such as
Date or LocalDate . |
DOUBLE
A
Double value. |
DOUBLE_ARRAY
A double array.
|
ENTITY
A class annotated with
MappedEntity . |
FLOAT
A
Float value. |
FLOAT_ARRAY
A long array.
|
INTEGER
A
Integer value. |
INTEGER_ARRAY
An integer array.
|
JSON
A JSON type.
|
LONG
A
Long value. |
LONG_ARRAY
A long array.
|
OBJECT
An object of an indeterminate type.
|
SHORT
A
Short value. |
SHORT_ARRAY
A short array.
|
STRING
A
String value. |
STRING_ARRAY
A string array.
|
TIMESTAMP
A timestamp such as
Timestamp or Instant . |
UUID
The UUID type.
|
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 |
forType(java.lang.Class<?> type)
Obtains the data type for the given type.
|
boolean |
isArray()
Is an array 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 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 UUID
public static final DataType STRING_ARRAY
public static final DataType SHORT_ARRAY
public static final DataType INTEGER_ARRAY
public static final DataType LONG_ARRAY
public static final DataType FLOAT_ARRAY
public static final DataType DOUBLE_ARRAY
public static final DataType CHARACTER_ARRAY
public static final DataType BOOLEAN_ARRAY
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 nullpublic boolean isArray()
public static DataType forType(@NonNull java.lang.Class<?> type)
type
- The type