Java Platform 1.2

java.sql
Class Types

java.lang.Object
  |
  +--java.sql.Types

public class Types
extends Object

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


Field Summary
static int ARRAY
          JDBC 2.0 A type representing an SQL ARRAY.
static int BIGINT
           
static int BINARY
           
static int BIT
           
static int BLOB
          JDBC 2.0 A type representing an SQL Binary Large Object.
static int CHAR
           
static int CLOB
          JDBC 2.0 A type representing an SQL Character Large Object.
static int DATE
           
static int DECIMAL
           
static int DISTINCT
          JDBC 2.0 A type based on a built-in type.
static int DOUBLE
           
static int FLOAT
           
static int INTEGER
           
static int JAVA_OBJECT
          JDBC 2.0 A type representing a Java Object.
static int LONGVARBINARY
           
static int LONGVARCHAR
           
static int NULL
           
static int NUMERIC
           
static int OTHER
          OTHER 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
           
static int REF
          JDBC 2.0 A type representing an SQL REF.
static int SMALLINT
           
static int STRUCT
          JDBC 2.0 A type consisting of attributes that may be any type.
static int TIME
           
static int TIMESTAMP
           
static int TINYINT
           
static int VARBINARY
           
static int VARCHAR
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIT

public static final int BIT

TINYINT

public static final int TINYINT

SMALLINT

public static final int SMALLINT

INTEGER

public static final int INTEGER

BIGINT

public static final int BIGINT

FLOAT

public static final int FLOAT

REAL

public static final int REAL

DOUBLE

public static final int DOUBLE

NUMERIC

public static final int NUMERIC

DECIMAL

public static final int DECIMAL

CHAR

public static final int CHAR

VARCHAR

public static final int VARCHAR

LONGVARCHAR

public static final int LONGVARCHAR

DATE

public static final int DATE

TIME

public static final int TIME

TIMESTAMP

public static final int TIMESTAMP

BINARY

public static final int BINARY

VARBINARY

public static final int VARBINARY

LONGVARBINARY

public static final int LONGVARBINARY

NULL

public static final int NULL

OTHER

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

JAVA_OBJECT

public static final int JAVA_OBJECT
JDBC 2.0 A type representing a Java Object.

DISTINCT

public static final int DISTINCT
JDBC 2.0 A type based on a built-in type. One of the two user-defined data types (UDTs).

STRUCT

public static final int STRUCT
JDBC 2.0 A type consisting of attributes that may be any type. One of the two user-defined data types (UDTs).

ARRAY

public static final int ARRAY
JDBC 2.0 A type representing an SQL ARRAY.

BLOB

public static final int BLOB
JDBC 2.0 A type representing an SQL Binary Large Object.

CLOB

public static final int CLOB
JDBC 2.0 A type representing an SQL Character Large Object.

REF

public static final int REF
JDBC 2.0 A type representing an SQL REF.

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.