java.sql
Class Types

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.sql.Types

public class Types
extends Object sample code for java.lang.Object definition code for java.lang.Object

The class that defines the constants that are used to identify generic SQL types, called JDBC types. The actual type constant values are equivalent to those in XOPEN.

This class is never instantiated.


Field Summary
static int ARRAY sample code for java.sql.Types.ARRAY definition code for java.sql.Types.ARRAY
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY.
static int BIGINT sample code for java.sql.Types.BIGINT definition code for java.sql.Types.BIGINT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT.
static int BINARY sample code for java.sql.Types.BINARY definition code for java.sql.Types.BINARY
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY.
static int BIT sample code for java.sql.Types.BIT definition code for java.sql.Types.BIT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIT.
static int BLOB sample code for java.sql.Types.BLOB definition code for java.sql.Types.BLOB
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB.
static int BOOLEAN sample code for java.sql.Types.BOOLEAN definition code for java.sql.Types.BOOLEAN
          The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type BOOLEAN.
static int CHAR sample code for java.sql.Types.CHAR definition code for java.sql.Types.CHAR
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR.
static int CLOB sample code for java.sql.Types.CLOB definition code for java.sql.Types.CLOB
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB.
static int DATALINK sample code for java.sql.Types.DATALINK definition code for java.sql.Types.DATALINK
          The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type DATALINK.
static int DATE sample code for java.sql.Types.DATE definition code for java.sql.Types.DATE
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE.
static int DECIMAL sample code for java.sql.Types.DECIMAL definition code for java.sql.Types.DECIMAL
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DECIMAL.
static int DISTINCT sample code for java.sql.Types.DISTINCT definition code for java.sql.Types.DISTINCT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.
static int DOUBLE sample code for java.sql.Types.DOUBLE definition code for java.sql.Types.DOUBLE
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE.
static int FLOAT sample code for java.sql.Types.FLOAT definition code for java.sql.Types.FLOAT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.
static int INTEGER sample code for java.sql.Types.INTEGER definition code for java.sql.Types.INTEGER
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER.
static int JAVA_OBJECT sample code for java.sql.Types.JAVA_OBJECT definition code for java.sql.Types.JAVA_OBJECT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type JAVA_OBJECT.
static int LONGVARBINARY sample code for java.sql.Types.LONGVARBINARY definition code for java.sql.Types.LONGVARBINARY
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY.
static int LONGVARCHAR sample code for java.sql.Types.LONGVARCHAR definition code for java.sql.Types.LONGVARCHAR
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARCHAR.
static int NULL sample code for java.sql.Types.NULL definition code for java.sql.Types.NULL
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NULL.
static int NUMERIC sample code for java.sql.Types.NUMERIC definition code for java.sql.Types.NUMERIC
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NUMERIC.
static int OTHER sample code for java.sql.Types.OTHER definition code for java.sql.Types.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.
static int REAL sample code for java.sql.Types.REAL definition code for java.sql.Types.REAL
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.
static int REF sample code for java.sql.Types.REF definition code for java.sql.Types.REF
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF.
static int SMALLINT sample code for java.sql.Types.SMALLINT definition code for java.sql.Types.SMALLINT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT.
static int STRUCT sample code for java.sql.Types.STRUCT definition code for java.sql.Types.STRUCT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT.
static int TIME sample code for java.sql.Types.TIME definition code for java.sql.Types.TIME
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME.
static int TIMESTAMP sample code for java.sql.Types.TIMESTAMP definition code for java.sql.Types.TIMESTAMP
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP.
static int TINYINT sample code for java.sql.Types.TINYINT definition code for java.sql.Types.TINYINT
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT.
static int VARBINARY sample code for java.sql.Types.VARBINARY definition code for java.sql.Types.VARBINARY
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARBINARY.
static int VARCHAR sample code for java.sql.Types.VARCHAR definition code for java.sql.Types.VARCHAR
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.
 
Method Summary
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

BIT sample code for java.sql.Types.BIT

public static final int BIT

The 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

TINYINT sample code for java.sql.Types.TINYINT

public static final int TINYINT

The 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

SMALLINT sample code for java.sql.Types.SMALLINT

public static final int SMALLINT

The 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

INTEGER sample code for java.sql.Types.INTEGER

public static final int INTEGER

The 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

BIGINT sample code for java.sql.Types.BIGINT

public static final int BIGINT

The 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

FLOAT sample code for java.sql.Types.FLOAT

public static final int FLOAT

The 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

REAL sample code for java.sql.Types.REAL

public static final int REAL

The 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

DOUBLE sample code for java.sql.Types.DOUBLE

public static final int DOUBLE

The 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

NUMERIC sample code for java.sql.Types.NUMERIC

public static final int NUMERIC

The 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

DECIMAL sample code for java.sql.Types.DECIMAL

public static final int DECIMAL

The 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

CHAR sample code for java.sql.Types.CHAR

public static final int CHAR

The 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

VARCHAR sample code for java.sql.Types.VARCHAR

public static final int VARCHAR

The 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

LONGVARCHAR sample code for java.sql.Types.LONGVARCHAR

public static final int LONGVARCHAR

The 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

DATE sample code for java.sql.Types.DATE

public static final int DATE

The 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

TIME sample code for java.sql.Types.TIME

public static final int TIME

The 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

TIMESTAMP sample code for java.sql.Types.TIMESTAMP

public static final int TIMESTAMP

The 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

BINARY sample code for java.sql.Types.BINARY

public static final int BINARY

The 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

VARBINARY sample code for java.sql.Types.VARBINARY

public static final int VARBINARY

The 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

LONGVARBINARY sample code for java.sql.Types.LONGVARBINARY

public static final int LONGVARBINARY

The 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

NULL sample code for java.sql.Types.NULL

public static final int NULL

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

See Also:
Constant Field Values

OTHER sample code for java.sql.Types.OTHER

public static final 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.

See Also:
Constant Field Values

JAVA_OBJECT sample code for java.sql.Types.JAVA_OBJECT

public static final int JAVA_OBJECT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type JAVA_OBJECT.

Since:
1.2
See Also:
Constant Field Values

DISTINCT sample code for java.sql.Types.DISTINCT

public static final int DISTINCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.

Since:
1.2
See Also:
Constant Field Values

STRUCT sample code for java.sql.Types.STRUCT

public static final int STRUCT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT.

Since:
1.2
See Also:
Constant Field Values

ARRAY sample code for java.sql.Types.ARRAY

public static final int ARRAY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY.

Since:
1.2
See Also:
Constant Field Values

BLOB sample code for java.sql.Types.BLOB

public static final int BLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB.

Since:
1.2
See Also:
Constant Field Values

CLOB sample code for java.sql.Types.CLOB

public static final int CLOB
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB.

Since:
1.2
See Also:
Constant Field Values

REF sample code for java.sql.Types.REF

public static final int REF
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF.

Since:
1.2
See Also:
Constant Field Values

DATALINK sample code for java.sql.Types.DATALINK

public static final int DATALINK
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type DATALINK.

Since:
1.4
See Also:
Constant Field Values

BOOLEAN sample code for java.sql.Types.BOOLEAN

public static final int BOOLEAN
The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type BOOLEAN.

Since:
1.4
See Also:
Constant Field Values