public class ConnectionProxyHandler extends AbstractProxyHandler implements NonDurableConnectionObserver
InvocationHandler for intercepting messages to Connection proxies.| Constructor and Description |
|---|
ConnectionProxyHandler(LogicalConnectionImplementor logicalConnection) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
continueInvocation(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected LogicalConnectionImplementor |
getLogicalConnection()
Access to our logical connection.
|
void |
logicalConnectionClosed()
The logical connection was closed.
|
void |
physicalConnectionObtained(java.sql.Connection connection)
A physical connection was obtained.
|
void |
physicalConnectionReleased()
A physical connection was released.
|
void |
statementPrepared()
Notification of a statement being prepared
|
errorIfInvalid, hashCode, invalidate, invoke, isValid, toStringpublic ConnectionProxyHandler(LogicalConnectionImplementor logicalConnection)
protected LogicalConnectionImplementor getLogicalConnection()
protected java.lang.Object continueInvocation(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
continueInvocation in class AbstractProxyHandlerjava.lang.Throwablepublic void physicalConnectionObtained(java.sql.Connection connection)
ConnectionObserverphysicalConnectionObtained in interface ConnectionObserverconnection - The physical connection just obtained.public void physicalConnectionReleased()
ConnectionObserverphysicalConnectionReleased in interface ConnectionObserverpublic void logicalConnectionClosed()
ConnectionObserverlogicalConnectionClosed in interface ConnectionObserverpublic void statementPrepared()
ConnectionObserverstatementPrepared in interface ConnectionObserverCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.