| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final Connection | |
| private volatile boolean | |
| private static final Logger | |
| private final PooledRef | |
| private final Mono |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PooledConnection(PooledRef<Connection> ref, Function<? super Connection, ? extends Publisher<Void>> preRelease)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Mono | |
| public Mono | beginTransaction(TransactionDefinition
attributes for the transaction. definition)Implements io. |
| public Mono | |
| public Mono | commitTransaction()
Implements io. |
| public Batch | createBatch()
Implements io. Batch instance for building a batched request.
|
| public Publisher | createSavepoint(String
the name of the savepoint to create s)Implements io. |
| public Statement | createStatement(String
the SQL of the statement s)Implements io. |
| public ConnectionMetadata | getMetadata()
Implements io. ConnectionMetadata about the product this Connection is connected to.
|
| public IsolationLevel | getTransactionIsolationLevel()
Implements io. IsolationLevel for this connection.
|
| private static Mono | |
| public boolean | isAutoCommit()
Implements io. |
| public Publisher | releaseSavepoint(String
the name of the savepoint to release s)Implements io. |
| public Mono | rollbackTransaction()
Implements io. |
| public Mono | rollbackTransactionToSavepoint(String
the name of the savepoint to rollback to s)Implements io. |
| public Mono | setAutoCommit(boolean
the isolation level for this transaction autoCommit)Implements io. |
| public Mono | setLockWaitTimeout(Duration
the lock timeout for this connection. Support for timeout)no timeout is vendor-specific.Implements io. |
| public Mono | setStatementTimeout(Duration
the statement timeout for this connection. timeout)Duration#ZERO indicates no timeout.Implements io. |
| public Mono | setTransactionIsolationLevel(IsolationLevel
the isolation level for this transaction isolationLevel)Implements io. |
| public String | |
| public Connection | unwrap()
Implements io. |
| public Publisher | validate(ValidationDepth
the validation depth validationDepth)Implements io. ValidationDepth.
|
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| connection | back to summary |
|---|---|
| private final Connection connection | |
| inTransaction | back to summary |
|---|---|
| private volatile boolean inTransaction | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| ref | back to summary |
|---|---|
| private final PooledRef<Connection> ref | |
| release | back to summary |
|---|---|
| private final Mono<Void> release | |
| PooledConnection | back to summary |
|---|---|
| pack-priv PooledConnection(PooledRef<Connection> ref) | |
| PooledConnection | back to summary |
|---|---|
| pack-priv PooledConnection(PooledRef<Connection> ref, Function<? super Connection, ? extends Publisher<Void>> preRelease) | |
| assertNotClosed | back to summary |
|---|---|
| private void assertNotClosed() | |
| beginTransaction | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Begins a new transaction. Calling this method disables | |
| beginTransaction | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Begins a new transaction. Calling this method disables
| |
| close | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Release any resources held by the | |
| commitTransaction | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Commits the current transaction. | |
| createBatch | back to summary |
|---|---|
| public Batch createBatch() Implements io. Doc from io. Creates a new | |
| createSavepoint | back to summary |
|---|---|
| public Publisher Implements io. Doc from io. Creates a savepoint in the current transaction. | |
| createStatement | back to summary |
|---|---|
| public Statement createStatement(String s) Implements io. Doc from io. Creates a new statement for building a statement-based request. | |
| getMetadata | back to summary |
|---|---|
| public ConnectionMetadata getMetadata() Implements io. Doc from io. Returns the
| |
| getTransactionIsolationLevel | back to summary |
|---|---|
| public IsolationLevel getTransactionIsolationLevel() Implements io. Doc from io. Returns the Isolation level is typically one of the following constants:
| |
| handleCleanupError | back to summary |
|---|---|
| private static Mono | |
| isAutoCommit | back to summary |
|---|---|
| public boolean isAutoCommit() Implements io. Doc from io. Returns the auto-commit mode for this connection.
| |
| releaseSavepoint | back to summary |
|---|---|
| public Publisher 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 Mono Implements io. Doc from io. Rolls back the current transaction. | |
| rollbackTransactionToSavepoint | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Rolls back to a savepoint in the current transaction. | |
| setAutoCommit | back to summary |
|---|---|
| public Mono 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 Mono 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 Mono 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 Mono 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:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unwrap | back to summary |
|---|---|
| public Connection unwrap() Implements io. Doc from io. Returns the original instance wrapped by this object.
| |
| validate | back to summary |
|---|---|
| public Publisher Implements io. Doc from io. Validates the connection according to the given
| |