public class Types extends Object
The class that defines the constants that are used to identify generic SQL types, called JDBC types.
This class is never instantiated.
- Since:
- 1.1
- 
Field SummaryFields Modifier and Type Field Description static intARRAYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.static intBIGINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIGINT.static intBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBINARY.static intBITThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBIT.static intBLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.static intBOOLEANThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.static intCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCHAR.static intCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOB.static intDATALINKThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDATALINK.static intDATEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDATE.static intDECIMALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDECIMAL.static intDISTINCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.static intDOUBLEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDOUBLE.static intFLOATThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeFLOAT.static intINTEGERThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeINTEGER.static intJAVA_OBJECTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.static intLONGNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.static intLONGVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARBINARY.static intLONGVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGVARCHAR.static intNCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHARstatic intNCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.static intNULLThe constant in the Java programming language that identifies the generic SQL valueNULL.static intNUMERICThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNUMERIC.static intNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.static intOTHERThe constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.static intREALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREAL.static intREFThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.static intREF_CURSORThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF CURSOR.static intROWIDThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWIDstatic intSMALLINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSMALLINT.static intSQLXMLThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.static intSTRUCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.static intTIMEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME.static intTIME_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME WITH TIMEZONE.static intTIMESTAMPThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP.static intTIMESTAMP_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP WITH TIMEZONE.static intTINYINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTINYINT.static intVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARBINARY.static intVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeVARCHAR.
- 
Method Summary
- 
Field Details- 
BITpublic static final int BITThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIT.- See Also:
- Constant Field Values
 
- 
TINYINTpublic static final int TINYINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT.- See Also:
- Constant Field Values
 
- 
SMALLINTpublic static final int SMALLINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT.- See Also:
- Constant Field Values
 
- 
INTEGERpublic static final int INTEGERThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER.- See Also:
- Constant Field Values
 
- 
BIGINTpublic static final int BIGINTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT.- See Also:
- Constant Field Values
 
- 
FLOATpublic static final int FLOATThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.- See Also:
- Constant Field Values
 
- 
REALpublic static final int REALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.- See Also:
- Constant Field Values
 
- 
DOUBLEpublic static final int DOUBLEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE.- See Also:
- Constant Field Values
 
- 
NUMERICpublic static final int NUMERICThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NUMERIC.- See Also:
- Constant Field Values
 
- 
DECIMALpublic static final int DECIMALThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DECIMAL.- See Also:
- Constant Field Values
 
- 
CHARpublic static final int CHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR.- See Also:
- Constant Field Values
 
- 
VARCHARpublic static final int VARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.- See Also:
- Constant Field Values
 
- 
LONGVARCHARpublic static final int LONGVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARCHAR.- See Also:
- Constant Field Values
 
- 
DATEpublic static final int DATEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE.- See Also:
- Constant Field Values
 
- 
TIMEpublic static final int TIMEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME.- See Also:
- Constant Field Values
 
- 
TIMESTAMPpublic static final int TIMESTAMPThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP.- See Also:
- Constant Field Values
 
- 
BINARYpublic static final int BINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY.- See Also:
- Constant Field Values
 
- 
VARBINARYpublic static final int VARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARBINARY.- See Also:
- Constant Field Values
 
- 
LONGVARBINARYpublic static final int LONGVARBINARYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY.- See Also:
- Constant Field Values
 
- 
NULLpublic static final int NULLThe constant in the Java programming language that identifies the generic SQL value NULL.- See Also:
- Constant Field Values
 
- 
OTHERpublic static final int OTHERThe constant in the Java programming language that indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methodsgetObjectandsetObject.- See Also:
- Constant Field Values
 
- 
JAVA_OBJECTpublic static final int JAVA_OBJECTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeJAVA_OBJECT.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
DISTINCTpublic static final int DISTINCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDISTINCT.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
STRUCTpublic static final int STRUCTThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeSTRUCT.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
ARRAYpublic static final int ARRAYThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeARRAY.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
BLOBpublic static final int BLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBLOB.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
CLOBpublic static final int CLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeCLOB.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
REFpublic static final int REFThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF.- Since:
- 1.2
- See Also:
- Constant Field Values
 
- 
DATALINKpublic static final int DATALINKThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeDATALINK.- Since:
- 1.4
- See Also:
- Constant Field Values
 
- 
BOOLEANpublic static final int BOOLEANThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeBOOLEAN.- Since:
- 1.4
- See Also:
- Constant Field Values
 
- 
ROWIDpublic static final int ROWIDThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeROWID- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
NCHARpublic static final int NCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCHAR- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
NVARCHARpublic static final int NVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNVARCHAR.- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
LONGNVARCHARpublic static final int LONGNVARCHARThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeLONGNVARCHAR.- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
NCLOBpublic static final int NCLOBThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeNCLOB.- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
SQLXMLpublic static final int SQLXMLThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeXML.- Since:
- 1.6
- See Also:
- Constant Field Values
 
- 
REF_CURSORpublic static final int REF_CURSORThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeREF CURSOR.- Since:
- 1.8
- See Also:
- Constant Field Values
 
- 
TIME_WITH_TIMEZONEpublic static final int TIME_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIME WITH TIMEZONE.- Since:
- 1.8
- See Also:
- Constant Field Values
 
- 
TIMESTAMP_WITH_TIMEZONEpublic static final int TIMESTAMP_WITH_TIMEZONEThe constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL typeTIMESTAMP WITH TIMEZONE.- Since:
- 1.8
- See Also:
- Constant Field Values
 
 
-