UNPKG

gas-types-detailed

Version:

Detailed Google Apps Script Type Definitions. Forked from Definitely Typed @types/google-apps-script. Adds full documentation and urls.

1,041 lines (914 loc) 312 kB
// Type definitions for Google Apps Script 2023-10-28 // Project: https://developers.google.com/apps-script/ // Definitions by: motemen <https://github.com/motemen/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="google-apps-script.types.d.ts" /> /// <reference path="google-apps-script.base.d.ts" /> declare namespace GoogleAppsScript { namespace JDBC { /** * The JDBC service allows scripts to connect to Google Cloud SQL, MySQL, * Microsoft SQL Server, and Oracle databases. For more information, see the guide to JDBC. */ interface Jdbc { /** * Attempts to establish a connection to the given Google Cloud SQL URL. * https://developers.google.com/apps-script/reference/jdbc/jdbc#getCloudSqlConnection(String) * @param url A database URL of the form jdbc:google:mysql://subname. */ getCloudSqlConnection(url: string): JdbcConnection; /** * Attempts to establish a connection to the given Google Cloud SQL URL. * https://developers.google.com/apps-script/reference/jdbc/jdbc#getCloudSqlConnection(String,Object) * @param url A database URL of the form jdbc:google:mysql://subname. * @param info Optional JavaScript object specifying advanced parameters as defined below. */ getCloudSqlConnection(url: string, info: any): JdbcConnection; /** * Attempts to establish a connection to the given Google Cloud SQL URL. * https://developers.google.com/apps-script/reference/jdbc/jdbc#getCloudSqlConnection(String,String,String) * @param url A database URL of the form jdbc:google:mysql://subname. * @param userName The username to pass to the database. * @param password The user's password. */ getCloudSqlConnection(url: string, userName: string, password: string): JdbcConnection; /** * Attempts to establish a connection to the given database URL. * * * var conn = Jdbc.getConnection('jdbc:mysql://yoursqlserver.example.com:3306/database_name'); * https://developers.google.com/apps-script/reference/jdbc/jdbc#getConnection(String) * @param url A database URL of the form jdbc:subprotocol:subname. */ getConnection(url: string): JdbcConnection; /** * Attempts to establish a connection to the given database URL. * * * var conn = Jdbc.getConnection('jdbc:mysql://yoursqlserver.example.com:3306/database_name', * {user: 'username', password: 'password'}); * https://developers.google.com/apps-script/reference/jdbc/jdbc#getConnection(String,Object) * @param url A database URL of the form jdbc:subprotocol:subname. * @param info Optional JavaScript object specifying advanced parameters as defined below. */ getConnection(url: string, info: any): JdbcConnection; /** * Attempts to establish a connection to the given database using a username and password. * * * var conn = Jdbc.getConnection('jdbc:mysql://yoursqlserver.example.com:3306/database_name', * 'username', 'password'); * https://developers.google.com/apps-script/reference/jdbc/jdbc#getConnection(String,String,String) * @param url A database URL of the form jdbc:subprotocol:subname. * @param userName The username to pass to the database. * @param password The user's password. */ getConnection(url: string, userName: string, password: string): JdbcConnection; /** * Create a date from milliseconds since epoch. * https://developers.google.com/apps-script/reference/jdbc/jdbc#newDate(Integer) * @param milliseconds Milliseconds since epoch. */ newDate(milliseconds: Integer): JdbcDate; /** * Create a time from milliseconds since epoch. * https://developers.google.com/apps-script/reference/jdbc/jdbc#newTime(Integer) * @param milliseconds Milliseconds since epoch. */ newTime(milliseconds: Integer): JdbcTime; /** * Create a timestamp from milliseconds since epoch. * https://developers.google.com/apps-script/reference/jdbc/jdbc#newTimestamp(Integer) * @param milliseconds Milliseconds since epoch. */ newTimestamp(milliseconds: Integer): JdbcTimestamp; /** * Create a date by parsing the SQL date string. * https://developers.google.com/apps-script/reference/jdbc/jdbc#parseDate(String) * @param date A string containing a SQL date string. */ parseDate(date: string): JdbcDate; /** * Create a time by parsing the SQL time string. * https://developers.google.com/apps-script/reference/jdbc/jdbc#parseTime(String) * @param time A string containing a SQL time string. */ parseTime(time: string): JdbcTime; /** * Create a timestamp by parsing the SQL timestamp string. * https://developers.google.com/apps-script/reference/jdbc/jdbc#parseTimestamp(String) * @param timestamp A string containing a SQL timestamp string. */ parseTimestamp(timestamp: string): JdbcTimestamp; } /** * A JDBC Array. For documentation of this class, see java.sql.Array * . */ interface JdbcArray { /** * For documentation of this method, see * java.sql.Array#free(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#free() */ free(): void; /** * For documentation of this method, see * java.sql.Array#getArray() * * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getArray() */ getArray(): any; /** * For documentation of this method, see * java.sql.Array#getArray(long, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getArray(Integer,Integer) * @param index The array index of the first element to retrieve, where the first element has an index of 1. * @param count The number of successive SQL array elements to retrieve. */ getArray(index: Integer, count: Integer): any; /** * For documentation of this method, see * java.sql.Array#getBaseType(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getBaseType() */ getBaseType(): Integer; /** * For documentation of this method, see * java.sql.Array#getBaseTypeName(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getBaseTypeName() */ getBaseTypeName(): string; /** * For documentation of this method, see * java.sql.Array#getResultSet(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getResultSet() */ getResultSet(): JdbcResultSet; /** * For documentation of this method, see * java.sql.Array#getResultSet(long, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-array#getResultSet(Integer,Integer) * @param index The array index of the first element to retrieve, where the first element has an index of 1. * @param count The number of successive SQL array elements to retrieve. */ getResultSet(index: Integer, count: Integer): JdbcResultSet; } /** * A JDBC Blob. For documentation of this class, see java.sql.Blob * . */ interface JdbcBlob { /** * For documentation of this method, see * java.sql.Blob#free(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#free() */ free(): void; /** * Gets the content of this JdbcBlob as an Apps Script blob. * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#getAppsScriptBlob() */ getAppsScriptBlob(): Base.Blob; /** * Return the data inside this object as a blob converted to the specified content type. This * method adds the appropriate extension to the filename—for example, "myfile.pdf". However, it * assumes that the part of the filename that follows the last period (if any) is an existing * extension that should be replaced. Consequently, "ShoppingList.12.25.2014" becomes * "ShoppingList.12.25.pdf". * * * To view the daily quotas for conversions, see Quotas for Google * Services. Newly created Google Workspace domains might be temporarily subject to stricter * quotas. * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#getAs(String) * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. */ getAs(contentType: string): Base.Blob; /** * For documentation of this method, see * java.sql.Blob#getBytes(long, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#getBytes(Integer,Integer) * @param position The ordinal position of the first byte in the blob value to be extracted; the first byte is at position 1. * @param length The number of consecutive bytes to copy; the value for length must be zero or greater. */ getBytes(position: Integer, length: Integer): Byte[]; /** * For documentation of this method, see * java.sql.Blob#length(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#length() */ length(): Integer; /** * For documentation of this method, see * java.sql.Blob#position(byte[], long). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#position(Byte,Integer) * @param pattern The byte array to search for. * @param start The position in the blob value where to beging searching; the first position is 1. */ position(pattern: Byte[], start: Integer): Integer; /** * For documentation of this method, see * java.sql.Blob#position(blob, long). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#position(JdbcBlob,Integer) * @param pattern The JdbcBlob indicating the value to search for. * @param start The position in the blob value where to beging searching; the first position is 1. */ position(pattern: JdbcBlob, start: Integer): Integer; /** * Convenience method for writing a JdbcBlob to this blob. * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#setBytes(Integer,BlobSource) * @param position The position in the blob at which to start writing; the first position is 1. * @param blobSource The source of data to write to this blob. */ setBytes(position: Integer, blobSource: Base.BlobSource): Integer; /** * Convenience method for writing a JdbcBlob to this blob. * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#setBytes(Integer,BlobSource,Integer,Integer) * @param position The position in the blob at which to start writing; the first position is 1. * @param blobSource The source of data to write to this blob. * @param offset The offset into the provided byte array at which to start reading bytes to set. * @param length The number of bytes to write to the blob. */ setBytes(position: Integer, blobSource: Base.BlobSource, offset: Integer, length: Integer): Integer; /** * For documentation of this method, see * java.sql.Blob#setBytes(long, byte[]). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#setBytes(Integer,Byte) * @param position The position in the blob at which to start writing; the first position is 1. * @param bytes The array of bytes to write to this blob. */ setBytes(position: Integer, bytes: Byte[]): Integer; /** * For documentation of this method, see * java.sql.Blob#setBytes(long, byte[], int, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#setBytes(Integer,Byte,Integer,Integer) * @param position The position in the blob at which to start writing; the first position is 1. * @param bytes The array of bytes to write to this blob. * @param offset The offset into the provided byte array at which to start reading bytes to set. * @param length The number of bytes to write to the blob. */ setBytes(position: Integer, bytes: Byte[], offset: Integer, length: Integer): Integer; /** * For documentation of this method, see * java.sql.Blob#truncate(long). * https://developers.google.com/apps-script/reference/jdbc/jdbc-blob#truncate(Integer) * @param length The size (in bytes) of this blob after truncation. */ truncate(length: Integer): void; } /** * A JDBC CallableStatement. For documentation of this class, see * java.sql.CallableStatement. */ interface JdbcCallableStatement { /** * For documentation of this method, see * java.sql.PreparedStatement#addBatch(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#addBatch() */ addBatch(): void; /** * For documentation of this method, see * java.sql.Statement#addBatch(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#addBatch(String) * @param sql The SQL command to add to this statement, typically an SQL INSERT or UPDATE. */ addBatch(sql: string): void; /** * For documentation of this method, see * java.sql.Statement#cancel(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#cancel() */ cancel(): void; /** * For documentation of this method, see * java.sql.Statement#clearBatch(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#clearBatch() */ clearBatch(): void; /** * For documentation of this method, see * java.sql.PreparedStatement#clearParameters(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#clearParameters() */ clearParameters(): void; /** * For documentation of this method, see * java.sql.Statement#clearWarnings(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#clearWarnings() */ clearWarnings(): void; /** * For documentation of this method, see * java.sql.Statement#close(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#close() */ close(): void; /** * For documentation of this method, see * java.sql.PreparedStatement#execute(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#execute() */ execute(): boolean; /** * For documentation of this method, see * java.sql.Statement#execute(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#execute(String) * @param sql The SQL statement to execute. */ execute(sql: string): boolean; /** * For documentation of this method, see * java.sql.Statement#execute(String, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#execute(String,Integer) * @param sql The SQL statement to execute. * @param autoGeneratedKeys 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. * @param sql The SQL statement to execute. * @param columnIndexes The column indices in the whose auto-generated keys are made available for future retrieval. */ execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; /** * For documentation of this method, see * java.sql.Statement#execute(String, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#execute(String,Integer) * @param sql The SQL statement to execute. * @param autoGeneratedKeys 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. * @param sql The SQL statement to execute. * @param columnIndexes The column indices in the whose auto-generated keys are made available for future retrieval. */ execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; /** * For documentation of this method, see * java.sql.Statement#execute(String, String[]). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#execute(String,String) * @param sql The SQL statement to execute. * @param columnNames The names of columns in the whose auto-generated keys are made available for future retrieval. */ execute(sql: string, columnNames: string[]): boolean; /** * For documentation of this method, see * java.sql.Statement#executeBatch(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeBatch() */ executeBatch(): Integer[]; /** * For documentation of this method, see * java.sql.PreparedStatement#executeQuery(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeQuery() */ executeQuery(): JdbcResultSet; /** * For documentation of this method, see * java.sql.Statement#executeQuery(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeQuery(String) * @param sql The SQL statement to execute, typically a static SELECT. */ executeQuery(sql: string): JdbcResultSet; /** * For documentation of this method, see * java.sql.PreparedStatement#executeUpdate(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeUpdate() */ executeUpdate(): Integer; /** * For documentation of this method, see * java.sql.Statement#executeUpdate(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeUpdate(String) * @param sql 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). */ executeUpdate(sql: string): Integer; /** * For documentation of this method, see * java.sql.Statement#executeUpdate(String, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeUpdate(String,Integer) * @param sql 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). * @param autoGeneratedKeys 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. * @param sql 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). * @param columnIndexes The column indices in the whose auto-generated keys are made available for future retrieval. */ executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; /** * For documentation of this method, see * java.sql.Statement#executeUpdate(String, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeUpdate(String,Integer) * @param sql 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). * @param autoGeneratedKeys 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. * @param sql 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). * @param columnIndexes The column indices in the whose auto-generated keys are made available for future retrieval. */ executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; /** * For documentation of this method, see * java.sql.Statement#executeUpdate(String, String[]). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#executeUpdate(String,String) * @param sql 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). * @param columnNames The names of columns in the whose auto-generated keys are made available for future retrieval. */ executeUpdate(sql: string, columnNames: string[]): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getArray(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getArray(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getArray(parameterIndex: Integer): JdbcArray; /** * For documentation of this method, see * java.sql.CallableStatement#getArray(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getArray(String) * @param parameterName The name of the parameter. */ getArray(parameterName: string): JdbcArray; /** * For documentation of this method, see * java.sql.CallableStatement#getBigDecimal(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBigDecimal(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getBigDecimal(parameterIndex: Integer): BigNumber; /** * For documentation of this method, see * java.sql.CallableStatement#getBigDecimal(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBigDecimal(String) * @param parameterName The name of the parameter. */ getBigDecimal(parameterName: string): BigNumber; /** * For documentation of this method, see * java.sql.CallableStatement#getBlob(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBlob(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getBlob(parameterIndex: Integer): JdbcBlob; /** * For documentation of this method, see * java.sql.CallableStatement#getBlob(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBlob(String) * @param parameterName The name of the parameter. */ getBlob(parameterName: string): JdbcBlob; /** * For documentation of this method, see * java.sql.CallableStatement#getBoolean(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBoolean(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getBoolean(parameterIndex: Integer): boolean; /** * For documentation of this method, see * java.sql.CallableStatement#getBoolean(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBoolean(String) * @param parameterName The name of the parameter. */ getBoolean(parameterName: string): boolean; /** * For documentation of this method, see * java.sql.CallableStatement#getByte(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getByte(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getByte(parameterIndex: Integer): Byte; /** * For documentation of this method, see * java.sql.CallableStatement#getByte(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getByte(String) * @param parameterName The name of the parameter. */ getByte(parameterName: string): Byte; /** * For documentation of this method, see * java.sql.CallableStatement#getBytes(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBytes(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getBytes(parameterIndex: Integer): Byte[]; /** * For documentation of this method, see * java.sql.CallableStatement#getBytes(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getBytes(String) * @param parameterName The name of the parameter. */ getBytes(parameterName: string): Byte[]; /** * For documentation of this method, see * java.sql.CallableStatement#getClob(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getClob(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getClob(parameterIndex: Integer): JdbcClob; /** * For documentation of this method, see * java.sql.CallableStatement#getClob(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getClob(String) * @param parameterName The name of the parameter. */ getClob(parameterName: string): JdbcClob; /** * For documentation of this method, see * java.sql.Statement#getConnection(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getConnection() */ getConnection(): JdbcConnection; /** * For documentation of this method, see * java.sql.CallableStatement#getDate(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDate(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getDate(parameterIndex: Integer): JdbcDate; /** * For documentation of this method, see * java.sql.CallableStatement#getDate(int, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDate(Integer,String) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). * @param timeZone 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). */ getDate(parameterIndex: Integer, timeZone: string): JdbcDate; /** * For documentation of this method, see * java.sql.CallableStatement#getDate(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDate(String) * @param parameterName The name of the parameter. */ getDate(parameterName: string): JdbcDate; /** * For documentation of this method, see * java.sql.CallableStatement#getDate(String, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDate(String,String) * @param parameterName The name of the parameter. * @param timeZone 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). */ getDate(parameterName: string, timeZone: string): JdbcDate; /** * For documentation of this method, see * java.sql.CallableStatement#getDouble(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDouble(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getDouble(parameterIndex: Integer): number; /** * For documentation of this method, see * java.sql.CallableStatement#getDouble(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getDouble(String) * @param parameterName The name of the parameter. */ getDouble(parameterName: string): number; /** * For documentation of this method, see * java.sql.Statement#getFetchDirection(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getFetchDirection() */ getFetchDirection(): Integer; /** * For documentation of this method, see * java.sql.Statement#getFetchSize(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getFetchSize() */ getFetchSize(): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getFloat(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getFloat(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getFloat(parameterIndex: Integer): number; /** * For documentation of this method, see * java.sql.CallableStatement#getFloat(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getFloat(String) * @param parameterName The name of the parameter. */ getFloat(parameterName: string): number; /** * For documentation of this method, see * java.sql.Statement#getGeneratedKeys(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getGeneratedKeys() */ getGeneratedKeys(): JdbcResultSet; /** * For documentation of this method, see * java.sql.CallableStatement#getInt(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getInt(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getInt(parameterIndex: Integer): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getInt(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getInt(String) * @param parameterName The name of the parameter. */ getInt(parameterName: string): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getLong(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getLong(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getLong(parameterIndex: Integer): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getLong(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getLong(String) * @param parameterName The name of the parameter. */ getLong(parameterName: string): Integer; /** * For documentation of this method, see * java.sql.Statement#getMaxFieldSize(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getMaxFieldSize() */ getMaxFieldSize(): Integer; /** * For documentation of this method, see * java.sql.Statement#getMaxRows(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getMaxRows() */ getMaxRows(): Integer; /** * For documentation of this method, see * java.sql.PreparedStatement#getMetaData(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getMetaData() */ getMetaData(): JdbcResultSetMetaData; /** * For documentation of this method, see * java.sql.Statement#getMoreResults(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getMoreResults() */ getMoreResults(): boolean; /** * For documentation of this method, see * java.sql.Statement#getMoreResults(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getMoreResults(Integer) * @param current 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. */ getMoreResults(current: Integer): boolean; /** * For documentation of this method, see * java.sql.CallableStatement#getNClob(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getNClob(Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). */ getNClob(parameterIndex: Integer): JdbcClob; /** * For documentation of this method, see * java.sql.CallableStatement#getNClob(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getNClob(String) * @param parameterName The name of the parameter. */ getNClob(parameterName: string): JdbcClob; /** * For documentation of this method, see * java.sql.CallableStatement#getNString(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getNString(Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). */ getNString(parameterIndex: Integer): string; /** * For documentation of this method, see * java.sql.CallableStatement#getNString(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getNString(String) * @param parameterName The name of the parameter. */ getNString(parameterName: string): string; /** * For documentation of this method, see * java.sql.CallableStatement#getObject(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getObject(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getObject(parameterIndex: Integer): any; /** * For documentation of this method, see * java.sql.CallableStatement#getObject(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getObject(String) * @param parameterName The name of the parameter. */ getObject(parameterName: string): any; /** * For documentation of this method, see * java.sql.PreparedStatement#getParameterMetaData(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getParameterMetaData() */ getParameterMetaData(): JdbcParameterMetaData; /** * For documentation of this method, see * java.sql.Statement#getQueryTimeout(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getQueryTimeout() */ getQueryTimeout(): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getRef(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getRef(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getRef(parameterIndex: Integer): JdbcRef; /** * For documentation of this method, see * java.sql.CallableStatement#getRef(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getRef(String) * @param parameterName The name of the parameter. */ getRef(parameterName: string): JdbcRef; /** * For documentation of this method, see * java.sql.Statement#getResultSet(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getResultSet() */ getResultSet(): JdbcResultSet; /** * For documentation of this method, see * java.sql.Statement#getResultSetConcurrency(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getResultSetConcurrency() */ getResultSetConcurrency(): Integer; /** * For documentation of this method, see * java.sql.Statement#getResultSetHoldability(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getResultSetHoldability() */ getResultSetHoldability(): Integer; /** * For documentation of this method, see * java.sql.Statement#getResultSetType(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getResultSetType() */ getResultSetType(): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getRowId(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getRowId(Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). */ getRowId(parameterIndex: Integer): JdbcRowId; /** * For documentation of this method, see * java.sql.CallableStatement#getRowId(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getRowId(String) * @param parameterName The name of the parameter. */ getRowId(parameterName: string): JdbcRowId; /** * For documentation of this method, see * java.sql.CallableStatement#getSQLXML(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getSQLXML(Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). */ getSQLXML(parameterIndex: Integer): JdbcSQLXML; /** * For documentation of this method, see * java.sql.CallableStatement#getSQLXML(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getSQLXML(String) * @param parameterName The name of the parameter. */ getSQLXML(parameterName: string): JdbcSQLXML; /** * For documentation of this method, see * java.sql.CallableStatement#getShort(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getShort(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getShort(parameterIndex: Integer): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getShort(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getShort(String) * @param parameterName The name of the parameter. */ getShort(parameterName: string): Integer; /** * For documentation of this method, see * java.sql.CallableStatement#getString(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getString(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getString(parameterIndex: Integer): string; /** * For documentation of this method, see * java.sql.CallableStatement#getString(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getString(String) * @param parameterName The name of the parameter. */ getString(parameterName: string): string; /** * For documentation of this method, see * java.sql.CallableStatement#getTime(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTime(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getTime(parameterIndex: Integer): JdbcTime; /** * For documentation of this method, see * java.sql.CallableStatement#getTime(int, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTime(Integer,String) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). * @param timeZone 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). */ getTime(parameterIndex: Integer, timeZone: string): JdbcTime; /** * For documentation of this method, see * java.sql.CallableStatement#getTime(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTime(String) * @param parameterName The name of the parameter. */ getTime(parameterName: string): JdbcTime; /** * For documentation of this method, see * java.sql.CallableStatement#getTime(String, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTime(String,String) * @param parameterName The name of the parameter. * @param timeZone 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). */ getTime(parameterName: string, timeZone: string): JdbcTime; /** * For documentation of this method, see * java.sql.CallableStatement#getTimestamp(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTimestamp(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getTimestamp(parameterIndex: Integer): JdbcTimestamp; /** * For documentation of this method, see * java.sql.CallableStatement#getTimestamp(int, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTimestamp(Integer,String) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). * @param timeZone 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). */ getTimestamp(parameterIndex: Integer, timeZone: string): JdbcTimestamp; /** * For documentation of this method, see * java.sql.CallableStatement#getTimestamp(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTimestamp(String) * @param parameterName The name of the parameter. */ getTimestamp(parameterName: string): JdbcTimestamp; /** * For documentation of this method, see * java.sql.CallableStatement#getTimestamp(String, Calendar). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getTimestamp(String,String) * @param parameterName The name of the parameter. * @param timeZone 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). */ getTimestamp(parameterName: string, timeZone: string): JdbcTimestamp; /** * For documentation of this method, see * java.sql.CallableStatement#getURL(int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getURL(Integer) * @param parameterIndex The index of the parameter to retrieve (the first parameter is 1, the second is 2, and so on). */ getURL(parameterIndex: Integer): string; /** * For documentation of this method, see * java.sql.CallableStatement#getURL(String). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getURL(String) * @param parameterName The name of the parameter. */ getURL(parameterName: string): string; /** * For documentation of this method, see * java.sql.Statement#getUpdateCount(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getUpdateCount() */ getUpdateCount(): Integer; /** * For documentation of this method, see * java.sql.Statement#getWarnings(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#getWarnings() */ getWarnings(): string[]; /** * For documentation of this method, see * java.sql.Statement#isClosed(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#isClosed() */ isClosed(): boolean; /** * For documentation of this method, see * java.sql.Statement#isPoolable(). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#isPoolable() */ isPoolable(): boolean; /** * For documentation of this method, see * java.sql.CallableStatement#registerOutParameter(int, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#registerOutParameter(Integer,Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). * @param sqlType The JDBC type code to register. If the parameter is of JDBC type NUMERIC or DECIMAL, use registerOutParameter(parameterIndex, sqlType, scale) instead. */ registerOutParameter(parameterIndex: Integer, sqlType: Integer): void; /** * For documentation of this method, see * java.sql.CallableStatement#registerOutParameter(int, int, int). * https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement#registerOutParameter(Integer,Integer,Integer) * @param parameterIndex An index indicating which paramater to register (the first parameter is 1, the second is 2, and so on). * @param sqlType The JDBC type code to register. * @param scale The desired number of digits to the right of the decimal point (must be zero or greater). */ registerOutParameter(parameterIndex: Integer, sqlType: Integer, scale: Integer): void; /** * For documentation of this method, see * java.sql.CallableStatement#registerOutParameter(int, int, String). * https://deve