public enum DbType extends Enum<DbType>
| Enum Constant and Description |
|---|
Automatic
Get the type by a Java property
|
BIGINT |
BINARY |
BLOB |
BOOLEAN |
CHAR |
CLOB |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INT |
NULL |
REAL |
SMALLINT |
TIME |
TIMESTAMP |
TINYINT |
VARCHAR |
VARCHAR_IGNORECASE |
| Modifier and Type | Method and Description |
|---|---|
int |
getSqlType()
Returns an JDBC SQL type
|
static DbType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbType Automatic
public static final DbType INT
public static final DbType BOOLEAN
public static final DbType TINYINT
public static final DbType SMALLINT
public static final DbType BIGINT
public static final DbType DECIMAL
public static final DbType FLOAT
public static final DbType DOUBLE
public static final DbType REAL
public static final DbType TIME
public static final DbType DATE
public static final DbType TIMESTAMP
public static final DbType BINARY
public static final DbType VARCHAR
public static final DbType VARCHAR_IGNORECASE
public static final DbType CHAR
public static final DbType BLOB
public static final DbType CLOB
public static final DbType NULL
public static DbType[] values()
for (DbType c : DbType.values()) System.out.println(c);
public static DbType 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()
TypesCopyright 2013, Pavel Ponec