public enum MySQLType extends Enum<MySQLType>
| Enum Constant and Description |
|---|
BIGINT |
BIT |
BLOB |
DATE |
DATETIME |
DECIMAL |
DOUBLE |
ENUM |
FLOAT |
GEOMETRY |
INTEGER |
LONGBLOB |
MEDIUMBLOB |
MEDIUMINT |
NEWDATE |
NULL |
OLDDECIMAL |
SET |
SMALLINT |
STRING |
TIME |
TIMESTAMP |
TINYBLOB |
TINYINT |
VARCHAR |
VARSTRING |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static MySQLType |
fromServer(int typeValue) |
String |
getClassName() |
static String |
getClassName(MySQLType t,
int len,
boolean signed,
boolean binary,
int flags) |
static String |
getColumnTypeName(MySQLType t,
long len,
boolean signed,
boolean binary) |
int |
getSqlType() |
int |
getType() |
String |
getTypeName() |
static MySQLType |
toServer(int javaType) |
static MySQLType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySQLType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySQLType OLDDECIMAL
public static final MySQLType TINYINT
public static final MySQLType SMALLINT
public static final MySQLType INTEGER
public static final MySQLType FLOAT
public static final MySQLType DOUBLE
public static final MySQLType NULL
public static final MySQLType TIMESTAMP
public static final MySQLType BIGINT
public static final MySQLType MEDIUMINT
public static final MySQLType DATE
public static final MySQLType TIME
public static final MySQLType DATETIME
public static final MySQLType YEAR
public static final MySQLType NEWDATE
public static final MySQLType VARCHAR
public static final MySQLType BIT
public static final MySQLType DECIMAL
public static final MySQLType ENUM
public static final MySQLType SET
public static final MySQLType TINYBLOB
public static final MySQLType MEDIUMBLOB
public static final MySQLType LONGBLOB
public static final MySQLType BLOB
public static final MySQLType VARSTRING
public static final MySQLType STRING
public static final MySQLType GEOMETRY
public static MySQLType[] values()
for (MySQLType c : MySQLType.values()) System.out.println(c);
public static MySQLType 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 int getSqlType()
public String getTypeName()
public int getType()
public String getClassName()
public static String getClassName(MySQLType t, int len, boolean signed, boolean binary, int flags)
public static String getColumnTypeName(MySQLType t, long len, boolean signed, boolean binary)
public static MySQLType fromServer(int typeValue)
public static MySQLType toServer(int javaType)
Copyright © 2014. All rights reserved.