|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DatabaseTypeEnum>
com.espertech.esper.util.DatabaseTypeEnum
public enum DatabaseTypeEnum
Enumeration of the different Java built-in types that are used to represent database output column values.
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
DatabaseTypeBinding |
getBinding()
Returns the binding for this enumeration value for reading the database result set and returning the right Java type. |
static DatabaseTypeEnum |
getEnum(java.lang.String type)
Given a type name, matches for simple and fully-qualified Java class name (case-insensitive) as well as case-insensitive type name. |
java.lang.Class |
getJavaClass()
Retuns the Java class for the name. |
static DatabaseTypeEnum |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static DatabaseTypeEnum[] values()
for (DatabaseTypeEnum c : DatabaseTypeEnum.values()) System.out.println(c);
public static DatabaseTypeEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.Class getJavaClass()
public static DatabaseTypeEnum getEnum(java.lang.String type)
type
- is the named type
public DatabaseTypeBinding getBinding()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |