- All Implemented Interfaces:
- Serializable,- Comparable<JDBCType>,- Constable,- SQLType
Defines the constants that are used to identify generic SQL types, called JDBC types.
- Since:
- 1.8
- See Also:
- 
Nested Class SummaryNested classes/interfaces declared in class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionIdentifies the generic SQL typeARRAY.Identifies the generic SQL typeBIGINT.Identifies the generic SQL typeBINARY.Identifies the generic SQL typeBIT.Identifies the generic SQL typeBLOB.Identifies the generic SQL typeBOOLEAN.Identifies the generic SQL typeCHAR.Identifies the generic SQL typeCLOB.Identifies the generic SQL typeDATALINK.Identifies the generic SQL typeDATE.Identifies the generic SQL typeDECIMAL.Identifies the generic SQL typeDISTINCT.Identifies the generic SQL typeDOUBLE.Identifies the generic SQL typeFLOAT.Identifies the generic SQL typeINTEGER.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.Identifies the generic SQL typeLONGNVARCHAR.Identifies the generic SQL typeLONGVARBINARY.Identifies the generic SQL typeLONGVARCHAR.Identifies the generic SQL typeNCHAR.Identifies the generic SQL typeNCLOB.Identifies the generic SQL valueNULL.Identifies the generic SQL typeNUMERIC.Identifies the generic SQL typeNVARCHAR.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.Identifies the generic SQL typeREAL.Identifies the generic SQL typeREF.Identifies the generic SQL typeREF_CURSOR.Identifies the SQL typeROWID.Identifies the generic SQL typeSMALLINT.Identifies the generic SQL typeSQLXML.Identifies the generic SQL typeSTRUCT.Identifies the generic SQL typeTIME.Identifies the generic SQL typeTIME_WITH_TIMEZONE.Identifies the generic SQL typeTIMESTAMP.Identifies the generic SQL typeTIMESTAMP_WITH_TIMEZONE.Identifies the generic SQL typeTINYINT.Identifies the generic SQL typeVARBINARY.Identifies the generic SQL typeVARCHAR.
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Returns theSQLTypename that represents a SQL data type.Returns the name of the vendor that supports this data type.Returns the vendor specific type number for the data type.static JDBCTypevalueOf(int type) Returns theJDBCTypethat corresponds to the specifiedTypesvaluestatic JDBCTypeReturns the enum constant of this class with the specified name.static JDBCType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
BITIdentifies the generic SQL typeBIT.
- 
TINYINTIdentifies the generic SQL typeTINYINT.
- 
SMALLINTIdentifies the generic SQL typeSMALLINT.
- 
INTEGERIdentifies the generic SQL typeINTEGER.
- 
BIGINTIdentifies the generic SQL typeBIGINT.
- 
FLOATIdentifies the generic SQL typeFLOAT.
- 
REALIdentifies the generic SQL typeREAL.
- 
DOUBLEIdentifies the generic SQL typeDOUBLE.
- 
NUMERICIdentifies the generic SQL typeNUMERIC.
- 
DECIMALIdentifies the generic SQL typeDECIMAL.
- 
CHARIdentifies the generic SQL typeCHAR.
- 
VARCHARIdentifies the generic SQL typeVARCHAR.
- 
LONGVARCHARIdentifies the generic SQL typeLONGVARCHAR.
- 
DATEIdentifies the generic SQL typeDATE.
- 
TIMEIdentifies the generic SQL typeTIME.
- 
TIMESTAMPIdentifies the generic SQL typeTIMESTAMP.
- 
BINARYIdentifies the generic SQL typeBINARY.
- 
VARBINARYIdentifies the generic SQL typeVARBINARY.
- 
LONGVARBINARYIdentifies the generic SQL typeLONGVARBINARY.
- 
NULLIdentifies the generic SQL valueNULL.
- 
OTHERIndicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
- 
JAVA_OBJECTIndicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
- 
DISTINCTIdentifies the generic SQL typeDISTINCT.
- 
STRUCTIdentifies the generic SQL typeSTRUCT.
- 
ARRAYIdentifies the generic SQL typeARRAY.
- 
BLOBIdentifies the generic SQL typeBLOB.
- 
CLOBIdentifies the generic SQL typeCLOB.
- 
REFIdentifies the generic SQL typeREF.
- 
DATALINKIdentifies the generic SQL typeDATALINK.
- 
BOOLEANIdentifies the generic SQL typeBOOLEAN.
- 
ROWIDIdentifies the SQL typeROWID.
- 
NCHARIdentifies the generic SQL typeNCHAR.
- 
NVARCHARIdentifies the generic SQL typeNVARCHAR.
- 
LONGNVARCHARIdentifies the generic SQL typeLONGNVARCHAR.
- 
NCLOBIdentifies the generic SQL typeNCLOB.
- 
SQLXMLIdentifies the generic SQL typeSQLXML.
- 
REF_CURSORIdentifies the generic SQL typeREF_CURSOR.
- 
TIME_WITH_TIMEZONEIdentifies the generic SQL typeTIME_WITH_TIMEZONE.
- 
TIMESTAMP_WITH_TIMEZONEIdentifies the generic SQL typeTIMESTAMP_WITH_TIMEZONE.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNameReturns theSQLTypename that represents a SQL data type.
- 
getVendorReturns the name of the vendor that supports this data type.
- 
getVendorTypeNumberReturns the vendor specific type number for the data type.- Specified by:
- getVendorTypeNumberin interface- SQLType
- Returns:
- An Integer representing the data type. For JDBCType, the value will be the same value as inTypesfor the data type.
 
- 
valueOfReturns theJDBCTypethat corresponds to the specifiedTypesvalue- Parameters:
- type-- Typesvalue
- Returns:
- The JDBCTypeconstant
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified- Typesvalue
- See Also:
 
 
-