PooledConnection. The ProxyConnection intercepts three methods:
java.sql.Connection#close() - returns the connection to the pool. May be called multiple times.java.lang.Object#toString() - returns a custom string for this objectjavax.sql.PooledConnection#getConnection() - returns the underlying connectionPoolConfiguration#setUseEquals(boolean) has been called
with a true argument.
| Modifier and Type | Field and Description |
|---|---|
| protected PooledConnection | |
| protected ConnectionPool |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public PooledConnection | |
| public PooledConnection | |
| public ConnectionPool | |
| public ConnectionPool | |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Overrides org. Implements java. Gets invoked each time an operation on |
| public boolean | |
| public boolean | |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Implements abstract org. Gets called each time the connection is borrowed from the pool This means that if an interceptor holds a reference to the connection the interceptor can be reused for another connection. |
| public void | |
| public void | |
| public String | |
| public Object |
| connection | back to summary |
|---|---|
| protected PooledConnection connection | |
| pool | back to summary |
|---|---|
| protected ConnectionPool pool | |
| ProxyConnection | back to summary |
|---|---|
| protected ProxyConnection(ConnectionPool parent, PooledConnection con, boolean useEquals) | |
| getConnection | back to summary |
|---|---|
| public PooledConnection getConnection() | |
| getDelegateConnection | back to summary |
|---|---|
| public PooledConnection getDelegateConnection() | |
| getParentPool | back to summary |
|---|---|
| public ConnectionPool getParentPool() | |
| getPool | back to summary |
|---|---|
| public ConnectionPool getPool() | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Overrides org. Implements java. Doc from org. Gets invoked each time an operation on
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) | |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Implements abstract org. Doc from org. Gets called each time the connection is borrowed from the pool
This means that if an interceptor holds a reference to the connection
the interceptor can be reused for another connection.
| |
| setConnection | back to summary |
|---|---|
| public void setConnection(PooledConnection connection) | |
| setPool | back to summary |
|---|---|
| public void setPool(ConnectionPool pool) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unwrap | back to summary |
|---|---|
| public Object unwrap(Class<?> iface) throws SQLException | |