Class StatementFinalizer.StatementEntry
- java.lang.Object
-
- org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer.StatementEntry
-
- Enclosing class:
- StatementFinalizer
protected class StatementFinalizer.StatementEntry extends java.lang.ObjectEntry that tracks a statement and its allocation stack.
-
-
Constructor Summary
Constructors Constructor Description StatementEntry(java.sql.Statement statement)Creates a new StatementEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetAllocationStack()Returns the stack trace from when this statement was created.java.sql.StatementgetStatement()Returns the tracked statement.
-
-
-
Method Detail
-
getStatement
public java.sql.Statement getStatement()
Returns the tracked statement.- Returns:
- the statement, or null if it has been garbage collected
-
getAllocationStack
public java.lang.Throwable getAllocationStack()
Returns the stack trace from when this statement was created.- Returns:
- the allocation stack trace, or null if tracing is disabled
-
-