Class StatementCache.CachedStatement

    • Constructor Detail

      • CachedStatement

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

      • 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