Connection proxy that logs all statements that are prepared
or executed using it.
| Modifier and Type | Field and Description |
|---|---|
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| public |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| LoggingConnection | back to summary |
|---|---|
| public LoggingConnection(Connection delegate) | |
| beginTransaction | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Begins a new transaction. Calling this method disables | |
| beginTransaction | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Begins a new transaction. Calling this method disables
| |
| close | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Release any resources held by the | |
| commitTransaction | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Commits the current transaction. | |
| createBatch | back to summary |
|---|---|
| public Batch createBatch() Overrides org. Implements io. Doc from io. Creates a new | |
| createSavepoint | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Creates a savepoint in the current transaction. | |
| createStatement | back to summary |
|---|---|
| public Statement createStatement(String sql) Overrides org. Implements io. Doc from io. Creates a new statement for building a statement-based request. | |
| releaseSavepoint | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Releases a savepoint in the current transaction. Calling this for drivers not supporting savepoint release results in a no-op. | |
| rollbackTransaction | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Rolls back the current transaction. | |
| rollbackTransactionToSavepoint | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Rolls back to a savepoint in the current transaction. | |
| setAutoCommit | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Configures the auto-commit mode for the current transaction.
If a connection is in auto-commit mode, then all Calling this method during an active transaction and the auto-commit mode is changed, the transaction is committed. Calling this method without changing auto-commit mode this invocation results in a no-op. | |
| setLockWaitTimeout | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Configures the lock acquisition timeout for statements to be executed using the current connection.
The default lock acquisition timeout is vendor-specific and can be specified for new connections through
In the case of | |
| setStatementTimeout | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Configures the statement timeout for statements to be executed using the current connection.
By default, there is no limit on the amount of time allowed for a running statement to complete unless specified through
The minimum amount of time can be used to either let the data source cancel the statement or attempt a client-side cancellation.
The timeout applies to statements through a combination of Note that the timeout applies until receiving the first response from the data source and does not span until | |
| setTransactionIsolationLevel | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Configures the isolation level for the connection. When called outside a transaction, then the isolation level applies for all subsequent transactions. Setting the isolation level within a transaction results in vendor-specific behavior. Isolation level is typically one of the following constants:
| |
| validate | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Validates the connection according to the given
| |