public enum DatabaseTypeEnum extends Enum<DatabaseTypeEnum>
Assigns a name to each type that serves as a short name in mapping, and a Java class type.
Provides binding implementations that use the correct ResultSet.get method to pull the correct type out of a statement's result set.
Enum Constant and Description |
---|
BigDecimal
Big decimal.
|
Boolean
Boolean type.
|
Byte
Byte type.
|
ByteArray
Byte array type.
|
Double
Double type.
|
Float
Float type.
|
Int
Integer type.
|
Long
Long type.
|
Short
Short type.
|
SqlDate
SQL Date type.
|
SqlTime
SQL time type.
|
SqlTimestamp
SQL timestamp type.
|
String
String type.
|
Modifier and Type | Method and Description |
---|---|
DatabaseTypeBinding |
getBinding()
Returns the binding for this enumeration value for
reading the database result set and returning the right Java type.
|
static DatabaseTypeEnum |
getEnum(String type)
Given a type name, matches for simple and fully-qualified Java class name (case-insensitive)
as well as case-insensitive type name.
|
Class |
getJavaClass()
Retuns the Java class for the name.
|
static DatabaseTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseTypeEnum String
public static final DatabaseTypeEnum BigDecimal
public static final DatabaseTypeEnum Boolean
public static final DatabaseTypeEnum Byte
public static final DatabaseTypeEnum Short
public static final DatabaseTypeEnum Int
public static final DatabaseTypeEnum Long
public static final DatabaseTypeEnum Float
public static final DatabaseTypeEnum Double
public static final DatabaseTypeEnum ByteArray
public static final DatabaseTypeEnum SqlDate
public static final DatabaseTypeEnum SqlTime
public static final DatabaseTypeEnum SqlTimestamp
public static DatabaseTypeEnum[] values()
for (DatabaseTypeEnum c : DatabaseTypeEnum.values()) System.out.println(c);
public static DatabaseTypeEnum 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 Class getJavaClass()
public static DatabaseTypeEnum getEnum(String type)
type
- is the named typepublic DatabaseTypeBinding getBinding()