Class StatementCache.CachedStatement

All Implemented Interfaces:
InvocationHandler
Enclosing class:
StatementCache

protected class StatementCache.CachedStatement extends StatementDecoratorInterceptor.StatementProxy<PreparedStatement>
Proxy for a cached prepared statement.
  • Constructor Details

    • CachedStatement

      public CachedStatement(PreparedStatement parent, String sql)
      Constructs a CachedStatement.
      Parameters:
      parent - the parent prepared statement
      sql - the SQL text
  • Method Details

    • closeInvoked

      public void closeInvoked()
      Description copied from class: StatementDecoratorInterceptor.StatementProxy
      Called when the close method is invoked on the statement.
      Overrides:
      closeInvoked in class StatementDecoratorInterceptor.StatementProxy<PreparedStatement>
    • forceClose

      public void forceClose()
      Forces immediate closure of this cached statement.
    • getCacheKey

      public org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey getCacheKey()
      Returns the cache key for this statement.
      Returns:
      the cache key
    • setCacheKey

      public void setCacheKey(org.apache.tomcat.jdbc.pool.interceptor.StatementCache.CacheKey cacheKey)
      Sets the cache key for this statement.
      Parameters:
      cacheKey - the cache key