Class CachingLogicalConnection

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

public class CachingLogicalConnection extends LogicalConnection
A logical connection used in a connection pool with capabilities for caching prepared statements.

An instance of this class is what is passed out the the client. It uses a JDBC statement object cache to avoid re-preparing commonly used queries. The cache has scope of a physical connection, and is lost when the pooled connection is closed (which includes closing the physical connection).

See Also: