public enum MySQLType extends Enum<MySQLType>
| 限定符和类型 | 方法和说明 |
|---|---|
static MySQLType |
fromTypeCode(int typeCode) |
int |
getDefaultLength() |
long |
getDefaultSize() |
long |
getPrefixSize() |
int |
getTypeCode() |
static long |
getTypeDefaultSize(int typeCode) |
static MySQLType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MySQLType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MySQLType TypeDecimal
public static final MySQLType TypeTiny
public static final MySQLType TypeShort
public static final MySQLType TypeLong
public static final MySQLType TypeFloat
public static final MySQLType TypeDouble
public static final MySQLType TypeNull
public static final MySQLType TypeTimestamp
public static final MySQLType TypeLonglong
public static final MySQLType TypeInt24
public static final MySQLType TypeDate
public static final MySQLType TypeDuration
public static final MySQLType TypeDatetime
public static final MySQLType TypeYear
public static final MySQLType TypeNewDate
public static final MySQLType TypeVarchar
public static final MySQLType TypeBit
public static final MySQLType TypeJSON
public static final MySQLType TypeNewDecimal
public static final MySQLType TypeEnum
public static final MySQLType TypeSet
public static final MySQLType TypeTinyBlob
public static final MySQLType TypeMediumBlob
public static final MySQLType TypeLongBlob
public static final MySQLType TypeBlob
public static final MySQLType TypeVarString
public static final MySQLType TypeString
public static final MySQLType TypeGeometry
public static MySQLType[] values()
for (MySQLType c : MySQLType.values()) System.out.println(c);
public static MySQLType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static MySQLType fromTypeCode(int typeCode)
public static long getTypeDefaultSize(int typeCode)
public int getTypeCode()
public long getDefaultSize()
public long getPrefixSize()
public int getDefaultLength()
Copyright © 2023 PingCAP. All rights reserved.