JDBC CallableStatement . Документацию по этому классу см. в java.sql.CallableStatement .
Методы
Подробная документация
addBatch()
Документацию по этому методу см. в java.sql.PreparedStatement#addBatch() .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
addBatch(sql)
Документацию по этому методу см. в java.sql.Statement#addBatch(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Команда SQL для добавления к этому оператору, обычно SQL INSERT или UPDATE . |
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
cancel()
Документацию по этому методу см. в java.sql.Statement#cancel() .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
clearBatch()
Документацию по этому методу см. в java.sql.Statement#clearBatch() .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
clearParameters()
Документацию по этому методу см. в java.sql.PreparedStatement#clearParameters() .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
clearWarnings()
Документацию по этому методу см. в java.sql.Statement#clearWarnings() .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
close()
Документацию по этому методу см. в java.sql.Statement#close() .
execute()
Документацию по этому методу см. в java.sql.PreparedStatement#execute() .
Возвращаться
Boolean — true если первый результат является набором результатов; false если первый результат является количеством обновлений или результат отсутствует.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
execute(sql)
Документацию по этому методу см. в java.sql.Statement#execute(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор SQL для выполнения. |
Возвращаться
Boolean — true если первый результат является набором результатов; false если это количество обновлений или если результатов нет.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
execute(sql, autoGeneratedKeys)
Документацию по этому методу см. в java.sql.Statement#execute(String, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор SQL для выполнения. |
autoGeneratedKeys | Integer | Флаг, указывающий, будут ли автоматически сгенерированные ключи доступны для будущего извлечения: Jdbc.Statement.RETURN_GENERATED_KEYS или Jdbc.Statement.NO_GENERATED_KEYS . |
Возвращаться
Boolean — true если первый результат является набором результатов; false если это количество обновлений или если результатов нет.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
execute(sql, columnIndexes)
Документацию по этому методу см. в java.sql.Statement#execute(String, int[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор SQL для выполнения. |
columnIndexes | Integer[] | Индексы столбцов, в которых автоматически сгенерированные ключи доступны для будущего извлечения. |
Возвращаться
Boolean — true если первый результат является набором результатов; false если это количество обновлений или если результатов нет.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
execute(sql, columnNames)
Документацию по этому методу см. в java.sql.Statement#execute(String, String[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор SQL для выполнения. |
columnNames | String[] | Имена столбцов, в которых автоматически сгенерированные ключи доступны для будущего извлечения. |
Возвращаться
Boolean — true если первый результат является набором результатов; false если это количество обновлений или если результатов нет.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeBatch()
Документацию по этому методу см. в java.sql.Statement#executeBatch() .
Возвращаться
Integer[] — обновление учитывается для каждой команды в пакете, используя тот же порядок, в котором команды были добавлены в пакет.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeBatch(parameters)
Отправляет пакет команд в базу данных для выполнения и, если все команды выполнены успешно, возвращает массив с количеством обновлений. Аргумент параметров — это двумерный массив, каждый внутренний массив которого содержит параметры для одного выполнения оператора. Например, если у вас есть оператор типа «INSERT INTO employees (name, age) VALUES (?, ?)», параметры могут быть [["John Doe", 30], ["John Smith", 25]] .
В следующем примере в базу данных вставляется несколько строк с использованием пакетной обработки:
var conn = Jdbc.getCloudSqlConnection("jdbc:google:mysql://..."); var stmt = conn.prepareStatement("INSERT INTO employees (name, age) VALUES (?, ?)"); var params = [["John Doe", 30], ["John Smith", 25]]; stmt.executeBatch(params);
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameters | Object[][] | Двумерный массив объектов, представляющих параметры для каждой партии. |
Возвращаться
Integer[] — массив счетчиков обновлений, содержащий один элемент для каждой команды в пакете.
Броски
Error — если произошла ошибка доступа к базе данных.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeQuery()
Документацию по этому методу см. в java.sql.PreparedStatement#executeQuery() .
Возвращаться
JdbcResultSet — набор результатов, содержащий данные, полученные в результате запроса.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeQuery(sql)
Документацию по этому методу см. в java.sql.Statement#executeQuery(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор SQL для выполнения, обычно статический SELECT . |
Возвращаться
JdbcResultSet — набор результатов выполнения. Никогда не null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeUpdate()
Документацию по этому методу см. в java.sql.PreparedStatement#executeUpdate() .
Возвращаться
Integer — количество строк операторов языка манипулирования данными SQL или 0 для операторов SQL, которые ничего не возвращают.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeUpdate(sql)
Документацию по этому методу см. в java.sql.Statement#executeUpdate(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор языка манипулирования данными SQL, который необходимо выполнить (например, INSERT , UPDATE или DELETE ), или оператор, который ничего не возвращает (например, оператор DDL). |
Возвращаться
Integer — либо количество строк для операторов языка манипулирования данными, либо 0 для операторов, которые ничего не возвращают.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeUpdate(sql, autoGeneratedKeys)
Документацию по этому методу см. в java.sql.Statement#executeUpdate(String, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор языка манипулирования данными SQL, который необходимо выполнить (например, INSERT , UPDATE или DELETE ), или оператор, который ничего не возвращает (например, оператор DDL). |
autoGeneratedKeys | Integer | Флаг, указывающий, будут ли автоматически сгенерированные ключи доступны для будущего извлечения: Jdbc.Statement.RETURN_GENERATED_KEYS или Jdbc.Statement.NO_GENERATED_KEYS . |
Возвращаться
Integer — либо количество строк для операторов языка манипулирования данными, либо 0 для операторов, которые ничего не возвращают.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeUpdate(sql, columnIndexes)
Документацию по этому методу см. в java.sql.Statement#executeUpdate(String, int[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор языка манипулирования данными SQL, который необходимо выполнить (например, INSERT , UPDATE или DELETE ), или оператор, который ничего не возвращает (например, оператор DDL). |
columnIndexes | Integer[] | Индексы столбцов, в которых автоматически сгенерированные ключи доступны для будущего извлечения. |
Возвращаться
Integer — либо количество строк для операторов языка манипулирования данными, либо 0 для операторов, которые ничего не возвращают.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
executeUpdate(sql, columnNames)
Документацию по этому методу см. в java.sql.Statement#executeUpdate(String, String[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
sql | String | Оператор языка манипулирования данными SQL, который необходимо выполнить (например, INSERT , UPDATE или DELETE ), или оператор, который ничего не возвращает (например, оператор DDL). |
columnNames | String[] | Имена столбцов, в которых автоматически сгенерированные ключи доступны для будущего извлечения. |
Возвращаться
Integer — либо количество строк для операторов языка манипулирования данными, либо 0 для операторов, которые ничего не возвращают.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getArray(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getArray(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
JdbcArray — значение параметра ARRAY . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getArray(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getArray(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
JdbcArray — значение параметра ARRAY . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBigDecimal(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getBigDecimal(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
BigNumber — значение NUMERIC параметра с полной точностью. Возвращает null если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBigDecimal(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getBigDecimal(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
BigNumber — значение NUMERIC параметра. Возвращает null если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBlob(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getBlob(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
JdbcBlob — значение параметра BLOB . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBlob(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getBlob(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
JdbcBlob — значение параметра BLOB . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBoolean(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getBoolean(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Boolean — значение параметра BIT или BOOLEAN . Возвращает false если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBoolean(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getBoolean(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Boolean — значение параметра BIT или BOOLEAN . Возвращает false если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getByte(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getByte(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Byte — значение параметра TINYINT . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getByte(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getByte(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Byte — значение параметра TINYINT . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBytes(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getBytes(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Byte[] — значение параметра BINARY или VARBINARY . Возвращает null если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getBytes(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getBytes(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Byte[] — значение параметра BINARY или VARBINARY . Возвращает null если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getClob(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getClob(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
JdbcClob — значение параметра CLOB . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getClob(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getClob(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
JdbcClob — значение параметра CLOB . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getConnection()
Документацию по этому методу см. в java.sql.Statement#getConnection() .
Возвращаться
JdbcConnection — соединение, которое создало этот оператор.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDate(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getDate(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
JdbcDate — значение параметра DATE . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDate(parameterIndex, timeZone)
Документацию по этому методу см. в java.sql.CallableStatement#getDate(int, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
timeZone | String | Строка часового пояса, используемая для создания экземпляра java.lang.Calendar , который, в свою очередь, используется для формирования даты. Распознаются несколько форматов строк часового пояса: короткие идентификаторы (например, PST , EST и GMT ), длинные идентификаторы (например, US/Pacific и America/Los_Angeles ) и смещения (например, GMT+6:30 ). |
Возвращаться
JdbcDate — значение параметра DATE . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDate(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getDate(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
JdbcDate — значение параметра DATE . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDate(parameterName, timeZone)
Документацию по этому методу см. в java.sql.CallableStatement#getDate(String, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
timeZone | String | Строка часового пояса, используемая для создания экземпляра java.lang.Calendar , который, в свою очередь, используется для формирования даты. Распознаются несколько форматов строк часового пояса: короткие идентификаторы (например, PST , EST и GMT ), длинные идентификаторы (например, US/Pacific и America/Los_Angeles ) и смещения (например, GMT+6:30 ). |
Возвращаться
JdbcDate — значение параметра DATE . Возвращает null , если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDouble(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getDouble(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Number — значение параметра DOUBLE . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getDouble(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getDouble(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Number — значение параметра DOUBLE . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getFetchDirection()
Документацию по этому методу см. в java.sql.Statement#getFetchDirection() .
Возвращаться
Integer — направление по умолчанию для наборов результатов, генерируемых этим оператором: Jdbc.ResultSet.FETCH_FORWARD или Jdbc.ResultSet.FETCH_REVERSE .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getFetchSize()
Документацию по этому методу см. в java.sql.Statement#getFetchSize() .
Возвращаться
Integer — размер выборки строк по умолчанию для наборов результатов, сгенерированных этим оператором.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getFloat(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getFloat(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Number — значение параметра FLOAT . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getFloat(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getFloat(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Number — значение параметра FLOAT . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getGeneratedKeys()
Документацию по этому методу см. в java.sql.Statement#getGeneratedKeys() .
Возвращаться
JdbcResultSet — набор результатов, содержащий автоматически сгенерированные ключи, созданные при выполнении этого оператора.
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getInt(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getInt(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | Индекс извлекаемого параметра (первый параметр — 1, второй — 2 и т. д.). |
Возвращаться
Integer — значение параметра INTEGER . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getInt(parameterName)
Документацию по этому методу см. в java.sql.CallableStatement#getInt(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | Имя параметра. |
Возвращаться
Integer — значение параметра INTEGER . Возвращает 0, если значение равно null .
Авторизация
Скрипты, использующие этот метод, требуют авторизации в одной или нескольких из следующих областей :
-
https://www.googleapis.com/auth/script.external_request
getLong(parameterIndex)
Документацию по этому методу см. в java.sql.CallableStatement#getLong(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
Integer — The value of a BIGINT parameter. Returns 0 if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getLong(parameterName)
For documentation of this method, see java.sql.CallableStatement#getLong(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
Integer — The value of a BIGINT parameter. Returns 0 if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getMaxFieldSize()
For documentation of this method, see java.sql.Statement#getMaxFieldSize() .
Возвращаться
Integer — The current column byte size limit for columns storing character and binary values; a value of zero indictates no limit.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getMaxRows()
For documentation of this method, see java.sql.Statement#getMaxRows() .
Возвращаться
Integer — The current maximum number of rows for a result set produced by this statement; a value of 0 indicates no limit.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getMetaData()
For documentation of this method, see java.sql.PreparedStatement#getMetaData() .
Возвращаться
JdbcResultSetMetaData — The description of a result set's columns, or NULL if this metadata is unavailable.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getMoreResults()
For documentation of this method, see java.sql.Statement#getMoreResults() .
Возвращаться
Boolean — true if the next result is a result set; false otherwise.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getMoreResults(current)
For documentation of this method, see java.sql.Statement#getMoreResults(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
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 . |
Возвращаться
Boolean — true if the next result is a result set; false otherwise.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getNClob(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getNClob(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcClob — The value of a NCLOB parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getNClob(parameterName)
For documentation of this method, see java.sql.CallableStatement#getNClob(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcClob — The value of a NCLOB parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getNString(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getNString(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
Возвращаться
String — A string that maps a NCHAR , NVARCHAR , or LONGNVARCHAR value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getNString(parameterName)
For documentation of this method, see java.sql.CallableStatement#getNString(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
String — A string that maps a NCHAR , NVARCHAR , or LONGNVARCHAR value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getObject(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getObject(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
Object — An object holding the parameter value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getObject(parameterName)
For documentation of this method, see java.sql.CallableStatement#getObject(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
Object — An object holding the parameter value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getParameterMetaData()
For documentation of this method, see java.sql.PreparedStatement#getParameterMetaData() .
Возвращаться
JdbcParameterMetaData — The parameter metadata, including the number, types, and properties for each parameter.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getQueryTimeout()
For documentation of this method, see java.sql.Statement#getQueryTimeout() .
Возвращаться
Integer — The current query timeout in seconds; a value of zero indicates no timeout.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getRef(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getRef(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcRef — The value of a REF parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getRef(parameterName)
For documentation of this method, see java.sql.CallableStatement#getRef(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcRef — The value of a REF parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getResultSet()
For documentation of this method, see java.sql.Statement#getResultSet() .
Возвращаться
JdbcResultSet — The current result set, or null if the result is an update count or there are no more results.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getResultSetConcurrency()
For documentation of this method, see java.sql.Statement#getResultSetConcurrency() .
Возвращаться
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 .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getResultSetHoldability()
For documentation of this method, see java.sql.Statement#getResultSetHoldability() .
Возвращаться
Integer — The result set holdability, which is either Jdbc.ResultSet.HOLD_CURSORS_OVER_COMMIT or Jdbc.ResultSet.CLOSE_CURSORS_AT_COMMIT .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getResultSetType()
For documentation of this method, see java.sql.Statement#getResultSetType() .
Возвращаться
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 .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getRowId(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getRowId(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcRowId — The ROWID value. Returns null if the parameter contains an SQL NULL .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getRowId(parameterName)
For documentation of this method, see java.sql.CallableStatement#getRowId(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcRowId — The ROWID value. Returns null if the parameter contains an SQL NULL .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getSQLXML(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getSQLXML(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcSQLXML — A SQLXML object that maps to an SQL XML value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getSQLXML(parameterName)
For documentation of this method, see java.sql.CallableStatement#getSQLXML(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcSQLXML — A SQLXML object that maps to an SQL XML value.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getShort(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getShort(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
Integer — The value of a SMALLINT parameter. Returns 0 if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getShort(parameterName)
For documentation of this method, see java.sql.CallableStatement#getShort(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
Integer — The value of a SMALLINT parameter. Returns 0 if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getString(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getString(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
String — The value of a CHAR , VARCHAR , or LONGVARCHAR parameter.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getString(parameterName)
For documentation of this method, see java.sql.CallableStatement#getString(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
String — The value of a CHAR , VARCHAR , or LONGVARCHAR parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTime(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getTime(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcTime — The value of a TIME parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTime(parameterIndex, timeZone)
For documentation of this method, see java.sql.CallableStatement#getTime(int, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Возвращаться
JdbcTime — The value of a TIME parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTime(parameterName)
For documentation of this method, see java.sql.CallableStatement#getTime(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcTime — The value of a TIME parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTime(parameterName, timeZone)
For documentation of this method, see java.sql.CallableStatement#getTime(String, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Возвращаться
JdbcTime — The value of a TIME parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTimestamp(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getTimestamp(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
JdbcTimestamp — The value of a TIMESTAMP parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTimestamp(parameterIndex, timeZone)
For documentation of this method, see java.sql.CallableStatement#getTimestamp(int, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Возвращаться
JdbcTimestamp — The value of a TIMESTAMP parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTimestamp(parameterName)
For documentation of this method, see java.sql.CallableStatement#getTimestamp(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
JdbcTimestamp — The value of a TIMESTAMP parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getTimestamp(parameterName, timeZone)
For documentation of this method, see java.sql.CallableStatement#getTimestamp(String, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Возвращаться
JdbcTimestamp — The value of a TIMESTAMP parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getURL(parameterIndex)
For documentation of this method, see java.sql.CallableStatement#getURL(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
Возвращаться
String — The value of a DATALINK parameter as a string.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getURL(parameterName)
For documentation of this method, see java.sql.CallableStatement#getURL(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter. |
Возвращаться
String — The value of a DATALINK parameter. Returns null if the value is null .
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getUpdateCount()
For documentation of this method, see java.sql.Statement#getUpdateCount() .
Возвращаться
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.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
getWarnings()
For documentation of this method, see java.sql.Statement#getWarnings() .
Возвращаться
String[] — The current set of warnings, or null if there are no warnings.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
isClosed()
For documentation of this method, see java.sql.Statement#isClosed() .
Возвращаться
Boolean — true if this statement is closed; false otherwise.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
isPoolable()
For documentation of this method, see java.sql.Statement#isPoolable() .
Возвращаться
Boolean — true if this statement is poolable; false otherwise.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterIndex, sqlType)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
sqlType | Integer | The JDBC type code to register. If the parameter is of JDBC type NUMERIC or DECIMAL , use registerOutParameter(parameterIndex, sqlType, scale) instead. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterIndex, sqlType, scale)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(int, int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | An index indicating which parameter to register (the first parameter is 1, the second is 2, and so on). |
sqlType | Integer | The JDBC type code to register. |
scale | Integer | The desired number of digits to the right of the decimal point (must be zero or greater). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterIndex, sqlType, typeName)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(int, int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). |
sqlType | Integer | A type code value. |
typeName | String | The fully-qualified name of an SQL structured type. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterName, sqlType)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(String, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to be registered. |
sqlType | Integer | A type code value. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterName, sqlType, scale)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(String, int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to be registered. |
sqlType | Integer | A type code value. |
scale | Integer | The desired number of digits to the right of the decimal point, which must be zero or greater. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
registerOutParameter(parameterName, sqlType, typeName)
For documentation of this method, see java.sql.CallableStatement#registerOutParameter(String, int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to be registered. |
sqlType | Integer | A type code value. |
typeName | String | The fully-qualified name of an SQL structured type. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setArray(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setArray(int, Array) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcArray | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBigDecimal(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setBigDecimal(int, BigDecimal) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | BigNumber | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBigDecimal(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setBigDecimal(String, BigDecimal) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | BigNumber | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBlob(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setBlob(int, Clob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcBlob | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBlob(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setBlob(String, Blob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcBlob | A blob that maps to an SQL BLOB value. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBoolean(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setBoolean(int, boolean) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Boolean | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBoolean(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setBoolean(String, boolean) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Boolean | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setByte(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setByte(int, byte) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Byte | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setByte(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setByte(String, byte) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Byte | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBytes(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setBytes(int, byte[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Byte[] | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setBytes(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setBytes(String, byte[]) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Byte[] | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setClob(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setClob(int, Clob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcClob | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setClob(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setBlob(String, Clob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcClob | A clob that maps to an SQL CLOB value. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setCursorName(name)
For documentation of this method, see java.sql.Statement#setCursorName(String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
name | String | The new cursor name, which must be unique within a connection. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDate(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcDate | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDate(parameterIndex, x, timeZone)
For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcDate | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDate(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setDate(String, Date) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcDate | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDate(parameterName, x, timeZone)
For documentation of this method, see java.sql.CallableStatement#setDate(String, Date, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcDate | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDouble(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setDouble(int, double) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Number | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setDouble(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setDouble(String, double) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Number | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setEscapeProcessing(enable)
For documentation of this method, see java.sql.Statement#setEscapeProcessing(boolean) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
enable | Boolean | If true , escape processing is enabled; otherwise it is disabled. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setFetchDirection(direction)
For documentation of this method, see java.sql.Statement#setFetchDirection(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
direction | Integer | The specified direction to set, which is either Jdbc.ResultSet.FETCH_FORWARD or Jdbc.ResultSet.FETCH_REVERSE . |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setFetchSize(rows)
For documentation of this method, see java.sql.Statement#setFetchSize(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
rows | Integer | The number of rows to fetch. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setFloat(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setFloat(int, float) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Number | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setFloat(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setFloat(String, float) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Number | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setInt(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setInt(int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setInt(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setInt(String, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setLong(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setLong(int, long) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setLong(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setLong(String, long) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setMaxFieldSize(max)
For documentation of this method, see java.sql.Statement#setMaxFieldSize(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
max | Integer | The new column byte size limit; a value of zero indicates no limit. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setMaxRows(max)
For documentation of this method, see java.sql.Statement#setMaxRows(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
max | Integer | The maximum number of rows a result set generated by this statement can have. A value of 0 indicates no limit. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNClob(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setNClob(int, NClob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcClob | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNClob(parameterName, value)
For documentation of this method, see java.sql.CallableStatement#setNClob(String, NClob) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
value | JdbcClob | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNString(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setNString(int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNString(parameterName, value)
For documentation of this method, see java.sql.CallableStatement#setNString(String, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
value | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNull(parameterIndex, sqlType)
For documentation of this method, see java.sql.PreparedStatement#setNull(int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
sqlType | Integer | The SQL type of the specified parameter. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNull(parameterIndex, sqlType, typeName)
For documentation of this method, see java.sql.PreparedStatement#setNull(int, int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
sqlType | Integer | The SQL type of the specified parameter. |
typeName | String | The fully-qualifed name of an SQL user-defined type. Ignored if the parameter isn't a user-defined type or REF . |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNull(parameterName, sqlType)
For documentation of this method, see java.sql.CallableStatement#setNull(String, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
sqlType | Integer | The SQL type code . |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setNull(parameterName, sqlType, typeName)
For documentation of this method, see java.sql.CallableStatement#setNull(String, int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
sqlType | Integer | The SQL type . |
typeName | String | The fully-qualified name of an SQL user-defined type; ignored if the parameter is not a user-defined type or SQL REF value. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(index, x)
For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
index | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Object | The object containing the value to set the parameter to. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(parameterIndex, x, targetSqlType)
For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Object | The object containing the value to set the parameter to. |
targetSqlType | Integer | The SQL type to send to the database. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(parameterIndex, x, targetSqlType, scaleOrLength)
For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Object | The object containing the value to set the parameter to. |
targetSqlType | Integer | The SQL type to send to the database. The scale argument may further qualify this type. |
scaleOrLength | Integer | The number of digits after the decimal for DECIMAL or NUMERIC types, or the length of data for InputStream or Reader types. Ignored for all other types. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setObject(String, Object) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Object | The object containing the value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(parameterName, x, targetSqlType)
For documentation of this method, see java.sql.CallableStatement#setObject(String, Object, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Object | The object containing the value to set. |
targetSqlType | Integer | The SQL type sent to the database. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setObject(parameterName, x, targetSqlType, scale)
For documentation of this method, see java.sql.CallableStatement#setObject(String, Object, int, int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Object | The object containing the value to set. |
targetSqlType | Integer | The SQL type sent to the database. The scale parameter may further qualify this type. |
scale | Integer | The number of digits after the decimal point for DECIMAL and NUMERIC types. Ignored for all other types. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setPoolable(poolable)
For documentation of this method, see java.sql.Statement#setPoolable(boolean) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
poolable | Boolean | If true , requests that this statement be pooled; otherwise requests it not be pooled. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setQueryTimeout(seconds)
For documentation of this method, see java.sql.Statement#setQueryTimeout(int) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
seconds | Integer | The new query timeout in seconds; a value of 0 indicates no timeout. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setRef(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setRef(int, Ref) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcRef | The SQL REF value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setRowId(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setRowId(int, RowId) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcRowId | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setRowId(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setRowId(String, RowId) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcRowId | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setSQLXML(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setSQLXML(int, SQLXML) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcSQLXML | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setSQLXML(parameterName, xmlObject)
For documentation of this method, see java.sql.CallableStatement#setSQLXML(String, SQLXML) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
xmlObject | JdbcSQLXML | A SQLXML object that maps to an SQL XML value. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setShort(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setShort(int, short) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setShort(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setShort(String, short) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | Integer | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setString(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setString(int, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setString(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setString(String, String) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTime(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcTime | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTime(parameterIndex, x, timeZone)
For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcTime | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTime(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setTime(String, Time) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcTime | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTime(parameterName, x, timeZone)
For documentation of this method, see java.sql.CallableStatement#setTime(String, Time, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcTime | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTimestamp(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcTimestamp | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTimestamp(parameterIndex, x, timeZone)
For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | JdbcTimestamp | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTimestamp(parameterName, x)
For documentation of this method, see java.sql.CallableStatement#setTimestamp(String, Timestamp) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcTimestamp | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setTimestamp(parameterName, x, timeZone)
For documentation of this method, see java.sql.CallableStatement#setTimestamp(String, Timestamp, Calendar) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
x | JdbcTimestamp | The parameter value to set. |
timeZone | String | A time zone string used to construct java.lang.Calendar instance, which in turn is used to build the date. Several formats of time zone strings are recognized: short IDs (such as PST , EST , and GMT ), long IDs (such as US/Pacific and America/Los_Angeles ), and offsets (such as GMT+6:30 ). |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setURL(parameterIndex, x)
For documentation of this method, see java.sql.PreparedStatement#setURL(int, URL) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterIndex | Integer | The index of the parameter to set (the first parameter is 1, the second is 2, and so on). |
x | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
setURL(parameterName, val)
For documentation of this method, see java.sql.CallableStatement#setURL(String, URL) .
Параметры
| Имя | Тип | Описание |
|---|---|---|
parameterName | String | The name of the parameter to set. |
val | String | The parameter value to set. |
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request
wasNull()
For documentation of this method, see java.sql.CallableStatement#wasNull() .
Возвращаться
Boolean — true if the last parameter read was null ; returns false otherwise.
Авторизация
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/script.external_request