Package java.sql
Class Types
java.lang.Object
java.sql.Types
public class Types extends Object
A class which defines constants used to identify generic SQL types, also
called JDBC types. The type constant values are equivalent to those defined
by X/OPEN.
-
Field Summary
Fields Modifier and Type Field Description static intARRAYThe type code that identifies the SQL typeARRAY.static intBIGINTThe type code that identifies the SQL typeBIGINT.static intBINARYThe type code that identifies the SQL typeBINARY.static intBITThe type code that identifies the SQL typeBIT.static intBLOBThe type code that identifies the SQL typeBLOB.static intBOOLEANThe type code that identifies the SQL typeBOOLEAN.static intCHARThe type code that identifies the SQL typeCHAR.static intCLOBThe type code that identifies the SQL typeCLOB.static intDATALINKThe type code that identifies the SQL typeDATALINK.static intDATEThe type code that identifies the SQL typeDATE.static intDECIMALThe type code that identifies the SQL typeDECIMAL.static intDISTINCTThe type code that identifies the SQL typeDISTINCT.static intDOUBLEThe type code that identifies the SQL typeDOUBLE.static intFLOATThe type code that identifies the SQL typeFLOAT.static intINTEGERThe type code that identifies the SQL typeINTEGER.static intJAVA_OBJECTThe type code that identifies the SQL typeJAVA_OBJECT.static intLONGNVARCHARThe type code that identifies the SQL type LONGNVARCHAR.static intLONGVARBINARYThe type code that identifies the SQL typeLONGVARBINARY.static intLONGVARCHARThe type code that identifies the SQL typeLONGVARCHAR.static intNCHARThe type code that identifies the SQL type NCHAR.static intNCLOBThe type code that identifies the SQL type NCLOB.static intNULLThe type code that identifies the SQL typeNULL.static intNUMERICThe type code that identifies the SQL typeNUMERIC.static intNVARCHARThe type code that identifies the SQL type NVARCHAR.static intOTHERThe type code that identifies that the SQL type is database specific and is mapped to a Java object, accessed via the methodsgetObjectandsetObject.static intREALThe type code that identifies the SQL typeREAL.static intREFThe type code that identifies the SQL typeREF.static intROWIDThe type code that identifies the SQL type ROWID.static intSMALLINTThe type code that identifies the SQL typeSMALLINT.static intSQLXMLThe type code that identifies the SQL type SQLXML.static intSTRUCTThe type code that identifies the SQL typeSTRUCT.static intTIMEThe type code that identifies the SQL typeTIME.static intTIMESTAMPThe type code that identifies the SQL typeTIMESTAMP.static intTINYINTThe type code that identifies the SQL typeTINYINT.static intVARBINARYThe type code that identifies the SQL typeVARBINARY.static intVARCHARThe type code that identifies the SQL typeVARCHAR. -
Method Summary
-
Field Details
-
ARRAY
public static final int ARRAYThe type code that identifies the SQL typeARRAY.- See Also:
- Constant Field Values
-
BIGINT
public static final int BIGINTThe type code that identifies the SQL typeBIGINT.- See Also:
- Constant Field Values
-
BINARY
public static final int BINARYThe type code that identifies the SQL typeBINARY.- See Also:
- Constant Field Values
-
BIT
public static final int BITThe type code that identifies the SQL typeBIT.- See Also:
- Constant Field Values
-
BLOB
public static final int BLOBThe type code that identifies the SQL typeBLOB.- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEANThe type code that identifies the SQL typeBOOLEAN.- See Also:
- Constant Field Values
-
CHAR
public static final int CHARThe type code that identifies the SQL typeCHAR.- See Also:
- Constant Field Values
-
CLOB
public static final int CLOBThe type code that identifies the SQL typeCLOB.- See Also:
- Constant Field Values
-
DATALINK
public static final int DATALINKThe type code that identifies the SQL typeDATALINK.- See Also:
- Constant Field Values
-
DATE
public static final int DATEThe type code that identifies the SQL typeDATE.- See Also:
- Constant Field Values
-
DECIMAL
public static final int DECIMALThe type code that identifies the SQL typeDECIMAL.- See Also:
- Constant Field Values
-
DISTINCT
public static final int DISTINCTThe type code that identifies the SQL typeDISTINCT.- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLEThe type code that identifies the SQL typeDOUBLE.- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOATThe type code that identifies the SQL typeFLOAT.- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGERThe type code that identifies the SQL typeINTEGER.- See Also:
- Constant Field Values
-
JAVA_OBJECT
public static final int JAVA_OBJECTThe type code that identifies the SQL typeJAVA_OBJECT.- See Also:
- Constant Field Values
-
LONGVARBINARY
public static final int LONGVARBINARYThe type code that identifies the SQL typeLONGVARBINARY.- See Also:
- Constant Field Values
-
LONGVARCHAR
public static final int LONGVARCHARThe type code that identifies the SQL typeLONGVARCHAR.- See Also:
- Constant Field Values
-
NULL
public static final int NULLThe type code that identifies the SQL typeNULL.- See Also:
- Constant Field Values
-
NUMERIC
public static final int NUMERICThe type code that identifies the SQL typeNUMERIC.- See Also:
- Constant Field Values
-
OTHER
public static final int OTHERThe type code that identifies that the SQL type is database specific and is mapped to a Java object, accessed via the methodsgetObjectandsetObject.- See Also:
- Constant Field Values
-
REAL
public static final int REALThe type code that identifies the SQL typeREAL.- See Also:
- Constant Field Values
-
REF
public static final int REFThe type code that identifies the SQL typeREF.- See Also:
- Constant Field Values
-
SMALLINT
public static final int SMALLINTThe type code that identifies the SQL typeSMALLINT.- See Also:
- Constant Field Values
-
STRUCT
public static final int STRUCTThe type code that identifies the SQL typeSTRUCT.- See Also:
- Constant Field Values
-
TIME
public static final int TIMEThe type code that identifies the SQL typeTIME.- See Also:
- Constant Field Values
-
TIMESTAMP
public static final int TIMESTAMPThe type code that identifies the SQL typeTIMESTAMP.- See Also:
- Constant Field Values
-
TINYINT
public static final int TINYINTThe type code that identifies the SQL typeTINYINT.- See Also:
- Constant Field Values
-
VARBINARY
public static final int VARBINARYThe type code that identifies the SQL typeVARBINARY.- See Also:
- Constant Field Values
-
VARCHAR
public static final int VARCHARThe type code that identifies the SQL typeVARCHAR.- See Also:
- Constant Field Values
-
ROWID
public static final int ROWIDThe type code that identifies the SQL type ROWID.- See Also:
- Constant Field Values
-
NCHAR
public static final int NCHARThe type code that identifies the SQL type NCHAR.- See Also:
- Constant Field Values
-
NVARCHAR
public static final int NVARCHARThe type code that identifies the SQL type NVARCHAR.- See Also:
- Constant Field Values
-
LONGNVARCHAR
public static final int LONGNVARCHARThe type code that identifies the SQL type LONGNVARCHAR.- See Also:
- Constant Field Values
-
NCLOB
public static final int NCLOBThe type code that identifies the SQL type NCLOB.- See Also:
- Constant Field Values
-
SQLXML
public static final int SQLXMLThe type code that identifies the SQL type SQLXML.- See Also:
- Constant Field Values
-