Class LogicalConnection

java.lang.Object
org.apache.derby.client.am.LogicalConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper
Direct Known Subclasses:
CachingLogicalConnection

public class LogicalConnection extends Object implements Connection
A simple delegation wrapper handle for a physical connection.

All methods of the Connection interface are forwarded to the underlying physical connection, except for close() and isClosed(). When a physical connection is wrapped, it is non-null, when the logical connection is closed, the wrapped physical connection is always set to null. Both the finalizer and the close-methods will always set the physical connection to null. After the physical connection has been nulled out, only the PooledConnection instance will maintain a handle to the physical connection.