public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BIGINT |
BINARY |
BIT |
BLOB |
CHAR |
DATE |
DATETIME |
DOUBLE |
ENUM |
FLOAT |
INT |
LONGBLOB |
LONGTEXT |
MEDIUMBLOB |
MEDIUMINT |
MEDIUMTEXT |
SET |
SMALLINT |
TEXT |
TIME |
TIMESTAMP |
TINYBLOB |
TINYINT |
TINYTEXT |
VARBINARY |
VARCHAR |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
boolean |
isNumeric() |
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 INT
public static final DataType TINYINT
public static final DataType BIGINT
public static final DataType SMALLINT
public static final DataType MEDIUMINT
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType BIT
public static final DataType CHAR
public static final DataType VARCHAR
public static final DataType TINYTEXT
public static final DataType TEXT
public static final DataType MEDIUMTEXT
public static final DataType LONGTEXT
public static final DataType BLOB
public static final DataType TINYBLOB
public static final DataType MEDIUMBLOB
public static final DataType LONGBLOB
public static final DataType BINARY
public static final DataType VARBINARY
public static final DataType ENUM
public static final DataType SET
public static final DataType DATE
public static final DataType DATETIME
public static final DataType TIMESTAMP
public static final DataType TIME
public static final DataType YEAR
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 getDefaultValue()
public boolean isNumeric()
Copyright © 2019. All rights reserved.