Query execution passed to registered
ExecuteListener's.
This type implements Scope and thus has a lifecycle defined by the
query execution.
The data() map contents are maintained for the entirety of the
execution, and are passed along to child Scope types, including e.g.
BindingScope: When passing bind values or reading results.ExecuteListener
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ExecuteContext.BatchMode
The batch mode, which helps interpret the contents of
|
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull ExecuteContext. | |
| public @NotNull @NotNull Query[] | Returns: The executedQuery object(s). This is never
nullThe jOOQ |
| public @NotNull int[] | Returns: The affected rows. This is nevernullThe number of rows that were affected by the last statement executed in batch mode. |
| public @NotNull @NotNull String[] | Returns: The generated SQL statement(s). This is nevernullThe generated SQL statements that are being executed in batch mode, or empty if the query is unknown or if there was no SQL statement. |
| public Connection | |
| public void | connectionProvider(ConnectionProvider connectionProvider)
Override the |
| public ConverterContext | |
| public @Nullable RuntimeException | |
| public void | |
| public @Nullable Query | |
| public @Nullable Record | record()
The last record that was fetched from the result set, or
|
| public void | |
| public int | recordLevel()
The 0-based record nesting level for |
| public @Nullable Result | result()
The last result that was fetched from the result set, or
|
| public void | |
| public int | resultLevel()
The 0-based result nesting level for |
| public @Nullable ResultSet | |
| public void | |
| public @Nullable Routine | |
| public int | |
| public void | |
| public @NotNull @NotNull String[] | Returns: The server output. This is nevernull.Any server output collected from this statement when
|
| public void | serverOutput(String[] output)
Any server output collected from this statement when
|
| public @Nullable String | sql()
The SQL that is being executed or |
| public void | |
| public @Nullable SQLException | |
| public void | |
| public @Nullable SQLWarning | |
| public void | |
| public @Nullable PreparedStatement | statement()
The |
| public void | |
| public int | |
| public @NotNull ExecuteType |
| batchMode | back to summary |
|---|---|
| public @NotNull ExecuteContext. The batch execution mode.
| |
| batchQueries | back to summary |
|---|---|
| public @NotNull @NotNull Query[] batchQueries() The jOOQ
If a single
Refer to
This corresponds to | |
| batchRows | back to summary |
|---|---|
| public @NotNull int[] batchRows() 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 @NotNull @NotNull String[] batchSQL() 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 Connection connection() The connection to be used in this execute context.
This returns a proxy to the
| |
| connectionProvider | back to summary |
|---|---|
| public void connectionProvider(ConnectionProvider connectionProvider) Override the This may have no effect, if called at the wrong moment. | |
| converterContext | back to summary |
|---|---|
| public ConverterContext converterContext() Get a | |
| exception | back to summary |
|---|---|
| public @Nullable RuntimeException exception() The
| |
| exception | back to summary |
|---|---|
| public void exception(RuntimeException e) Override the This may have no effect, if called at the wrong moment.
If | |
| query | back to summary |
|---|---|
| public @Nullable Query query() The jOOQ
This corresponds to
| |
| record | back to summary |
|---|---|
| public @Nullable Record record() The last record that was fetched from the result set, or
| |
| record | back to summary |
|---|---|
| public void record(Record record) Calling this has no effect. It is used by jOOQ internally. | |
| recordLevel | back to summary |
|---|---|
| public int recordLevel() The 0-based record nesting level for | |
| result | back to summary |
|---|---|
| public @Nullable Result The last result that was fetched from the result set, or
| |
| result | back to summary |
|---|---|
| public void result(Result<?> result) Calling this has no effect. It is used by jOOQ internally. | |
| resultLevel | back to summary |
|---|---|
| public int resultLevel() The 0-based result nesting level for | |
| resultSet | back to summary |
|---|---|
| public @Nullable ResultSet resultSet() The
| |
| resultSet | back to summary |
|---|---|
| public void resultSet(ResultSet resultSet) Override the This may have no effect, if called at the wrong moment. | |
| routine | back to summary |
|---|---|
| public @Nullable Routine The jOOQ | |
| rows | back to summary |
|---|---|
| public int rows() The number of rows that were affected by the last statement.
This returns
| |
| rows | back to summary |
|---|---|
| public void rows(int rows) Calling this has no effect. It is used by jOOQ internally. | |
| serverOutput | back to summary |
|---|---|
| public @NotNull @NotNull String[] serverOutput() Any server output collected from this statement when
| |
| serverOutput | back to summary |
|---|---|
| public void serverOutput(String[] output) Any server output collected from this statement when
| |
| sql | back to summary |
|---|---|
| public @Nullable String sql() The SQL that is being executed or
| |
| sql | back to summary |
|---|---|
| public void sql(String sql) Override the SQL statement that is being executed. This may have no effect, if called at the wrong moment. | |
| sqlException | back to summary |
|---|---|
| public @Nullable SQLException sqlException() The
| |
| sqlException | back to summary |
|---|---|
| public void sqlException(SQLException e) Override the
Any
If | |
| sqlWarning | back to summary |
|---|---|
| public @Nullable SQLWarning sqlWarning() The
Note that fetching of warnings can be disabled using
| |
| sqlWarning | back to summary |
|---|---|
| public void sqlWarning(SQLWarning e) Override the | |
| statement | back to summary |
|---|---|
| public @Nullable PreparedStatement statement() The
This can be any of the following:
| |
| statement | back to summary |
|---|---|
| public void statement(PreparedStatement statement) Override the This may have no effect, if called at the wrong moment. | |
| statementExecutionCount | back to summary |
|---|---|
| public int statementExecutionCount() 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 @NotNull ExecuteType type() The type of database interaction that is being executed.
| |
ExecuteContext#batchQueries().
| Modifier and Type | Field and Description |
|---|---|
| public static final ExecuteContext. | |
| public static final ExecuteContext. | NONE
No |
| public static final ExecuteContext. | SINGLE
A |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ExecuteContext. | |
| public static ExecuteContext. |
| MULTIPLE | back to summary |
|---|---|
| public static final ExecuteContext. A | |
| NONE | back to summary |
|---|---|
| public static final ExecuteContext. No | |
| SINGLE | back to summary |
|---|---|
| public static final ExecuteContext. A | |
| BatchMode | back to summary |
|---|---|
| private BatchMode() | |
| valueOf | back to summary |
|---|---|
| public static ExecuteContext. | |
| values | back to summary |
|---|---|
| public static ExecuteContext. | |