public class java.sql
Types


Show All Login
Java SE 6
  

The class that defines the constants that are used to identify generic SQL types, called JDBC types.

This class is never instantiated.


Fields
final public static int BIT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIT.

final public static int TINYINT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT.

final public static int SMALLINT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT.

final public static int INTEGER

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER.

final public static int BIGINT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT.

final public static int FLOAT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.

final public static int REAL

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.

final public static int DOUBLE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE.

final public static int NUMERIC

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NUMERIC.

final public static int DECIMAL

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DECIMAL.

final public static int CHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR.

final public static int VARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.

final public static int LONGVARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARCHAR.

final public static int DATE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE.

final public static int TIME

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME.

final public static int TIMESTAMP

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP.

final public static int BINARY

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY.

final public static int VARBINARY

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARBINARY.

final public static int LONGVARBINARY

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY.

final public static int NULL

The constant in the Java programming language that identifies the generic SQL value NULL.

final public static int OTHER
The 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 methods getObject and setObject.
final public static int JAVA_OBJECT Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type JAVA_OBJECT.
since1.2
final public static int DISTINCT Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.
since1.2
final public static int STRUCT Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT.
since1.2
final public static int ARRAY Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY.
since1.2
final public static int BLOB Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB.
since1.2
final public static int CLOB Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB.
since1.2
final public static int REF Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF.
since1.2
final public static int DATALINK Details
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type DATALINK.
since1.4
final public static int BOOLEAN Details
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type BOOLEAN.
since1.4
final public static int ROWID Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ROWID
since1.6
final public static int NCHAR Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCHAR
since1.6
final public static int NVARCHAR Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NVARCHAR.
since1.6
final public static int LONGNVARCHAR Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGNVARCHAR.
since1.6
final public static int NCLOB Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCLOB.
since1.6
final public static int SQLXML Details
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type XML.
since1.6