Deprecated
as a consequence of DefaultCallableStatement being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final DiagnosticsConnection | connection
Deprecated
as a consequence of
DiagnosticsConnection being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | DiagnosticsStatement(DiagnosticsConnection connection, Statement statement)
Deprecated
as a consequence of
DiagnosticsConnection being deprecated.
|
| pack-priv | DiagnosticsStatement(DiagnosticsConnection connection, Statement statement, String actualStatement)
Deprecated
as a consequence of
DiagnosticsConnection being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | addBatch(String
typically this is a SQL sql)INSERT or
UPDATE statementOverrides org. Implements java. Statement object.
|
| public final boolean | execute(String
any SQL statement sql)Overrides org. Implements java. |
| public final boolean | execute(String
any SQL statement sql, int a constant indicating whether auto-generated
keys should be made available for retrieval using the method
autoGeneratedKeys)getGeneratedKeys; one of the following constants:
Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSOverrides org. Implements java. |
| public final boolean | execute(String
any SQL statement sql, int[] an array of the indexes of the columns in the
inserted row that should be made available for retrieval by a
call to the method columnIndexes)getGeneratedKeysOverrides org. Implements java. |
| public final boolean | execute(String
any SQL statement sql, String[] an array of the names of the columns in the inserted
row that should be made available for retrieval by a call to the
method columnNames)getGeneratedKeysOverrides org. Implements java. |
| public final long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql)INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.Overrides org. Overrides default java. INSERT,
UPDATE, or DELETE statement or an
SQL statement that returns nothing, such as an SQL DDL statement.
|
| public final long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, int INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.a flag indicating whether auto-generated keys
should be made available for retrieval;
one of the following constants:
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS
Statement.NO_GENERATED_KEYSOverrides org. Overrides default java. Statement object
should be made available for retrieval.
|
| public final long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, int[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of column indexes indicating the columns
that should be returned from the inserted row columnIndexes)Overrides org. Overrides default java. |
| public final long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, String[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of the names of the columns that should be
returned from the inserted row columnNames)Overrides org. Overrides default java. |
| public final ResultSet | executeQuery(String
an SQL statement to be sent to the database, typically a
static SQL sql)SELECT statementOverrides org. Implements java. ResultSet object.
|
| public ResultSet | executeQuery()
Overrides org. Implements java. PreparedStatement object
and returns the ResultSet object generated by the query.
|
| public final int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql)INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.Overrides org. Implements java. INSERT,
UPDATE, or DELETE statement or an
SQL statement that returns nothing, such as an SQL DDL statement.
|
| public final int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, int INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.a flag indicating whether auto-generated keys
should be made available for retrieval;
one of the following constants:
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS
Statement.NO_GENERATED_KEYSOverrides org. Implements java. Statement object
should be made available for retrieval.
|
| public final int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, int[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of column indexes indicating the columns
that should be returned from the inserted row columnIndexes)Overrides org. Implements java. |
| public final int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, String[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of the names of the columns that should be
returned from the inserted row columnNames)Overrides org. Implements java. |
| public final Connection | getConnection()
Overrides org. Implements java. Connection object
that produced this Statement object.
|
| actualStatement | back to summary |
|---|---|
| pack-priv final String actualStatement | |
| connection | back to summary |
|---|---|
| pack-priv final DiagnosticsConnection connection
Deprecated as a consequence of | |
| DiagnosticsStatement | back to summary |
|---|---|
| pack-priv DiagnosticsStatement(DiagnosticsConnection connection, Statement statement)
Deprecated as a consequence of | |
| DiagnosticsStatement | back to summary |
|---|---|
| pack-priv DiagnosticsStatement(DiagnosticsConnection connection, Statement statement, String actualStatement)
Deprecated as a consequence of | |
| addBatch | back to summary |
|---|---|
| public final void addBatch(String sql) throws SQLException Overrides org. Implements java. Doc from java. Adds the given SQL command to the current list of commands for this
Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public final boolean execute(String sql) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which may return multiple results. In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public final boolean execute(String sql, int autoGeneratedKeys) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which may return multiple results,
and signals the driver that any
auto-generated keys should be made available
for retrieval. The driver will ignore this signal if the SQL statement
is not an In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public final boolean execute(String sql, int[] columnIndexes) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which may return multiple results,
and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the indexes of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Under some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public final boolean execute(String sql, String[] columnNames) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which may return multiple results,
and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the names of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| executeLargeUpdate | back to summary |
|---|---|
| public final long executeLargeUpdate(String sql) throws SQLException Overrides org. Overrides default java. Doc from java. Executes the given SQL statement, which may be an
This method should be used when the returned row count may exceed
Note This method cannot be called on a
The default implementation will throw
| |
| executeLargeUpdate | back to summary |
|---|---|
| public final long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException Overrides org. Overrides default java. Doc from java. Executes the given SQL statement and signals the driver with the
given flag about whether the
auto-generated keys produced by this
This method should be used when the returned row count may exceed
Note This method cannot be called on a
The default implementation will throw
| |
| executeLargeUpdate | back to summary |
|---|---|
| public final long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException Overrides org. Overrides default java. Doc from java. Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the indexes of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an
This method should be used when the returned row count may exceed
Note This method cannot be called on a
The default implementation will throw
| |
| executeLargeUpdate | back to summary |
|---|---|
| public final long executeLargeUpdate(String sql, String[] columnNames) throws SQLException Overrides org. Overrides default java. Doc from java. Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the names of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an
This method should be used when the returned row count may exceed
Note This method cannot be called on a
The default implementation will throw
| |
| executeQuery | back to summary |
|---|---|
| public final ResultSet executeQuery(String sql) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which returns a single
Note This method cannot be called on a
| |
| executeQuery | back to summary |
|---|---|
| public ResultSet executeQuery() throws SQLException Overrides org. Implements java. Doc from java. Executes the SQL query in this
| |
| executeUpdate | back to summary |
|---|---|
| public final int executeUpdate(String sql) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement, which may be an Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement and signals the driver with the
given flag about whether the
auto-generated keys produced by this Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public final int executeUpdate(String sql, int[] columnIndexes) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the indexes of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public final int executeUpdate(String sql, String[] columnNames) throws SQLException Overrides org. Implements java. Doc from java. Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made available
for retrieval. This array contains the names of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Note This method cannot be called on a
| |
| getConnection | back to summary |
|---|---|
| public final Connection getConnection() throws SQLException Overrides org. Implements java. Doc from java. Retrieves the
| |