Class LogicalStatementEntity

java.lang.Object
org.apache.derby.client.am.LogicalStatementEntity
All Implemented Interfaces:
AutoCloseable, Statement, Wrapper
Direct Known Subclasses:
LogicalPreparedStatement

abstract class LogicalStatementEntity extends Object implements Statement
Common class interacting with the JDBC statement cache for logical prepared statements and logical callable statements.

Note that getPhysPs() and getPhysCs() takes care of checking if the logical statement has been closed. The physical statement will take care of validating itself.

Beside from the above, special treatment of logical entities happens on close. This is the point where cache interaction takes place, and also where the appropriate methods are called on the physical statement to perform the necessary clean up for later reuse.

A note regarding the thread safety of this class, is that access to physicalPs and physicalCs is guarded by the instance of this class, but it is assumed that operation on/within the physical statement is synchronized in the physical statement itself .