Class StatementCacheInteractor

java.lang.Object
org.apache.derby.client.am.StatementCacheInteractor

public final class StatementCacheInteractor extends Object
Utility class encapsulating the logic for interacting with the JDBC statement cache when creating new logical statements.

This class was introduced to share code between the pre-JDBC 4 and the JDBC 4+ versions of the JDBC classes.

The pattern for the prepareX methods is:

  1. Generate a key for the statement to create.
  2. Consult cache to see if an existing statement can be used.
  3. Create new statement on physical connection if necessary.
  4. Return reference to existing or newly created statement.