ConnectionProvider.
This implementation just wraps a JDBC Connection and provides jOOQ
with the same connection for every query. jOOQ will not call any
transaction-related methods on the supplied connection. Instead, jOOQ
provides you with convenient access to those methods, wrapping any checked
SQLException into an unchecked DataAccessException
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Connection | |
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final @NotNull Connection | acquire()
Implements org. |
| public final void | |
| public final boolean | |
| public final int | |
| public final int | |
| public final boolean | |
| public final void | release(Connection
A connection that was previously obtained from
released)acquire(). This is never null.Implements org. |
| public final void | releaseSavepoint(Savepoint savepoint)
Convenience method to access
|
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final @NotNull Savepoint | |
| public final @NotNull Savepoint | |
| public final void | setTransactionIsolation(int level)
Convenience method to access
|
| connection | back to summary |
|---|---|
| pack-priv Connection connection | |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| DefaultConnectionProvider | back to summary |
|---|---|
| public DefaultConnectionProvider(Connection connection) | |
| acquire | back to summary |
|---|---|
| public final @NotNull Connection acquire() Implements org. Doc from org. Acquire a connection from the connection lifecycle handler.
This method is called by jOOQ exactly once per execution lifecycle, i.e.
per
jOOQ will guarantee that every acquired connection is released through
| |
| commit | back to summary |
|---|---|
| public final void commit() throws DataAccessException Convenience method to access | |
| getAutoCommit | back to summary |
|---|---|
| public final boolean getAutoCommit() throws DataAccessException Convenience method to access | |
| getHoldability | back to summary |
|---|---|
| public final int getHoldability() throws DataAccessException Convenience method to access | |
| getTransactionIsolation | back to summary |
|---|---|
| public final int getTransactionIsolation() throws DataAccessException Convenience method to access | |
| isReadOnly | back to summary |
|---|---|
| public final boolean isReadOnly() throws DataAccessException Convenience method to access | |
| release | back to summary |
|---|---|
| public final void release(Connection released) Implements org. Doc from org. Release a connection to the connection lifecycle handler. jOOQ will guarantee that every acquired connection is released exactly once.
| |
| releaseSavepoint | back to summary |
|---|---|
| public final void releaseSavepoint(Savepoint savepoint) throws DataAccessException Convenience method to access
| |
| rollback | back to summary |
|---|---|
| public final void rollback() throws DataAccessException Convenience method to access | |
| rollback | back to summary |
|---|---|
| public final void rollback(Savepoint savepoint) throws DataAccessException Convenience method to access | |
| setAutoCommit | back to summary |
|---|---|
| public final void setAutoCommit(boolean autoCommit) throws DataAccessException Convenience method to access | |
| setConnection | back to summary |
|---|---|
| public final void setConnection(Connection connection) | |
| setHoldability | back to summary |
|---|---|
| public final void setHoldability(int holdability) throws DataAccessException Convenience method to access | |
| setReadOnly | back to summary |
|---|---|
| public final void setReadOnly(boolean readOnly) throws DataAccessException Convenience method to access | |
| setSavepoint | back to summary |
|---|---|
| public final @NotNull Savepoint setSavepoint() throws DataAccessException Convenience method to access
| |
| setSavepoint | back to summary |
|---|---|
| public final @NotNull Savepoint setSavepoint(String name) throws DataAccessException Convenience method to access
| |
| setTransactionIsolation | back to summary |
|---|---|
| public final void setTransactionIsolation(int level) throws DataAccessException Convenience method to access
| |