Package org.hotrod.dynamicsql
Enum JDBCTypes.JDBCType
- java.lang.Object
-
- java.lang.Enum<JDBCTypes.JDBCType>
-
- org.hotrod.dynamicsql.JDBCTypes.JDBCType
-
- All Implemented Interfaces:
Serializable,Comparable<JDBCTypes.JDBCType>
- Enclosing class:
- JDBCTypes
public static enum JDBCTypes.JDBCType extends Enum<JDBCTypes.JDBCType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYBIGINTBINARYBITBLOBBOOLEANCHARCLOBDATALINKDATEDECIMALDISTINCTDOUBLEFLOATINTEGERJAVA_OBJECTLONGNVARCHARLONGVARBINARYLONGVARCHARNCHARNCLOBNULLNUMERICNVARCHAROTHERREALREFREF_CURSORROWIDSMALLINTSQLXMLSTRUCTTIMETIME_WITH_TIMEZONETIMESTAMPTIMESTAMP_WITH_TIMEZONETINYINTVARBINARYVARCHAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()StringgetShortTypeName()StringgetTypeName()StringtoString()static JDBCTypes.JDBCTypevalueOf(String name)Returns the enum constant of this type with the specified name.static JDBCTypes.JDBCType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final JDBCTypes.JDBCType ARRAY
-
BIGINT
public static final JDBCTypes.JDBCType BIGINT
-
BINARY
public static final JDBCTypes.JDBCType BINARY
-
BIT
public static final JDBCTypes.JDBCType BIT
-
BLOB
public static final JDBCTypes.JDBCType BLOB
-
BOOLEAN
public static final JDBCTypes.JDBCType BOOLEAN
-
CHAR
public static final JDBCTypes.JDBCType CHAR
-
CLOB
public static final JDBCTypes.JDBCType CLOB
-
DATALINK
public static final JDBCTypes.JDBCType DATALINK
-
DATE
public static final JDBCTypes.JDBCType DATE
-
DECIMAL
public static final JDBCTypes.JDBCType DECIMAL
-
DISTINCT
public static final JDBCTypes.JDBCType DISTINCT
-
DOUBLE
public static final JDBCTypes.JDBCType DOUBLE
-
FLOAT
public static final JDBCTypes.JDBCType FLOAT
-
INTEGER
public static final JDBCTypes.JDBCType INTEGER
-
JAVA_OBJECT
public static final JDBCTypes.JDBCType JAVA_OBJECT
-
LONGNVARCHAR
public static final JDBCTypes.JDBCType LONGNVARCHAR
-
LONGVARBINARY
public static final JDBCTypes.JDBCType LONGVARBINARY
-
LONGVARCHAR
public static final JDBCTypes.JDBCType LONGVARCHAR
-
NCHAR
public static final JDBCTypes.JDBCType NCHAR
-
NCLOB
public static final JDBCTypes.JDBCType NCLOB
-
NULL
public static final JDBCTypes.JDBCType NULL
-
NUMERIC
public static final JDBCTypes.JDBCType NUMERIC
-
NVARCHAR
public static final JDBCTypes.JDBCType NVARCHAR
-
OTHER
public static final JDBCTypes.JDBCType OTHER
-
REAL
public static final JDBCTypes.JDBCType REAL
-
REF
public static final JDBCTypes.JDBCType REF
-
REF_CURSOR
public static final JDBCTypes.JDBCType REF_CURSOR
-
ROWID
public static final JDBCTypes.JDBCType ROWID
-
SMALLINT
public static final JDBCTypes.JDBCType SMALLINT
-
SQLXML
public static final JDBCTypes.JDBCType SQLXML
-
STRUCT
public static final JDBCTypes.JDBCType STRUCT
-
TIME
public static final JDBCTypes.JDBCType TIME
-
TIME_WITH_TIMEZONE
public static final JDBCTypes.JDBCType TIME_WITH_TIMEZONE
-
TIMESTAMP
public static final JDBCTypes.JDBCType TIMESTAMP
-
TIMESTAMP_WITH_TIMEZONE
public static final JDBCTypes.JDBCType TIMESTAMP_WITH_TIMEZONE
-
TINYINT
public static final JDBCTypes.JDBCType TINYINT
-
VARBINARY
public static final JDBCTypes.JDBCType VARBINARY
-
VARCHAR
public static final JDBCTypes.JDBCType VARCHAR
-
-
Method Detail
-
values
public static JDBCTypes.JDBCType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JDBCTypes.JDBCType c : JDBCTypes.JDBCType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JDBCTypes.JDBCType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()
-
getShortTypeName
public String getShortTypeName()
-
getTypeName
public String getTypeName()
-
toString
public String toString()
- Overrides:
toStringin classEnum<JDBCTypes.JDBCType>
-
-