org.hsqldb
Class Types

java.lang.Object
  extended byorg.hsqldb.Types

public class Types
extends Object

To Do:
fredt - move error and assert string literals to Trace

Field Summary
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT.
static int BINARY
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY.
static int 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
          The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type BOOLEAN.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.
static int 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
          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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NULL.
static int 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
          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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT.
static int TYPE_SUB_DEFAULT
          The default HSQLODB type sub-identifier.
static int TYPE_SUB_IGNORECASE
          The IGNORECASE type sub-identifier.
static int 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
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.
static int VARCHAR_IGNORECASE
           
static int XML
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the recent SQL 200n SQL type XML.
 
Constructor Summary
Types()
           
 
Method Summary
static String getTypeString(int type)
          Returns SQL type string for a java.sql.Types int value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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:
JDK 1.2
See Also:
Constant Field Values

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

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

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:
JDK 1.2
See Also:
Constant Field Values

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:
JDK 1.4
See Also:
Constant Field Values

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

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:
JDK 1.2
See Also:
Constant Field Values

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:
JDK 1.4
See Also:
Constant Field Values

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

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

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:
JDK 1.2
See Also:
Constant Field Values

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

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

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

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:
JDK 1.2
See Also:
Constant Field Values

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

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

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

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

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

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

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:
JDK 1.2
See Also:
Constant Field Values

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

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:
JDK 1.2
See Also:
Constant Field Values

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

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

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

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

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

XML

public static final int XML

The constant in the Java programming language, sometimes referred to as a type code, that identifies the recent SQL 200n SQL type XML.

Since:
SQL 200n
See Also:
Constant Field Values

TYPE_SUB_DEFAULT

public static final int TYPE_SUB_DEFAULT
The default HSQLODB type sub-identifier. This indicates that an HSQLDB type with this sub-type, if supported, is the very closest thing HSQLDB offerers to the JDBC/SQL200n type

See Also:
Constant Field Values

TYPE_SUB_IGNORECASE

public static final int TYPE_SUB_IGNORECASE
The IGNORECASE type sub-identifier. This indicates that an HSQLDB type with this sub-type, if supported, is the closest thing HSQLDB offerers to the JDBC/SQL200n type, except that case is ignored in comparisons

See Also:
Constant Field Values

VARCHAR_IGNORECASE

public static final int VARCHAR_IGNORECASE
See Also:
Constant Field Values
Constructor Detail

Types

public Types()
Method Detail

getTypeString

public static String getTypeString(int type)
Returns SQL type string for a java.sql.Types int value



Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.