org.apache.tomcat.jdbc.pool.interceptor

## 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 org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor.StatementProxy

      `closed, delegate`

  - ### Constructor Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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 org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor.StatementProxy

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

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### StatementCache.CachedStatement

          public StatementCache.CachedStatement(PreparedStatement parent,
                                        String sql)

  - ### Method Detail

    - #### 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)

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.