public enum JDBCType extends Enum<JDBCType > implements SQLType
Defines the constants that are used to identify generic SQL types, called JDBC types.
SQLType
| Enum Constant and Description |
|---|
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.
|
TIME_WITH_TIMEZONE
Identifies the generic SQL type
TIME_WITH_TIMEZONE.
|
TIMESTAMP
Identifies the generic SQL type
TIMESTAMP.
|
TIMESTAMP_WITH_TIMEZONE
Identifies the generic SQL type
TIMESTAMP_WITH_TIMEZONE.
|
TINYINT
Identifies the generic SQL type
TINYINT.
|
VARBINARY
Identifies the generic SQL type
VARBINARY.
|
VARCHAR
Identifies the generic SQL type
VARCHAR.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the
SQLType name that represents a SQL data type.
|
String |
getVendor()
Returns the name of the vendor that supports this data type.
|
Integer |
getVendorTypeNumber()
Returns the vendor specific type number for the data type.
|
static JDBCType |
valueOf(int type)
Returns the
JDBCType that corresponds to the specified
Types value
|
static JDBCType |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static JDBCType |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final JDBCTypeBIT
BIT.
public static final JDBCTypeTINYINT
TINYINT.
public static final JDBCTypeSMALLINT
SMALLINT.
public static final JDBCTypeINTEGER
INTEGER.
public static final JDBCTypeBIGINT
BIGINT.
public static final JDBCTypeFLOAT
FLOAT.
public static final JDBCTypeREAL
REAL.
public static final JDBCTypeDOUBLE
DOUBLE.
public static final JDBCTypeNUMERIC
NUMERIC.
public static final JDBCTypeDECIMAL
DECIMAL.
public static final JDBCTypeCHAR
CHAR.
public static final JDBCTypeVARCHAR
VARCHAR.
public static final JDBCTypeLONGVARCHAR
LONGVARCHAR.
public static final JDBCTypeDATE
DATE.
public static final JDBCTypeTIME
TIME.
public static final JDBCTypeTIMESTAMP
TIMESTAMP.
public static final JDBCTypeBINARY
BINARY.
public static final JDBCTypeVARBINARY
VARBINARY.
public static final JDBCTypeLONGVARBINARY
LONGVARBINARY.
public static final JDBCTypeNULL
NULL.
public static final JDBCTypeOTHER
public static final JDBCTypeJAVA_OBJECT
public static final JDBCTypeDISTINCT
DISTINCT.
public static final JDBCTypeSTRUCT
STRUCT.
public static final JDBCTypeARRAY
ARRAY.
public static final JDBCTypeBLOB
BLOB.
public static final JDBCTypeCLOB
CLOB.
public static final JDBCTypeREF
REF.
public static final JDBCTypeDATALINK
DATALINK.
public static final JDBCTypeBOOLEAN
BOOLEAN.
public static final JDBCTypeROWID
ROWID.
public static final JDBCTypeNCHAR
NCHAR.
public static final JDBCTypeNVARCHAR
NVARCHAR.
public static final JDBCTypeLONGNVARCHAR
LONGNVARCHAR.
public static final JDBCTypeNCLOB
NCLOB.
public static final JDBCTypeSQLXML
SQLXML.
public static final JDBCTypeREF_CURSOR
REF_CURSOR.
public static final JDBCTypeTIME_WITH_TIMEZONE
TIME_WITH_TIMEZONE.
public static final JDBCTypeTIMESTAMP_WITH_TIMEZONE
TIMESTAMP_WITH_TIMEZONE.
public static JDBCType[] values()
for (JDBCType c : JDBCType.values()) System.out.println(c);
public static JDBCTypevalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public StringgetName()
SQLType name that represents a SQL data type.
public StringgetVendor()
public IntegergetVendorTypeNumber()
getVendorTypeNumber in interface
SQLType
JDBCType, the value will be the same value as in
Types for the data type.
public static JDBCTypevalueOf(int type)
JDBCType that corresponds to the specified
Types value
type -
Types value
JDBCType constant
IllegalArgumentException - if this enum type has no constant with the specified
Types value
Types