A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/jdbc/jdbc-prepared-statement below:

Class JdbcPreparedStatement | Apps Script

Skip to main content Class JdbcPreparedStatement

Stay organized with collections Save and categorize content based on your preferences.

Methods Method Return type Brief description addBatch() void For documentation of this method, see java.sql.PreparedStatement#addBatch(). addBatch(sql) void For documentation of this method, see java.sql.Statement#addBatch(String). cancel() void For documentation of this method, see java.sql.Statement#cancel(). clearBatch() void For documentation of this method, see java.sql.Statement#clearBatch(). clearParameters() void For documentation of this method, see java.sql.PreparedStatement#clearParameters(). clearWarnings() void For documentation of this method, see java.sql.Statement#clearWarnings(). close() void For documentation of this method, see java.sql.Statement#close(). execute() Boolean For documentation of this method, see java.sql.PreparedStatement#execute(). execute(sql) Boolean For documentation of this method, see java.sql.Statement#execute(String). execute(sql, autoGeneratedKeys) Boolean For documentation of this method, see java.sql.Statement#execute(String, int). execute(sql, columnIndexes) Boolean For documentation of this method, see java.sql.Statement#execute(String, int[]). execute(sql, columnNames) Boolean For documentation of this method, see java.sql.Statement#execute(String, String[]). executeBatch() Integer[] For documentation of this method, see java.sql.Statement#executeBatch(). executeQuery() JdbcResultSet For documentation of this method, see java.sql.PreparedStatement#executeQuery(). executeQuery(sql) JdbcResultSet For documentation of this method, see java.sql.Statement#executeQuery(String). executeUpdate() Integer For documentation of this method, see java.sql.PreparedStatement#executeUpdate(). executeUpdate(sql) Integer For documentation of this method, see java.sql.Statement#executeUpdate(String). executeUpdate(sql, autoGeneratedKeys) Integer For documentation of this method, see java.sql.Statement#executeUpdate(String, int). executeUpdate(sql, columnIndexes) Integer For documentation of this method, see java.sql.Statement#executeUpdate(String, int[]). executeUpdate(sql, columnNames) Integer For documentation of this method, see java.sql.Statement#executeUpdate(String, String[]). getConnection() JdbcConnection For documentation of this method, see java.sql.Statement#getConnection(). getFetchDirection() Integer For documentation of this method, see java.sql.Statement#getFetchDirection(). getFetchSize() Integer For documentation of this method, see java.sql.Statement#getFetchSize(). getGeneratedKeys() JdbcResultSet For documentation of this method, see java.sql.Statement#getGeneratedKeys(). getMaxFieldSize() Integer For documentation of this method, see java.sql.Statement#getMaxFieldSize(). getMaxRows() Integer For documentation of this method, see java.sql.Statement#getMaxRows(). getMetaData() JdbcResultSetMetaData For documentation of this method, see java.sql.PreparedStatement#getMetaData(). getMoreResults() Boolean For documentation of this method, see java.sql.Statement#getMoreResults(). getMoreResults(current) Boolean For documentation of this method, see java.sql.Statement#getMoreResults(int). getParameterMetaData() JdbcParameterMetaData For documentation of this method, see java.sql.PreparedStatement#getParameterMetaData(). getQueryTimeout() Integer For documentation of this method, see java.sql.Statement#getQueryTimeout(). getResultSet() JdbcResultSet For documentation of this method, see java.sql.Statement#getResultSet(). getResultSetConcurrency() Integer For documentation of this method, see java.sql.Statement#getResultSetConcurrency(). getResultSetHoldability() Integer For documentation of this method, see java.sql.Statement#getResultSetHoldability(). getResultSetType() Integer For documentation of this method, see java.sql.Statement#getResultSetType(). getUpdateCount() Integer For documentation of this method, see java.sql.Statement#getUpdateCount(). getWarnings() String[] For documentation of this method, see java.sql.Statement#getWarnings(). isClosed() Boolean For documentation of this method, see java.sql.Statement#isClosed(). isPoolable() Boolean For documentation of this method, see java.sql.Statement#isPoolable(). setArray(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setArray(int, Array). setBigDecimal(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setBigDecimal(int, BigDecimal). setBlob(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setBlob(int, Clob). setBoolean(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setBoolean(int, boolean). setByte(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setByte(int, byte). setBytes(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setBytes(int, byte[]). setClob(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setClob(int, Clob). setCursorName(name) void For documentation of this method, see java.sql.Statement#setCursorName(String). setDate(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date). setDate(parameterIndex, x, timeZone) void For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date, Calendar). setDouble(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setDouble(int, double). setEscapeProcessing(enable) void For documentation of this method, see java.sql.Statement#setEscapeProcessing(boolean). setFetchDirection(direction) void For documentation of this method, see java.sql.Statement#setFetchDirection(int). setFetchSize(rows) void For documentation of this method, see java.sql.Statement#setFetchSize(int). setFloat(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setFloat(int, float). setInt(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setInt(int, int). setLong(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setLong(int, long). setMaxFieldSize(max) void For documentation of this method, see java.sql.Statement#setMaxFieldSize(int). setMaxRows(max) void For documentation of this method, see java.sql.Statement#setMaxRows(int). setNClob(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setNClob(int, NClob). setNString(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setNString(int, String). setNull(parameterIndex, sqlType) void For documentation of this method, see java.sql.PreparedStatement#setNull(int, int). setNull(parameterIndex, sqlType, typeName) void For documentation of this method, see java.sql.PreparedStatement#setNull(int, int, String). setObject(index, x) void For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object). setObject(parameterIndex, x, targetSqlType) void For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int). setObject(parameterIndex, x, targetSqlType, scaleOrLength) void For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int, int). setPoolable(poolable) void For documentation of this method, see java.sql.Statement#setPoolable(boolean). setQueryTimeout(seconds) void For documentation of this method, see java.sql.Statement#setQueryTimeout(int). setRef(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setRef(int, Ref). setRowId(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setRowId(int, RowId). setSQLXML(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setSQLXML(int, SQLXML). setShort(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setShort(int, short). setString(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setString(int, String). setTime(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time). setTime(parameterIndex, x, timeZone) void For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time, Calendar). setTimestamp(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp). setTimestamp(parameterIndex, x, timeZone) void For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp, Calendar). setURL(parameterIndex, x) void For documentation of this method, see java.sql.PreparedStatement#setURL(int, URL). Detailed documentation addBatch()

For documentation of this method, see java.sql.PreparedStatement#addBatch().

Scripts that use this method require authorization with one or more of the following scopes:

addBatch(sql)

For documentation of this method, see java.sql.Statement#addBatch(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:

cancel()

For documentation of this method, see java.sql.Statement#cancel().

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

clearBatch()

For documentation of this method, see java.sql.Statement#clearBatch().

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

clearWarnings()

For documentation of this method, see java.sql.Statement#clearWarnings().

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

execute()

For documentation of this method, see java.sql.PreparedStatement#execute().

Return

Booleantrue if the first result is a result set; false if the first result is an update count or there is no result.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

execute(sql)

For documentation of this method, see java.sql.Statement#execute(String).

Parameters Name Type Description sql String The SQL statement to execute. Return

Booleantrue 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:

execute(sql, autoGeneratedKeys)

For documentation of this method, see java.sql.Statement#execute(String, int).

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

Booleantrue 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:

execute(sql, columnIndexes)

For documentation of this method, see java.sql.Statement#execute(String, int[]).

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

Booleantrue 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:

execute(sql, columnNames)

For documentation of this method, see java.sql.Statement#execute(String, 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

Booleantrue 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:

executeBatch()

For documentation of this method, see java.sql.Statement#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:

executeQuery()

For documentation of this method, see java.sql.PreparedStatement#executeQuery().

Return

JdbcResultSet — A result set that contains the data produced by the query.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

executeQuery(sql)

For documentation of this method, see java.sql.Statement#executeQuery(String).

Parameters Name Type Description sql String The SQL statement to execute, typically a static SELECT. Return

JdbcResultSet — 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:

executeUpdate()

For documentation of this method, see java.sql.PreparedStatement#executeUpdate().

Return

Integer — The row count ofr SQL Data Manipulation Language statements, or 0 for SQL statements that return nothing.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

executeUpdate(sql)

For documentation of this method, see java.sql.Statement#executeUpdate(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:

executeUpdate(sql, autoGeneratedKeys)

For documentation of this method, see java.sql.Statement#executeUpdate(String, int).

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:

executeUpdate(sql, columnIndexes)

For documentation of this method, see java.sql.Statement#executeUpdate(String, int[]).

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:

executeUpdate(sql, columnNames)

For documentation of this method, see java.sql.Statement#executeUpdate(String, 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:

getConnection()

For documentation of this method, see java.sql.Statement#getConnection().

Return

JdbcConnection — The connection that produced this statement.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

getFetchDirection()

For documentation of this method, see java.sql.Statement#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:

getFetchSize()

For documentation of this method, see java.sql.Statement#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:

getGeneratedKeys()

For documentation of this method, see java.sql.Statement#getGeneratedKeys().

Return

JdbcResultSet — 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:

getMaxFieldSize()

For documentation of this method, see java.sql.Statement#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:

getMaxRows()

For documentation of this method, see java.sql.Statement#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:

getMoreResults()

For documentation of this method, see java.sql.Statement#getMoreResults().

Return

Booleantrue 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:

getMoreResults(current)

For documentation of this method, see java.sql.Statement#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

Booleantrue 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:

getQueryTimeout()

For documentation of this method, see java.sql.Statement#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:

getResultSet()

For documentation of this method, see java.sql.Statement#getResultSet().

Return

JdbcResultSet — 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:

getResultSetConcurrency()

For documentation of this method, see java.sql.Statement#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:

getResultSetHoldability()

For documentation of this method, see java.sql.Statement#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:

getResultSetType()

For documentation of this method, see java.sql.Statement#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:

getUpdateCount()

For documentation of this method, see java.sql.Statement#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:

getWarnings()

For documentation of this method, see java.sql.Statement#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:

isClosed()

For documentation of this method, see java.sql.Statement#isClosed().

Return

Booleantrue if this statement is closed; false otherwise.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

isPoolable()

For documentation of this method, see java.sql.Statement#isPoolable().

Return

Booleantrue if this statement is poolable; false otherwise.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setArray(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setArray(int, Array).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setBigDecimal(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setBigDecimal(int, BigDecimal).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setBlob(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setBlob(int, Clob).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setBoolean(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setBoolean(int, boolean).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setByte(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setByte(int, byte).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setBytes(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setBytes(int, byte[]).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setClob(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setClob(int, Clob).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setCursorName(name)

For documentation of this method, see java.sql.Statement#setCursorName(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:

setDate(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setDate(parameterIndex, x, timeZone)

For documentation of this method, see java.sql.PreparedStatement#setDate(int, Date, Calendar).

Parameters Name Type Description 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). Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setDouble(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setDouble(int, double).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setEscapeProcessing(enable)

For documentation of this method, see java.sql.Statement#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:

setFetchDirection(direction)

For documentation of this method, see java.sql.Statement#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:

setFetchSize(rows)

For documentation of this method, see java.sql.Statement#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:

setFloat(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setFloat(int, float).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setInt(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setInt(int, int).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setLong(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setLong(int, long).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setMaxFieldSize(max)

For documentation of this method, see java.sql.Statement#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:

setMaxRows(max)

For documentation of this method, see java.sql.Statement#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:

setNClob(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setNClob(int, NClob).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setNString(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setNString(int, String).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setNull(parameterIndex, sqlType)

For documentation of this method, see java.sql.PreparedStatement#setNull(int, int).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setNull(parameterIndex, sqlType, typeName)

For documentation of this method, see java.sql.PreparedStatement#setNull(int, int, String).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setObject(index, x)

For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setObject(parameterIndex, x, targetSqlType)

For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setObject(parameterIndex, x, targetSqlType, scaleOrLength)

For documentation of this method, see java.sql.PreparedStatement#setObject(int, Object, int, int).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setPoolable(poolable)

For documentation of this method, see java.sql.Statement#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:

setQueryTimeout(seconds)

For documentation of this method, see java.sql.Statement#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:

setRef(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setRef(int, Ref).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setRowId(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setRowId(int, RowId).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSQLXML(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setSQLXML(int, SQLXML).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setShort(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setShort(int, short).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setString(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setString(int, String).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setTime(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setTime(parameterIndex, x, timeZone)

For documentation of this method, see java.sql.PreparedStatement#setTime(int, Time, Calendar).

Parameters Name Type Description 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). Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setTimestamp(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setTimestamp(parameterIndex, x, timeZone)

For documentation of this method, see java.sql.PreparedStatement#setTimestamp(int, Timestamp, Calendar).

Parameters Name Type Description 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). Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setURL(parameterIndex, x)

For documentation of this method, see java.sql.PreparedStatement#setURL(int, URL).

Parameters Name Type Description 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. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-05 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[[["`JdbcPreparedStatement` handles precompiled SQL statements for efficient database interactions within Google Apps Script."],["It offers methods for executing queries, managing batches, setting parameters, and retrieving results."],["Most methods require authorization with the `https://www.googleapis.com/auth/script.external_request` scope for external database access."],["Detailed behavior and parameters for each method are linked to the corresponding Java documentation."],["`execute()`, `executeQuery()`, and `executeUpdate()` are key methods for running prepared statements and retrieving results or update counts."]]],["`JdbcPreparedStatement` manages database interactions. Key actions include: batch operations (`addBatch`, `executeBatch`), executing SQL statements (`execute`, `executeQuery`, `executeUpdate`), and setting parameter values via `setXXX` methods for various data types. It also handles metadata (`getMetaData`, `getParameterMetaData`), result sets (`getResultSet`, `getGeneratedKeys`), and statement control (`close`, `cancel`, `setQueryTimeout`). The class provide methods for fetch (`getFetchDirection`,`setFetchDirection`, `getFetchSize`, `setFetchSize`), result set properties (`getResultSetConcurrency`, `getResultSetHoldability`, `getResultSetType`), and others properties (`getMaxFieldSize`, `getMaxRows`, `getWarnings`, `isClosed`).\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4