public enum ColType extends Enum<ColType>
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
convert(String value) |
static ColType |
getColType(int sqlType) |
int |
getSqlType() |
static ColType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ColType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ColType BINARY
public static final ColType VARBINARY
public static final ColType LONGVARBINARY
public static final ColType BLOB
public static final ColType BOOLEAN
public static final ColType BIT
public static final ColType DATE
public static final ColType TIME
public static final ColType TIMESTAMP
public static final ColType TIMESTAMP_WITH_TIMEZONE
public static final ColType BIGINT
public static final ColType DECIMAL
public static final ColType DOUBLE
public static final ColType FLOAT
public static final ColType INTEGER
public static final ColType REAL
public static final ColType SMALLINT
public static final ColType TINYINT
public static final ColType CHAR
public static final ColType CLOB
public static final ColType LONGVARCHAR
public static final ColType VARCHAR
public static final ColType DEFAULT
public static ColType[] values()
for (ColType c : ColType.values()) System.out.println(c);
public static ColType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getSqlType()
public static ColType getColType(int sqlType)
public Object convert(String value) throws SQLException
SQLExceptionCopyright © 2021 kubeclub. All rights reserved.