ExecuteContext containing
configuration() and data() where no actual context is
available.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final ExecuteContext. | |
| public final Query[] | batchQueries()
Implements org. Query objects that are being executed in batch mode, or
empty if the query is unknown or if there was no jOOQ Query.
|
| public final int[] | batchRows()
Implements org. |
| public final String[] | batchSQL()
Implements org. |
| public final Connection | connection()
Implements org. |
| public final void | connectionProvider(ConnectionProvider connectionProvider)
Implements org. Connection that is being used for execution.
|
| public final ConverterContext | converterContext()
Implements org. ConverterContext for the scope of this
ExecuteContext.
|
| public final RuntimeException | |
| public final void | exception(RuntimeException e)
Implements org. RuntimeException being thrown.
|
| public final Query | query()
Implements org. Query that is being executed, or null if
the query is unknown, if it is a batch query, or if there was no jOOQ
Query.
|
| public final Record | record()
Implements org. null if no record has been fetched.
|
| public final void | |
| public final int | recordLevel()
Implements org. record(), relevant when nested
result events are triggered via
ExecuteListener#resultStart(ExecuteContext) and
ExecuteListener#resultEnd(ExecuteContext), e.g. in the presence
of DSL#multiset(Select).
|
| public final Result | result()
Implements org. null if no result has been fetched, including when results
do not need to be buffered in a Result type, such as all
ResultQuery#collect(Collector) or ResultQuery#iterator()
based fetches.
|
| public final void | |
| public final int | resultLevel()
Implements org. result(), relevant when nested
result events are triggered via
ExecuteListener#resultStart(ExecuteContext) and
ExecuteListener#resultEnd(ExecuteContext), e.g. in the presence
of DSL#multiset(Select).
|
| public final ResultSet | resultSet()
Implements org. ResultSet that is being fetched or null if the
result set is unknown or if no result set is being fetched.
|
| public final void | resultSet(ResultSet resultSet)
Implements org. ResultSet that is being fetched.
|
| public final Routine | routine()
Implements org. Routine that is being executed or null if
the query is unknown or if there was no jOOQ Routine.
|
| public final int | rows()
Implements org. |
| public final void | |
| public final String[] | serverOutput()
Implements org. .
|
| public final void | serverOutput(String[] output)
Implements org. .
|
| public final String | sql()
Implements org. null if the SQL statement
is unknown or if there was no SQL statement.
|
| public final void | sql(String sql)
Implements org. |
| public final SQLException | sqlException()
Implements org. SQLException that was thrown by the database.
|
| public final void | sqlException(SQLException e)
Implements org. SQLException being thrown.
|
| public final SQLWarning | sqlWarning()
Implements org. SQLWarning that was emitted by the database.
|
| public final void | sqlWarning(SQLWarning e)
Implements org. SQLWarning being emitted.
|
| public final PreparedStatement | statement()
Implements org. PreparedStatement that is being executed or null
if the statement is unknown or if there was no statement.
|
| public final void | statement(PreparedStatement statement)
Implements org. PreparedStatement that is being executed.
|
| public final int | statementExecutionCount()
Implements org. |
| public final ExecuteType | type()
Implements org. |
| SimpleExecuteContext | back to summary |
|---|---|
| pack-priv SimpleExecuteContext(Configuration configuration, Map<Object, Object> data) | |
| batchMode | back to summary |
|---|---|
| public final ExecuteContext. Implements org. Doc from org. The batch execution mode.
| |
| batchQueries | back to summary |
|---|---|
| public final Query[] batchQueries() Implements org. Doc from org. The jOOQ
If a single
Refer to
This corresponds to | |
| batchRows | back to summary |
|---|---|
| public final int[] batchRows() Implements org. Doc from org. The number of rows that were affected by the last statement executed in batch mode.
If a single
This returns
| |
| batchSQL | back to summary |
|---|---|
| public final String[] batchSQL() Implements org. Doc from org. The generated SQL statements that are being executed in batch mode, or empty if the query is unknown or if there was no SQL statement.
If a single | |
| connection | back to summary |
|---|---|
| public final Connection connection() Implements org. Doc from org. The connection to be used in this execute context.
This returns a proxy to the
| |
| connectionProvider | back to summary |
|---|---|
| public final void connectionProvider(ConnectionProvider connectionProvider) Implements org. Doc from org. Override the This may have no effect, if called at the wrong moment.
| |
| converterContext | back to summary |
|---|---|
| public final ConverterContext converterContext() Implements org. Doc from org. Get a
| |
| exception | back to summary |
|---|---|
| public final RuntimeException exception() Implements org. Doc from org. The
| |
| exception | back to summary |
|---|---|
| public final void exception(RuntimeException e) Implements org. Doc from org. Override the This may have no effect, if called at the wrong moment.
If
| |
| query | back to summary |
|---|---|
| public final Query query() Implements org. Doc from org. The jOOQ
This corresponds to
| |
| record | back to summary |
|---|---|
| public final Record record() Implements org. Doc from org. The last record that was fetched from the result set, or
| |
| record | back to summary |
|---|---|
| public final void record(Record record) Implements org. Doc from org. Calling this has no effect. It is used by jOOQ internally.
| |
| recordLevel | back to summary |
|---|---|
| public final int recordLevel() Implements org. Doc from org. The 0-based record nesting level for
| |
| result | back to summary |
|---|---|
| public final Result Implements org. Doc from org. The last result that was fetched from the result set, or
| |
| result | back to summary |
|---|---|
| public final void result(Result<?> result) Implements org. Doc from org. Calling this has no effect. It is used by jOOQ internally.
| |
| resultLevel | back to summary |
|---|---|
| public final int resultLevel() Implements org. Doc from org. The 0-based result nesting level for
| |
| resultSet | back to summary |
|---|---|
| public final ResultSet resultSet() Implements org. Doc from org. The
| |
| resultSet | back to summary |
|---|---|
| public final void resultSet(ResultSet resultSet) Implements org. Doc from org. Override the This may have no effect, if called at the wrong moment.
| |
| routine | back to summary |
|---|---|
| public final Routine Implements org. Doc from org. The jOOQ
| |
| rows | back to summary |
|---|---|
| public final int rows() Implements org. Doc from org. The number of rows that were affected by the last statement.
This returns
| |
| rows | back to summary |
|---|---|
| public final void rows(int rows) Implements org. Doc from org. Calling this has no effect. It is used by jOOQ internally.
| |
| serverOutput | back to summary |
|---|---|
| public final String[] serverOutput() Implements org. Doc from org. Any server output collected from this statement when
| |
| serverOutput | back to summary |
|---|---|
| public final void serverOutput(String[] output) Implements org. Doc from org. Any server output collected from this statement when
| |
| sql | back to summary |
|---|---|
| public final String sql() Implements org. Doc from org. The SQL that is being executed or
| |
| sql | back to summary |
|---|---|
| public final void sql(String sql) Implements org. Doc from org. Override the SQL statement that is being executed. This may have no effect, if called at the wrong moment.
| |
| sqlException | back to summary |
|---|---|
| public final SQLException sqlException() Implements org. Doc from org. The
| |
| sqlException | back to summary |
|---|---|
| public final void sqlException(SQLException e) Implements org. Doc from org. Override the
Any
If
| |
| sqlWarning | back to summary |
|---|---|
| public final SQLWarning sqlWarning() Implements org. Doc from org. The
Note that fetching of warnings can be disabled using
| |
| sqlWarning | back to summary |
|---|---|
| public final void sqlWarning(SQLWarning e) Implements org. Doc from org. Override the
| |
| statement | back to summary |
|---|---|
| public final PreparedStatement statement() Implements org. Doc from org. The
This can be any of the following:
| |
| statement | back to summary |
|---|---|
| public final void statement(PreparedStatement statement) Implements org. Doc from org. Override the This may have no effect, if called at the wrong moment.
| |
| statementExecutionCount | back to summary |
|---|---|
| public final int statementExecutionCount() Implements org. Doc from org. The number of times this particular statement has been executed.
Statements that are prepared by jOOQ can be executed multiple times
without being closed if
This value will increment as soon as the statement is about to be
executed (at the
| |
| type | back to summary |
|---|---|
| public final ExecuteType type() Implements org. Doc from org. The type of database interaction that is being executed.
| |