Deprecated
as a consequence of DefaultStatement being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBatch(String
typically this is a SQL sql)INSERT or
UPDATE statementOverrides org. Implements java. Statement object.
|
| public boolean | execute(String
any SQL statement sql)Overrides org. Implements java. |
| public 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 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 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 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 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 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 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 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 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 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 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 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. |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| LoggingStatement | back to summary |
|---|---|
| public LoggingStatement(Statement delegate) | |
| addBatch | back to summary |
|---|---|
| public 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 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 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 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 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 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 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 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 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 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
| |
| executeUpdate | back to summary |
|---|---|
| public 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 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 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 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
| |