Package Summary Overview Summary |
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JDBCTypes>
java.sql.JDBCTypes
public enum JDBCTypes
Defines the constants that are used to identify generic SQL types, called JDBC types.
Enum Constant Summary | |
---|---|
ARRAY
Identifies the generic SQL type ARRAY . |
|
BIGINT
Identifies the generic SQL type BIGINT . |
|
BINARY
Identifies the generic SQL type BINARY . |
|
BIT
Identifies the generic SQL type BIT . |
|
BLOB
Identifies the generic SQL type BLOB . |
|
BOOLEAN
Identifies the generic SQL type BOOLEAN . |
|
CHAR
Identifies the generic SQL type CHAR . |
|
CLOB
Identifies the generic SQL type CLOB . |
|
DATALINK
Identifies the generic SQL type DATALINK . |
|
DATE
Identifies the generic SQL type DATE . |
|
DECIMAL
Identifies the generic SQL type DECIMAL . |
|
DISTINCT
Identifies the generic SQL type DISTINCT . |
|
DOUBLE
Identifies the generic SQL type DOUBLE . |
|
FLOAT
Identifies the generic SQL type FLOAT . |
|
INTEGER
Identifies the generic SQL type INTEGER . |
|
JAVA_OBJECT
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject. |
|
LONGNVARCHAR
Identifies the generic SQL type LONGNVARCHAR . |
|
LONGVARBINARY
Identifies the generic SQL type LONGVARBINARY . |
|
LONGVARCHAR
Identifies the generic SQL type LONGVARCHAR . |
|
NCHAR
Identifies the generic SQL type NCHAR . |
|
NCLOB
Identifies the generic SQL type NCLOB . |
|
NULL
Identifies the generic SQL value NULL . |
|
NUMERIC
Identifies the generic SQL type NUMERIC . |
|
NVARCHAR
Identifies the generic SQL type NVARCHAR . |
|
OTHER
Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject. |
|
REAL
Identifies the generic SQL type REAL . |
|
REF
Identifies the generic SQL type REF . |
|
REF_CURSOR
Identifies the generic SQL type REF_CURSOR . |
|
ROWID
Identifies the SQL type ROWID . |
|
SMALLINT
Identifies the generic SQL type SMALLINT . |
|
SQLXML
Identifies the generic SQL type SQLXML . |
|
STRUCT
Identifies the generic SQL type STRUCT . |
|
TIME
Identifies the generic SQL type TIME . |
|
TIMESTAMP
Identifies the generic SQL type TIMESTAMP . |
|
TINYINT
Identifies the generic SQL type TINYINT . |
|
VARBINARY
Identifies the generic SQL type VARBINARY . |
|
VARCHAR
Identifies the generic SQL type VARCHAR . |
Method Summary | |
---|---|
java.lang.String | getName()
Returns the name of the data type. |
java.lang.String | getVendor()
Returns the name of the vendor that supports this data type. |
java.lang.Integer | getVendorTypeNumber()
Returns the vendor specific type number for the data type. |
static JDBCTypes | valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JDBCTypes[] | 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 JDBCTypesBIT
BIT
.
public static final JDBCTypesTINYINT
TINYINT
.
public static final JDBCTypesSMALLINT
SMALLINT
.
public static final JDBCTypesINTEGER
INTEGER
.
public static final JDBCTypesBIGINT
BIGINT
.
public static final JDBCTypesFLOAT
FLOAT
.
public static final JDBCTypesREAL
REAL
.
public static final JDBCTypesDOUBLE
DOUBLE
.
public static final JDBCTypesNUMERIC
NUMERIC
.
public static final JDBCTypesDECIMAL
DECIMAL
.
public static final JDBCTypesCHAR
CHAR
.
public static final JDBCTypesVARCHAR
VARCHAR
.
public static final JDBCTypesLONGVARCHAR
LONGVARCHAR
.
public static final JDBCTypesDATE
DATE
.
public static final JDBCTypesTIME
TIME
.
public static final JDBCTypesTIMESTAMP
TIMESTAMP
.
public static final JDBCTypesBINARY
BINARY
.
public static final JDBCTypesVARBINARY
VARBINARY
.
public static final JDBCTypesLONGVARBINARY
LONGVARBINARY
.
public static final JDBCTypesNULL
NULL
.
public static final JDBCTypesOTHER
public static final JDBCTypesJAVA_OBJECT
public static final JDBCTypesDISTINCT
DISTINCT
.
public static final JDBCTypesSTRUCT
STRUCT
.
public static final JDBCTypesARRAY
ARRAY
.
public static final JDBCTypesBLOB
BLOB
.
public static final JDBCTypesCLOB
CLOB
.
public static final JDBCTypesREF
REF
.
public static final JDBCTypesDATALINK
DATALINK
.
public static final JDBCTypesBOOLEAN
BOOLEAN
.
public static final JDBCTypesROWID
ROWID
.
public static final JDBCTypesNCHAR
NCHAR
.
public static final JDBCTypesNVARCHAR
NVARCHAR
.
public static final JDBCTypesLONGNVARCHAR
LONGNVARCHAR
.
public static final JDBCTypesNCLOB
NCLOB
.
public static final JDBCTypesSQLXML
SQLXML
.
public static final JDBCTypesREF_CURSOR
REF_CURSOR
.
Method Detail |
---|
public static JDBCTypes[] values()
for (JDBCTypes c : JDBCTypes.values()) System.out.println(c);
public static JDBCTypesvalueOf(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 null public java.lang.String getName()
getName
in interface SQLType
public java.lang.String getVendor()
getVendor
in interface SQLType
public java.lang.Integer getVendorTypeNumber()
getVendorTypeNumber
in interface SQLType
JDBCTypes
, the value will be the same value as in Types
for the data type.
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |