public enum DBType extends Enum<DBType>
Enum Constant and Description |
---|
BIGINT |
BINARY |
BIT |
BLOB |
BOOLEAN |
CHAR |
CLOB |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INTEGER |
LONGVARBINARY |
LONGVARCHAR |
NUMERIC |
REAL |
SMALLINT |
TIME |
TIMESTAMP |
TINYINT |
VARBINARY |
VARCHAR |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getKeyword() |
static DBType |
getTypeByCode(int code) |
static DBType |
getTypeByKeyword(String keyword) |
void |
readValue(ExtendedDataInput in,
PreparedStatement statement,
int column,
boolean canBeNull) |
abstract Object |
readValueWithResult(ExtendedDataInput in,
PreparedStatement statement,
int column,
boolean canBeNull) |
String |
toString() |
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.
|
void |
writeValue(ExtendedDataOutput out,
ResultSet resultSet,
int column,
boolean canBeNull) |
abstract Object |
writeValueWithResult(ExtendedDataOutput out,
ResultSet resultSet,
int column,
boolean canBeNull) |
public static final DBType BOOLEAN
public static final DBType BIT
public static final DBType TINYINT
public static final DBType SMALLINT
public static final DBType INTEGER
public static final DBType BIGINT
public static final DBType FLOAT
public static final DBType REAL
public static final DBType DOUBLE
public static final DBType NUMERIC
public static final DBType DECIMAL
public static final DBType CHAR
public static final DBType VARCHAR
public static final DBType LONGVARCHAR
public static final DBType CLOB
public static final DBType DATE
public static final DBType TIME
public static final DBType TIMESTAMP
public static final DBType BINARY
public static final DBType VARBINARY
public static final DBType LONGVARBINARY
public static final DBType BLOB
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 getCode()
public String getKeyword()
public void writeValue(ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) throws SQLException, IOException
SQLException
IOException
public abstract Object writeValueWithResult(ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) throws SQLException, IOException
SQLException
IOException
public void readValue(ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) throws SQLException, IOException
SQLException
IOException
public abstract Object readValueWithResult(ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) throws SQLException, IOException
SQLException
IOException
public static DBType getTypeByCode(int code)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.