StatementCache.CachedStatement (Apache Tomcat 11.0.22 API Documentation)
Description: declaration: package: org.apache.tomcat.jdbc.pool.interceptor, class: StatementCache, class: CachedStatement

# Class StatementCache.CachedStatement

java.lang.Object
org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor.StatementProxy<PreparedStatement>
org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CachedStatement

All Implemented Interfaces:
  `InvocationHandler`

Enclosing class:
  `StatementCache`

protected class StatementCache.CachedStatement extends StatementDecoratorInterceptor.StatementProxy<PreparedStatement>

- ## Field Summary

  ### Fields inherited from class StatementDecoratorInterceptor.StatementProxy

  `closed, delegate`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CachedStatement(PreparedStatement parent, String sql)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `closeInvoked()`
  `void`
  `forceClose()`
  `org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey`
  `getCacheKey()`
  `void`
  `setCacheKey(org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey cacheKey)`

  ### Methods inherited from class StatementDecoratorInterceptor.StatementProxy

  `getActualProxy, getConnection, getConstructor, getDelegate, getSql, invoke, setActualProxy, setConnection, setConstructor, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CachedStatement

    public CachedStatement(PreparedStatement parent, String sql)

- ## Method Details

  - ### closeInvoked

    public void closeInvoked()
    Overrides:
      `closeInvoked` in class `StatementDecoratorInterceptor.StatementProxy<PreparedStatement>`

  - ### forceClose

    public void forceClose()

  - ### getCacheKey

    public org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey getCacheKey()

  - ### setCacheKey

    public void setCacheKey(org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey cacheKey)