public enum ColumnType extends Enum<ColumnType>
| Enum Constant and Description |
|---|
BINARY
二进制数据。
|
BOOLEAN
布尔型。
|
DATE
日期类型,格式为‘YYYY-MM-DD’,使用 java.sql.Date类型表示。
|
DATETIME
时间类型,格式为‘YYYY-MM-DD hh:mm:ss.xxxxxx’,使用 java.sql.Timestamp类型表示。
|
DOUBLE
64位浮点型。
|
INTEGER
64位带符号的整型。
|
STRING
字符串型。
|
TIME
时间间隔类型,格式为‘hh:mm:ss.xxxxxx’,使用 java.sql.Time类型表示。
|
| Modifier and Type | Method and Description |
|---|---|
static ColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColumnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnType STRING
public static final ColumnType INTEGER
public static final ColumnType BOOLEAN
public static final ColumnType DOUBLE
public static final ColumnType BINARY
public static final ColumnType DATETIME
public static final ColumnType TIME
public static final ColumnType DATE
public static ColumnType[] values()
for (ColumnType c : ColumnType.values()) System.out.println(c);
public static ColumnType 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 nullCopyright © 2024. All Rights Reserved.