java.sql.Connection#close()
Useful for applications that don't close the associated statements after being done with a connection.
| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private boolean | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeInvoked()
Implements abstract org. Method invoked when the operation |
| public Object | createStatement(Object
the actual proxy object proxy, Method the method that was called. It will be one of the methods defined in method, Object[] STATEMENT_TYPESthe arguments to the method args, Object the statement that the underlying connection created statement, long Elapsed time time)Implements abstract org. This method will be invoked after a successful statement creation. |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Overrides org. no-op for this interceptor. |
| public void | setProperties(Map<String, PoolProperties.
The properties propertiesOverrides org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties |
| log | back to summary |
|---|---|
| private static final Log log | |
| logCreationStack | back to summary |
|---|---|
| private boolean logCreationStack | |
| statements | back to summary |
|---|---|
| protected List<StatementFinalizer. | |
| StatementFinalizer | back to summary |
|---|---|
| public StatementFinalizer() | |
| closeInvoked | back to summary |
|---|---|
| public void closeInvoked() Implements abstract org. Doc from org. Method invoked when the operation
| |
| createStatement | back to summary |
|---|---|
| public Object createStatement(Object proxy, Method method, Object[] args, Object statement, long time) Implements abstract org. Doc from org. This method will be invoked after a successful statement creation. This method can choose to return a wrapper
around the statement or return the statement itself.
If this method returns a wrapper then it should return a wrapper object that implements one of the following interfaces.
| |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Overrides org. Doc from org. no-op for this interceptor. no state is stored.
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Map<String, PoolProperties. Overrides org. Doc from org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties
| |
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | |
| private WeakReference |
| Access | Constructor and Description |
|---|---|
| public |
| allocationStack | back to summary |
|---|---|
| private Throwable allocationStack | |
| statement | back to summary |
|---|---|
| private WeakReference<Statement> statement | |
| StatementEntry | back to summary |
|---|---|
| public StatementEntry(Statement statement) | |
| getAllocationStack | back to summary |
|---|---|
| public Throwable getAllocationStack() | |
| getStatement | back to summary |
|---|---|
| public Statement getStatement() | |