JdbcStatement

A JDBC `Statement`. For documentation of this class, see [`java.sql.Statement
`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html).

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#addBatch(String)` | `void` | For documentation of this method, see [`java.sql.Statement#addBatch(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#addBatch(java.lang.String)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#cancel()` | `void` | For documentation of this method, see [` java.sql.Statement#cancel()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#cancel()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#clearBatch()` | `void` | For documentation of this method, see [` java.sql.Statement#clearBatch()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#clearBatch()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#clearWarnings()` | `void` | For documentation of this method, see [` java.sql.Statement#clearWarnings()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#clearWarnings()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#close()` | `void` | For documentation of this method, see [` java.sql.Statement#close()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#close()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#execute(String)` | `Boolean` | For documentation of this method, see [`java.sql.Statement#execute(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#execute(String,Integer)` | `Boolean` | For documentation of this method, see [`java.sql.Statement#execute(String, int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#execute(String,Integer)` | `Boolean` | For documentation of this method, see [`java.sql.Statement#execute(String, int[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20int[])). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#execute(String,String)` | `Boolean` | For documentation of this method, see [`java.sql.Statement#execute(String, String[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20java.lang.String[])). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeBatch()` | `Integer[]` | For documentation of this method, see [` java.sql.Statement#executeBatch()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeBatch()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeQuery(String)` | `https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` | For documentation of this method, see [`java.sql.Statement#executeQuery(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeQuery(java.lang.String)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeUpdate(String)` | `Integer` | For documentation of this method, see [`java.sql.Statement#executeUpdate(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeUpdate(String,Integer)` | `Integer` | For documentation of this method, see [`java.sql.Statement#executeUpdate(String, int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeUpdate(String,Integer)` | `Integer` | For documentation of this method, see [`java.sql.Statement#executeUpdate(String, int[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int[])). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#executeUpdate(String,String)` | `Integer` | For documentation of this method, see [`java.sql.Statement#executeUpdate(String, String[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20java.lang.String[])). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getConnection()` | `https://developers.google.com/apps-script/reference/jdbc/jdbc-connection` | For documentation of this method, see [` java.sql.Statement#getConnection()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getConnection()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getFetchDirection()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getFetchDirection()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getFetchDirection()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getFetchSize()` | `Integer` | For documentation of this method, see [` java.sql.Statement#getFetchSize()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getFetchSize()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getGeneratedKeys()` | `https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` | For documentation of this method, see [`java.sql.Statement#getGeneratedKeys()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getGeneratedKeys()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getMaxFieldSize()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getMaxFieldSize()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMaxFieldSize()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getMaxRows()` | `Integer` | For documentation of this method, see [` java.sql.Statement#getMaxRows()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMaxRows()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getMoreResults()` | `Boolean` | For documentation of this method, see [`java.sql.Statement#getMoreResults()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMoreResults()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getMoreResults(Integer)` | `Boolean` | For documentation of this method, see [`java.sql.Statement#getMoreResults(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMoreResults(int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getQueryTimeout()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getQueryTimeout()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getQueryTimeout()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getResultSet()` | `https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` | For documentation of this method, see [` java.sql.Statement#getResultSet()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSet()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getResultSetConcurrency()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getResultSetConcurrency()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetConcurrency()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getResultSetHoldability()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getResultSetHoldability()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetHoldability()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getResultSetType()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getResultSetType()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetType()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getUpdateCount()` | `Integer` | For documentation of this method, see [`java.sql.Statement#getUpdateCount()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getUpdateCount()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#getWarnings()` | `String[]` | For documentation of this method, see [` java.sql.Statement#getWarnings()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getWarnings()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#isClosed()` | `Boolean` | For documentation of this method, see [` java.sql.Statement#isClosed()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#isClosed()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#isPoolable()` | `Boolean` | For documentation of this method, see [` java.sql.Statement#isPoolable()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#isPoolable()). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setCursorName(String)` | `void` | For documentation of this method, see [`java.sql.Statement#setCursorName(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setCursorName(java.lang.String)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setEscapeProcessing(Boolean)` | `void` | For documentation of this method, see [`java.sql.Statement#setEscapeProcessing(boolean)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setEscapeProcessing(boolean)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setFetchDirection(Integer)` | `void` | For documentation of this method, see [`java.sql.Statement#setFetchDirection(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setFetchDirection(int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setFetchSize(Integer)` | `void` | For documentation of this method, see [`java.sql.Statement#setFetchSize(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setFetchSize(int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setMaxFieldSize(Integer)` | `void` | For documentation of this method, see [`java.sql.Statement#setMaxFieldSize(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setMaxFieldSize(int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setMaxRows(Integer)` | `void` | For documentation of this method, see [` java.sql.Statement#setMaxRows(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setMaxRows(int)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setPoolable(Boolean)` | `void` | For documentation of this method, see [`java.sql.Statement#setPoolable(boolean)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setPoolable(boolean)). |
| `https://developers.google.com/apps-script/reference/jdbc/jdbc-statement#setQueryTimeout(Integer)` | `void` | For documentation of this method, see [`java.sql.Statement#setQueryTimeout(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setQueryTimeout(int)). |

## Detailed documentation

### `addBatch(sql)`

For documentation of this method, see [`java.sql.Statement#addBatch(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#addBatch(java.lang.String)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL command to add to this statement, typically an SQL `INSERT` or `UPDATE`. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `cancel()`

For documentation of this method, see [`
java.sql.Statement#cancel()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#cancel()).

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `clearBatch()`

For documentation of this method, see [`
java.sql.Statement#clearBatch()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#clearBatch()).

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `clearWarnings()`

For documentation of this method, see [`
java.sql.Statement#clearWarnings()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#clearWarnings()).

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `close()`

For documentation of this method, see [`
java.sql.Statement#close()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#close()).

*** ** * ** ***

### `execute(sql)`

For documentation of this method, see [`java.sql.Statement#execute(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL statement to execute. |

#### Return


`Boolean` --- `true` if the first result is a result set; `false` if it is an update
count or if there are no results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `execute(sql, autoGeneratedKeys)`

For documentation of this method, see [`java.sql.Statement#execute(String, int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL statement to execute. |
| `autoGeneratedKeys` | `Integer` | A flag that indicates whether auto-generated keys are made available for future retrieval; either `Jdbc.Statement.RETURN_GENERATED_KEYS` or `Jdbc.Statement.NO_GENERATED_KEYS`. |

#### Return


`Boolean` --- `true` if the first result is a result set; `false` if it is an update
count or if there are no results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `execute(sql, columnIndexes)`

For documentation of this method, see [`java.sql.Statement#execute(String, int[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20int[])).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL statement to execute. |
| `columnIndexes` | `Integer[]` | The column indices in the whose auto-generated keys are made available for future retrieval. |

#### Return


`Boolean` --- `true` if the first result is a result set; `false` if it is an update
count or if there are no results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `execute(sql, columnNames)`

For documentation of this method, see [`java.sql.Statement#execute(String, String[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#execute(java.lang.String,%20java.lang.String[])).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL statement to execute. |
| `columnNames` | `String[]` | The names of columns in the whose auto-generated keys are made available for future retrieval. |

#### Return


`Boolean` --- `true` if the first result is a result set; `false` if it is an update
count or if there are no results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeBatch()`

For documentation of this method, see [`
java.sql.Statement#executeBatch()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeBatch()).

#### Return


`Integer[]` --- The update counts for each command in the batch, using the same order in which commands
were added to the batch.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeQuery(sql)`

For documentation of this method, see [`java.sql.Statement#executeQuery(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeQuery(java.lang.String)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL statement to execute, typically a static `SELECT`. |

#### Return


`https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` --- A result set containing the results of the execution. This is never `null`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeUpdate(sql)`

For documentation of this method, see [`java.sql.Statement#executeUpdate(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL Data Manipulation Language statement to execute (such as `INSERT`, `UPDATE`, or `DELETE`), or else a statement that returns nothing (such as a DDL statement). |

#### Return


`Integer` --- Either the row count for for Data Manipulation Language statements, or 0 for statements
that return nothing.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeUpdate(sql, autoGeneratedKeys)`

For documentation of this method, see [`java.sql.Statement#executeUpdate(String, int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL Data Manipulation Language statement to execute (such as `INSERT`, `UPDATE`, or `DELETE`), or else a statement that returns nothing (such as a DDL statement). |
| `autoGeneratedKeys` | `Integer` | A flag that indicates whether auto-generated keys are made available for future retrieval; either `Jdbc.Statement.RETURN_GENERATED_KEYS` or `Jdbc.Statement.NO_GENERATED_KEYS`. |

#### Return


`Integer` --- Either the row count for for Data Manipulation Language statements, or 0 for statements
that return nothing.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeUpdate(sql, columnIndexes)`

For documentation of this method, see [`java.sql.Statement#executeUpdate(String, int[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20int[])).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL Data Manipulation Language statement to execute (such as `INSERT`, `UPDATE`, or `DELETE`), or else a statement that returns nothing (such as a DDL statement). |
| `columnIndexes` | `Integer[]` | The column indices in the whose auto-generated keys are made available for future retrieval. |

#### Return


`Integer` --- Either the row count for for Data Manipulation Language statements, or 0 for statements
that return nothing.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `executeUpdate(sql, columnNames)`

For documentation of this method, see [`java.sql.Statement#executeUpdate(String, String[])`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String,%20java.lang.String[])).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sql` | `String` | The SQL Data Manipulation Language statement to execute (such as `INSERT`, `UPDATE`, or `DELETE`), or else a statement that returns nothing (such as a DDL statement). |
| `columnNames` | `String[]` | The names of columns in the whose auto-generated keys are made available for future retrieval. |

#### Return


`Integer` --- Either the row count for for Data Manipulation Language statements, or 0 for statements
that return nothing.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getConnection()`

For documentation of this method, see [`
java.sql.Statement#getConnection()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getConnection()).

#### Return


`https://developers.google.com/apps-script/reference/jdbc/jdbc-connection` --- The connection that produced this statement.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getFetchDirection()`

For documentation of this method, see [`java.sql.Statement#getFetchDirection()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getFetchDirection()).

#### Return


`Integer` --- The default direction for result sets generated by this statement, which is either
`Jdbc.ResultSet.FETCH_FORWARD` or `Jdbc.ResultSet.FETCH_REVERSE`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getFetchSize()`

For documentation of this method, see [`
java.sql.Statement#getFetchSize()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getFetchSize()).

#### Return


`Integer` --- The default row fetch size for result sets generated from this statement.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getGeneratedKeys()`

For documentation of this method, see [`java.sql.Statement#getGeneratedKeys()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getGeneratedKeys()).

#### Return


`https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` --- A result set containing the auto-generated keys generated by the execution of this
statement.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getMaxFieldSize()`

For documentation of this method, see [`java.sql.Statement#getMaxFieldSize()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMaxFieldSize()).

#### Return


`Integer` --- The current column byte size limit for columns storing character and binary values; a
value of zero indictates no limit.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getMaxRows()`

For documentation of this method, see [`
java.sql.Statement#getMaxRows()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMaxRows()).

#### Return


`Integer` --- The current maximum number of rows for a result set produced by this statement; a value
of 0 indicates no limit.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getMoreResults()`

For documentation of this method, see [`java.sql.Statement#getMoreResults()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMoreResults()).

#### Return


`Boolean` --- `true` if the next result is a result set; `false` otherwise.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getMoreResults(current)`

For documentation of this method, see [`java.sql.Statement#getMoreResults(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMoreResults(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `current` | `Integer` | A flag that indicates what happens to current result sets when retrieved. This value is one of `Jdbc.Statement.CLOSE_CURRENT_RESULT`, `Jdbc.Statement.KEEP_CURRENT_RESULT`, or `Jdbc.Statement.CLOSE_ALL_RESULTS`. |

#### Return


`Boolean` --- `true` if the next result is a result set; `false` otherwise.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getQueryTimeout()`

For documentation of this method, see [`java.sql.Statement#getQueryTimeout()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getQueryTimeout()).

#### Return


`Integer` --- The current query timeout in seconds; a value of zero indicates no timeout.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getResultSet()`

For documentation of this method, see [`
java.sql.Statement#getResultSet()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSet()).

#### Return


`https://developers.google.com/apps-script/reference/jdbc/jdbc-result-set` --- The current result set, or `null` if the result is an update count or there are
no more results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getResultSetConcurrency()`

For documentation of this method, see [`java.sql.Statement#getResultSetConcurrency()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetConcurrency()).

#### Return


`Integer` --- The result set concurrency for result sets generated from this statement, which is
either `Jdbc.ResultSet.CONCUR_READ_ONLY` or `Jdbc.ResultSet.CONCUR_UPDATABLE`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getResultSetHoldability()`

For documentation of this method, see [`java.sql.Statement#getResultSetHoldability()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetHoldability()).

#### Return


`Integer` --- The result set holdability, which is either `Jdbc.ResultSet.HOLD_CURSORS_OVER_COMMIT` or `Jdbc.ResultSet.CLOSE_CURSORS_AT_COMMIT`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getResultSetType()`

For documentation of this method, see [`java.sql.Statement#getResultSetType()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getResultSetType()).

#### Return


`Integer` --- The result set type for result sets generated from this statement, which is `Jdbc.ResultSet.TYPE_FORWARD_ONLY`, `Jdbc.ResultSet.TYPE_SCROLL_INSENSITIVE`, or
`Jdbc.ResultSet.TYPE_SCROLL_INSENSITIVE`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getUpdateCount()`

For documentation of this method, see [`java.sql.Statement#getUpdateCount()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getUpdateCount()).

#### Return


`Integer` --- The current result as an update count, or -1 if the current result is a result set or
if there are no more results.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `getWarnings()`

For documentation of this method, see [`
java.sql.Statement#getWarnings()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getWarnings()).

#### Return


`String[]` --- The current set of warnings, or `null` if there are no warnings.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `isClosed()`

For documentation of this method, see [`
java.sql.Statement#isClosed()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#isClosed()).

#### Return


`Boolean` --- `true` if this statement is closed; `false` otherwise.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `isPoolable()`

For documentation of this method, see [`
java.sql.Statement#isPoolable()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#isPoolable()).

#### Return


`Boolean` --- `true` if this statement is poolable; `false` otherwise.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setCursorName(name)`

For documentation of this method, see [`java.sql.Statement#setCursorName(String)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setCursorName(java.lang.String)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `name` | `String` | The new cursor name, which must be unique within a connection. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setEscapeProcessing(enable)`

For documentation of this method, see [`java.sql.Statement#setEscapeProcessing(boolean)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setEscapeProcessing(boolean)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `enable` | `Boolean` | If `true`, escape processing is enabled; otherwise it is disabled. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setFetchDirection(direction)`

For documentation of this method, see [`java.sql.Statement#setFetchDirection(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setFetchDirection(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `direction` | `Integer` | The specified direction to set, which is either `Jdbc.ResultSet.FETCH_FORWARD` or `Jdbc.ResultSet.FETCH_REVERSE`. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setFetchSize(rows)`

For documentation of this method, see [`java.sql.Statement#setFetchSize(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setFetchSize(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `rows` | `Integer` | The number of rows to fetch. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setMaxFieldSize(max)`

For documentation of this method, see [`java.sql.Statement#setMaxFieldSize(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setMaxFieldSize(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `max` | `Integer` | The new column byte size limit; a value of zero indicates no limit. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setMaxRows(max)`

For documentation of this method, see [`
java.sql.Statement#setMaxRows(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setMaxRows(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `max` | `Integer` | The maximum number of rows a result set generated by this statement can have. A value of 0 indicates no limit. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setPoolable(poolable)`

For documentation of this method, see [`java.sql.Statement#setPoolable(boolean)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setPoolable(boolean)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `poolable` | `Boolean` | If `true`, requests that this statement be pooled; otherwise requests it not be pooled. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`

*** ** * ** ***

### `setQueryTimeout(seconds)`

For documentation of this method, see [`java.sql.Statement#setQueryTimeout(int)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#setQueryTimeout(int)).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `seconds` | `Integer` | The new query timeout in seconds; a value of 0 indicates no timeout. |

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/script.external_request`