public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BIG_DECIMAL |
BIG_INTEGER |
BOOLEAN |
DATE |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
SIMPLE_ENTRY |
STRING |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation() |
static DataType[] |
getAllTypes() |
static DataType |
getDataTypeById(int id)
Gets the data type for the given type id
|
int |
getId() |
String |
getName() |
static DataType |
getTypeByAbbreviation(String abbreviation) |
static DataType |
getTypeByName(String name) |
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.
|
public static final DataType BOOLEAN
public static final DataType SHORT
public static final DataType INTEGER
public static final DataType LONG
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType BIG_INTEGER
public static final DataType BIG_DECIMAL
public static final DataType DATE
public static final DataType STRING
public static final DataType SIMPLE_ENTRY
public static final DataType UNKNOWN
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 nameNullPointerException - if the argument is nullpublic String getName()
public final String getAbbreviation()
public final int getId()
public static final DataType[] getAllTypes()
public static final DataType getDataTypeById(int id)
id - the type idCopyright © 2017. All rights reserved.