Class CachedPreparedStatementCreator

java.lang.Object
org.springframework.data.cassandra.core.cql.support.CachedPreparedStatementCreator
All Implemented Interfaces:
PreparedStatementCreator

@Deprecated(forRemoval=true) public class CachedPreparedStatementCreator extends Object implements PreparedStatementCreator
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.2, the Cassandra driver has a built-in prepared statement cache with makes external caching of prepared statements superfluous.
PreparedStatementCreator implementation using caching of prepared statements.

Regular CQL statements are prepared on first use and executed as prepared statements. Prepared statements are cached by Cassandra itself (invalidation/eviction possible), in the driver to be able to re-prepare a statement and in this CachedPreparedStatementCreator using PreparedStatementCache.

Since:
2.0
Author:
Mark Paluch
See Also:
  • Constructor Details

    • CachedPreparedStatementCreator

      protected CachedPreparedStatementCreator(PreparedStatementCache cache, com.datastax.oss.driver.api.core.cql.SimpleStatement statement)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      cache - must not be null.
      statement - must not be null.
  • Method Details