public class WrappedConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.sql.Connection |
connection |
protected java.lang.Exception |
instantiationException
Exception, to keep track of where the connection was allocated
|
protected ConnectionPool |
owner |
| Constructor and Description |
|---|
WrappedConnection(ConnectionPool owner,
java.sql.Connection connection)
Constructor
|
WrappedConnection(ConnectionPool owner,
java.sql.Connection connection,
java.lang.Exception instantiationException)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Get the JDBC connection object.
|
java.lang.Exception |
getInstantiationException()
Get instantiation exception.
|
void |
release()
Release the object into its pool.
|
public static final java.lang.String _rcsid
protected java.sql.Connection connection
protected ConnectionPool owner
protected java.lang.Exception instantiationException
public WrappedConnection(ConnectionPool owner, java.sql.Connection connection)
public WrappedConnection(ConnectionPool owner, java.sql.Connection connection, java.lang.Exception instantiationException)