Class AbstractQueryReport.StatementProxy
java.lang.Object
org.apache.tomcat.jdbc.pool.interceptor.AbstractQueryReport.StatementProxy
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
AbstractQueryReport
Class to measure query execute time
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIndicates whether the proxy has been closed.protected ObjectThe statement being proxied, or a further interceptor's proxy of it, nulled once a close has been forwarded.protected final StringThe SQL the statement was prepared with, ornullwhen it was created without one. -
Constructor Summary
ConstructorsConstructorDescriptionStatementProxy(Object parent, String query) Constructs a newStatementProxy. -
Method Summary
-
Field Details
-
closed
protected volatile boolean closedIndicates whether the proxy has been closed. A statement can be closed from a thread other than the one executing on it - the statement finalizer closes tracked statements from whichever thread closes the connection - so the flag is written by one thread and read by others, and must be volatile to reach them at all. -
delegate
-
query
The SQL the statement was prepared with, ornullwhen it was created without one.
-
-
Constructor Details
-
StatementProxy
-
-
Method Details
-
invoke
-
hashCode
-
equals
-
toString
-