public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BIT |
BLOB |
DATE |
DATETIME |
DOUBLE |
FLOAT |
INT1 |
INT2 |
INT3 |
INT4 |
INT8 |
JSON |
LONGBLOB |
MEDIUMBLOB |
NULL |
NUMERIC |
STRING |
TIME |
TIMESTAMP |
TINYBLOB |
VARSTRING |
YEAR |
| Modifier and Type | Field and Description |
|---|---|
Class<?> |
binaryType |
int |
id |
Class<?> |
textType |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
valueOf(int value) |
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 INT1
public static final DataType INT2
public static final DataType INT3
public static final DataType INT4
public static final DataType INT8
public static final DataType DOUBLE
public static final DataType FLOAT
public static final DataType NUMERIC
public static final DataType STRING
public static final DataType VARSTRING
public static final DataType TINYBLOB
public static final DataType BLOB
public static final DataType MEDIUMBLOB
public static final DataType LONGBLOB
public static final DataType DATE
public static final DataType TIME
public static final DataType DATETIME
public static final DataType YEAR
public static final DataType TIMESTAMP
public static final DataType BIT
public static final DataType JSON
public static final DataType NULL
public final int id
public final Class<?> binaryType
public final Class<?> textType
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 static DataType valueOf(int value)
Copyright © 2020. All rights reserved.