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