Deprecated
Everything in this package has been replaced with
org. and friends.
ConnectionHelper implementation based on a provided
ConnectionProvider. Essentially, ensures that the connection
gets cleaned up, but that the provider itself remains usable since it
was externally provided to us.
| Modifier and Type | Field and Description |
|---|---|
| private Connection | |
| private ConnectionProvider | |
| private final SqlExceptionHelper | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | SuppliedConnectionProviderConnectionHelper(ConnectionProvider provider, SqlExceptionHelper sqlExceptionHelper)
|
| Modifier and Type | Method and Description |
|---|---|
| public Connection | getConnection()
Implements org. |
| public void | prepare(boolean
Should connection be forced to auto-commit
if not already. needsAutoCommit)Implements org. |
| public void | release()
Implements org. |
| connection | back to summary |
|---|---|
| private Connection connection | |
| provider | back to summary |
|---|---|
| private ConnectionProvider provider | |
| sqlExceptionHelper | back to summary |
|---|---|
| private final SqlExceptionHelper sqlExceptionHelper | |
| toggleAutoCommit | back to summary |
|---|---|
| private boolean toggleAutoCommit | |
| SuppliedConnectionProviderConnectionHelper | back to summary |
|---|---|
| public SuppliedConnectionProviderConnectionHelper(ConnectionProvider provider, SqlExceptionHelper sqlExceptionHelper) | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements org. Doc from org. Get a reference to the connection we are using.
| |
| prepare | back to summary |
|---|---|
| public void prepare(boolean needsAutoCommit) throws SQLException Implements org. Doc from org. Prepare the helper for use.
| |
| release | back to summary |
|---|---|
| public void release() throws SQLException Implements org. Doc from org. Release any resources held by this helper. | |