Class DelegatingStatement

java.lang.Object
org.apache.commons.dbcp2.AbandonedTrace
org.apache.commons.dbcp2.DelegatingStatement
All Implemented Interfaces:
AutoCloseable, Statement, Wrapper, TrackedUse
Direct Known Subclasses:
DelegatingPreparedStatement

public class DelegatingStatement extends AbandonedTrace implements Statement
A base delegating implementation of Statement.

All of the methods from the Statement interface simply check to see that the Statement is active, and call the corresponding method on the "delegate" provided in my constructor.

Extends AbandonedTrace to implement Statement tracking and logging of code which created the Statement. Tracking the Statement ensures that the Connection which created it can close any open Statement's on Connection close.

Since:
2.0