public enum MySqlTypeConstant extends Enum<MySqlTypeConstant>
Enum Constant and Description |
---|
BIGINT |
BINARY |
BIT |
BLOB |
CHAR |
DATE |
DATETIME |
DECIMAL |
DEFAULT |
DOUBLE |
FLOAT |
INT |
JSON |
LONGBLOB |
LONGTEXT |
MEDIUMBLOB |
MEDIUMINT |
MEDIUMTEXT |
SMALLINT |
TEXT |
TIME |
TIMESTAMP |
TINYBLOB |
TINYINT |
TINYTEXT |
VARCHAR |
YEAR |
Modifier and Type | Field and Description |
---|---|
static Map<String,MySqlTypeAndLength> |
mySqlTypeAndLengthMap
获取Mysql的类型,以及类型需要设置几个长度,这里构建成map的样式
构建Map(字段名(小写),需要设置几个长度(0表示不需要设置,1表示需要设置一个,2表示需要设置两个))
|
Modifier and Type | Method and Description |
---|---|
Integer |
getDecimalLengthDefault() |
Integer |
getLengthCount() |
Integer |
getLengthDefault() |
static MySqlTypeConstant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlTypeConstant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlTypeConstant DEFAULT
public static final MySqlTypeConstant INT
public static final MySqlTypeConstant VARCHAR
public static final MySqlTypeConstant BINARY
public static final MySqlTypeConstant CHAR
public static final MySqlTypeConstant BIGINT
public static final MySqlTypeConstant BIT
public static final MySqlTypeConstant TINYINT
public static final MySqlTypeConstant SMALLINT
public static final MySqlTypeConstant MEDIUMINT
public static final MySqlTypeConstant DECIMAL
public static final MySqlTypeConstant DOUBLE
public static final MySqlTypeConstant TEXT
public static final MySqlTypeConstant MEDIUMTEXT
public static final MySqlTypeConstant LONGTEXT
public static final MySqlTypeConstant DATETIME
public static final MySqlTypeConstant TIMESTAMP
public static final MySqlTypeConstant DATE
public static final MySqlTypeConstant TIME
public static final MySqlTypeConstant FLOAT
public static final MySqlTypeConstant YEAR
public static final MySqlTypeConstant BLOB
public static final MySqlTypeConstant LONGBLOB
public static final MySqlTypeConstant MEDIUMBLOB
public static final MySqlTypeConstant TINYTEXT
public static final MySqlTypeConstant TINYBLOB
public static final MySqlTypeConstant JSON
public static Map<String,MySqlTypeAndLength> mySqlTypeAndLengthMap
public static MySqlTypeConstant[] values()
for (MySqlTypeConstant c : MySqlTypeConstant.values()) System.out.println(c);
public static MySqlTypeConstant 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 Integer getLengthCount()
public Integer getLengthDefault()
public Integer getDecimalLengthDefault()
Copyright © 2020. All rights reserved.