> Documentation index: https://developer.android.com/reference/llms.txt

Summary: [Constants](https://developer.android.com/reference/java/sql/Types.md.txt#constants) \| [Inherited Methods](https://developer.android.com/reference/java/sql/Types.md.txt#inhmethods)

# Types


`
public


class
Types
`


`

extends Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.md.txt) ||
| ↳ | 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` | `ARRAY` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `ARRAY`. |
| `int` | `BIGINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIGINT`. |
| `int` | `BINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BINARY`. |
| `int` | `BIT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BIT`. |
| `int` | `BLOB` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `BLOB`. |
| `int` | `BOOLEAN` The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type `BOOLEAN`. |
| `int` | `CHAR` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `CHAR`. |
| `int` | `CLOB` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `CLOB`. |
| `int` | `DATALINK` The constant in the Java programming language, somtimes referred to as a type code, that identifies the generic SQL type `DATALINK`. |
| `int` | `DATE` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DATE`. |
| `int` | `DECIMAL` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DECIMAL`. |
| `int` | `DISTINCT` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DISTINCT`. |
| `int` | `DOUBLE` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `DOUBLE`. |
| `int` | `FLOAT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `FLOAT`. |
| `int` | `INTEGER` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `INTEGER`. |
| `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`. |
| `int` | `LONGNVARCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGNVARCHAR`. |
| `int` | `LONGVARBINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARBINARY`. |
| `int` | `LONGVARCHAR` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `LONGVARCHAR`. |
| `int` | `NCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCHAR` |
| `int` | `NCLOB` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NCLOB`. |
| `int` | `NULL` <br /> The constant in the Java programming language that identifies the generic SQL value `NULL`. |
| `int` | `NUMERIC` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NUMERIC`. |
| `int` | `NVARCHAR` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `NVARCHAR`. |
| `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`. |
| `int` | `REAL` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `REAL`. |
| `int` | `REF` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `REF`. |
| `int` | `ROWID` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `ROWID` |
| `int` | `SMALLINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `SMALLINT`. |
| `int` | `SQLXML` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `XML`. |
| `int` | `STRUCT` The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `STRUCT`. |
| `int` | `TIME` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIME`. |
| `int` | `TIMESTAMP` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TIMESTAMP`. |
| `int` | `TINYINT` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `TINYINT`. |
| `int` | `VARBINARY` <br /> The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type `VARBINARY`. |
| `int` | `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 `

java.lang.Object

` `


Object` `
clone()
`

Creates and returns a copy of this object.


`


boolean` `
equals(Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
finalize()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

Class<?>` `
getClass()
`

Returns the runtime class of this `Object`.


`


int` `
hashCode()
`

Returns a hash code value for the object.


`


final

void` `
notify()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
notifyAll()
`

Wakes up all threads that are waiting on this object's monitor.


`


String` `
toString()
`

Returns a string representation of the object.


`


final

void` `
wait(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` `
wait(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` `
wait()
`

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


## Constants

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

<br />

Constant Value:

2003
(0x000007d3)


### BIGINT

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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