Package org.postgresql.ds
Class PGPooledConnection.ConnectionHandler
java.lang.Object
org.postgresql.ds.PGPooledConnection.ConnectionHandler
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
PGPooledConnection
Instead of declaring a class implementing Connection, which would have to be updated for every
JDK rev, use a dynamic proxy to handle all calls through the Connection interface. This is the
part that requires JDK 1.3 or higher, though JDK 1.2 could be supported with a 3rd-party proxy
package.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
con
-
proxy
-
automatic
private boolean automatic
-
-
Constructor Details
-
ConnectionHandler
ConnectionHandler(Connection con)
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
getProxy
Connection getProxy() -
setProxy
-
close
public void close() -
isClosed
public boolean isClosed()
-