Deprecated
as a consequence of DefaultPreparedStatement being deprecated. See corresponding docs for further information.
This statement doesn't execute immediately, but buffers all bind variables in
batch, delaying execution until a new SQL string is encountered. See
BatchedConnection for details.
BatchedConnection
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| private static final JooqLogger | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public | BatchedPreparedStatement(String sql, BatchedConnection connection, PreparedStatement delegate)
Deprecated
as a consequence of
BatchedConnection being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addBatch()
Overrides org. Implements java. PreparedStatement
object's batch of commands.
|
| public void | addBatch(String
typically this is a SQL s)INSERT or
UPDATE statementOverrides org. Implements java. Statement object.
|
| public void | clearBatch()
Overrides org. Implements java. Statement object's current list of
SQL commands.
|
| public void | close()
Overrides org. Implements java. Statement object's database
and JDBC resources immediately instead of waiting for
this to happen when it is automatically closed.
|
| public boolean | execute()
Overrides org. Implements java. PreparedStatement object,
which may be any kind of SQL statement.
|
| public boolean | execute(String
any SQL statement s)Overrides org. Implements java. |
| public boolean | execute(String
any SQL statement s, 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 boolean | execute(String
any SQL statement s, 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 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 int[] | executeBatch()
Overrides org. Implements java. |
| public long[] | executeLargeBatch()
Overrides org. Overrides default java. |
| public long | executeLargeUpdate()
Overrides org. Overrides default java. PreparedStatement object,
which must be an SQL Data Manipulation Language (DML) statement,
such as INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.
|
| public long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as s)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 long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as s, 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 long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as s, 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 long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as s, 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 ResultSet | executeQuery(String
an SQL statement to be sent to the database, typically a
static SQL s)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 int | executeUpdate()
Overrides org. Implements java. PreparedStatement object,
which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.
|
| public int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as s)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 int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as s, 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 int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as s, 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 int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as s, 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 BatchedConnection | |
| public boolean | |
| public ResultSet | getGeneratedKeys()
Overrides org. Implements java. Statement object.
|
| public long | getLargeUpdateCount()
Overrides org. Overrides default java. ResultSet object or there are no more results, -1
is returned.
|
| public boolean | getMoreResults()
Overrides org. Implements java. Statement object's next result, returns
true if it is a ResultSet object, and
implicitly closes any current ResultSet
object(s) obtained with the method getResultSet.
|
| public boolean | getMoreResults(int
one of the following current)Statement
constants indicating what should happen to current
ResultSet objects obtained using the method
getResultSet:
Statement.CLOSE_CURRENT_RESULT,
Statement.KEEP_CURRENT_RESULT, or
Statement.CLOSE_ALL_RESULTSOverrides org. Implements java. Statement object's next result, deals with
any current ResultSet object(s) according to the instructions
specified by the given flag, and returns
true if the next result is a ResultSet object.
|
| public ResultSet | getResultSet()
Overrides org. Implements java. ResultSet object.
|
| public int | getUpdateCount()
Overrides org. Implements java. ResultSet object or there are no more results, -1
is returned.
|
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Overrides org. Implements java. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Overrides org. Implements java. |