Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/java/sql/Types#constants) \| [Inherited Methods](https://developer.android.com/reference/java/sql/Types#inhmethods)

# Types

` public class Types `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.sql.Types |

<br />

*** ** * ** ***

<br />

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

This class is never instantiated.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#BIGINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIGINT`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#BINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BINARY`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#BIT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIT`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#CHAR` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `CHAR`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#DATE` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DATE`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#DECIMAL` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DECIMAL`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#DOUBLE` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DOUBLE`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#FLOAT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `FLOAT`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#INTEGER` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `INTEGER`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#LONGNVARCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGNVARCHAR`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#LONGVARBINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARBINARY`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#LONGVARCHAR` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARCHAR`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#NCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCHAR` |
| `int` | `https://developer.android.com/reference/java/sql/Types#NCLOB` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCLOB`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#NULL` <br /> The constant in the Java programming language that identifies the generic SQL value `NULL`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#NUMERIC` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NUMERIC`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#NVARCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NVARCHAR`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#REAL` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `REAL`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#ROWID` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `ROWID` |
| `int` | `https://developer.android.com/reference/java/sql/Types#SMALLINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `SMALLINT`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#SQLXML` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `XML`. |
| `int` | `https://developer.android.com/reference/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`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#TIME` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIME`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#TIMESTAMP` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIMESTAMP`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#TINYINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TINYINT`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#VARBINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `VARBINARY`. |
| `int` | `https://developer.android.com/reference/java/sql/Types#VARCHAR` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `VARCHAR`. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### ARRAY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2003 (0x000007d3)

### BIGINT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -5 (0xfffffffb)

### BINARY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -2 (0xfffffffe)

### BIT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -7 (0xfffffff9)

### BLOB

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2004 (0x000007d4)

### BOOLEAN

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 16 (0x00000010)

### CHAR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 1 (0x00000001)

### CLOB

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2005 (0x000007d5)

### DATALINK

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 70 (0x00000046)

### DATE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 91 (0x0000005b)

### DECIMAL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 3 (0x00000003)

### DISTINCT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2001 (0x000007d1)

### DOUBLE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 8 (0x00000008)

### FLOAT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 6 (0x00000006)

### INTEGER

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 4 (0x00000004)

### JAVA_OBJECT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2000 (0x000007d0)

### LONGNVARCHAR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -16 (0xfffffff0)

### LONGVARBINARY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -4 (0xfffffffc)

### LONGVARCHAR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -1 (0xffffffff)

### NCHAR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`

<br />

Constant Value: -15 (0xfffffff1)

### NCLOB

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2011 (0x000007db)

### NULL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NULL
```

<br />

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

<br />

Constant Value: 0 (0x00000000)

### NUMERIC

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2 (0x00000002)

### NVARCHAR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -9 (0xfffffff7)

### OTHER

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 1111 (0x00000457)

### REAL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 7 (0x00000007)

### REF

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2006 (0x000007d6)

### ROWID

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`

<br />

Constant Value: -8 (0xfffffff8)

### SMALLINT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 5 (0x00000005)

### SQLXML

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2009 (0x000007d9)

### STRUCT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 2002 (0x000007d2)

### TIME

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 92 (0x0000005c)

### TIMESTAMP

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 93 (0x0000005d)

### TINYINT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -6 (0xfffffffa)

### VARBINARY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: -3 (0xfffffffd)

### VARCHAR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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`.

<br />

Constant Value: 12 (0x0000000c)