# Types

public class **Types** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
<br />

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


This class is never instantiated.

### Constant Summary

|---|---|---|
| int | [ARRAY](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#ARRAY) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `ARRAY`. |
| int | [BIGINT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#BIGINT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIGINT`. |
| int | [BINARY](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#BINARY) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BINARY`. |
| int | [BIT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#BIT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIT`. |
| int | [BLOB](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#BLOB) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BLOB`. |
| int | [BOOLEAN](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#BOOLEAN) | The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type `BOOLEAN`. |
| int | [CHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#CHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `CHAR`. |
| int | [CLOB](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#CLOB) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `CLOB`. |
| int | [DATALINK](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#DATALINK) | The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type `DATALINK`. |
| int | [DATE](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#DATE) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DATE`. |
| int | [DECIMAL](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#DECIMAL) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DECIMAL`. |
| int | [DISTINCT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#DISTINCT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DISTINCT`. |
| int | [DOUBLE](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#DOUBLE) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DOUBLE`. |
| int | [FLOAT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#FLOAT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `FLOAT`. |
| int | [INTEGER](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#INTEGER) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `INTEGER`. |
| int | [JAVA_OBJECT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#JAVA_OBJECT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `JAVA_OBJECT`. |
| int | [LONGNVARCHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#LONGNVARCHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGNVARCHAR`. |
| int | [LONGVARBINARY](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#LONGVARBINARY) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARBINARY`. |
| int | [LONGVARCHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#LONGVARCHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARCHAR`. |
| int | [NCHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#NCHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCHAR` |
| int | [NCLOB](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#NCLOB) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCLOB`. |
| int | [NULL](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#NULL) | The constant in the Java programming language that identifies the generic SQL value `NULL`. |
| int | [NUMERIC](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#NUMERIC) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NUMERIC`. |
| int | [NVARCHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#NVARCHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NVARCHAR`. |
| int | [OTHER](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#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`. |
| int | [REAL](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#REAL) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `REAL`. |
| int | [REF](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#REF) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `REF`. |
| int | [ROWID](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#ROWID) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `ROWID` |
| int | [SMALLINT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#SMALLINT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `SMALLINT`. |
| int | [SQLXML](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#SQLXML) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `XML`. |
| int | [STRUCT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#STRUCT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `STRUCT`. |
| int | [TIME](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#TIME) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIME`. |
| int | [TIMESTAMP](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#TIMESTAMP) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIMESTAMP`. |
| int | [TINYINT](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#TINYINT) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TINYINT`. |
| int | [VARBINARY](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#VARBINARY) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `VARBINARY`. |
| int | [VARCHAR](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html#VARCHAR) | The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `VARCHAR`. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Constants

#### 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`.
Constant Value: 2003

#### public static final int
**BIGINT**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`BIGINT`.
Constant Value: -5

#### public static final int
**BINARY**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`BINARY`.
Constant Value: -2

#### public static final int
**BIT**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`BIT`.
Constant Value: -7

#### 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`.
Constant Value: 2004

#### 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`.
Constant Value: 16

#### public static final int
**CHAR**

<br />

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

#### 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`.
Constant Value: 2005

#### 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`.
Constant Value: 70

#### public static final int
**DATE**

<br />

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

#### public static final int
**DECIMAL**

<br />

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

#### 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`.
Constant Value: 2001

#### public static final int
**DOUBLE**

<br />

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

#### public static final int
**FLOAT**

<br />

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

#### public static final int
**INTEGER**

<br />

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

#### 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`.
Constant Value: 2000

#### public static final int
**LONGNVARCHAR**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `LONGNVARCHAR`.
Constant Value: -16

#### public static final int
**LONGVARBINARY**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`LONGVARBINARY`.
Constant Value: -4

#### public static final int
**LONGVARCHAR**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`LONGVARCHAR`.
Constant Value: -1

#### public static final int
**NCHAR**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `NCHAR`
Constant Value: -15

#### public static final int
**NCLOB**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `NCLOB`.
Constant Value: 2011

#### public static final int
**NULL**

<br />

The constant in the Java programming language
that identifies the generic SQL value
`NULL`.
Constant Value: 0

#### public static final int
**NUMERIC**

<br />

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

#### public static final int
**NVARCHAR**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `NVARCHAR`.
Constant Value: -9

#### 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`.
Constant Value: 1111

#### public static final int
**REAL**

<br />

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

#### 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`.
Constant Value: 2006

#### public static final int
**ROWID**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `ROWID`
Constant Value: -8

#### public static final int
**SMALLINT**

<br />

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

#### public static final int
**SQLXML**

The constant in the Java programming language, sometimes referred to
as a type code, that identifies the generic SQL type `XML`.
Constant Value: 2009

#### 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`.
Constant Value: 2002

#### public static final int
**TIME**

<br />

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

#### public static final int
**TIMESTAMP**

<br />

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

#### public static final int
**TINYINT**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`TINYINT`.
Constant Value: -6

#### public static final int
**VARBINARY**

<br />

The constant in the Java programming language, sometimes referred
to as a type code, that identifies the generic SQL type
`VARBINARY`.
Constant Value: -3

#### public static final int
**VARCHAR**

<br />

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