Skip navigation links
Spring Data for Apache Cassandra
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enum Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Annotation Interface Elements
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.data.cassandra.config.AbstractCassandraConfiguration.cassandraMapping()
    since 4.0, use AbstractCassandraConfiguration.cassandraMappingContext(CassandraManagedTypes) instead.
    org.springframework.data.cassandra.core.cql.legacy.AsyncCqlOperations
    since 4.0, use the CompletableFuture-based variant AsyncCqlOperations.
    org.springframework.data.cassandra.core.cql.legacy.AsyncCqlTemplate
    since 4.0, use the CompletableFuture-based variant AsyncCqlTemplate.
    org.springframework.data.cassandra.core.cql.legacy.AsyncPreparedStatementCreator
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.legacy.AsyncResultSetExtractor
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.legacy.AsyncRowMapperResultSetExtractor
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.legacy.AsyncSessionCallback
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.legacy.AsyncCassandraOperations
    since 4.0, use the CompletableFuture-based variant AsyncCassandraTemplate.
    org.springframework.data.cassandra.core.legacy.AsyncCassandraTemplate
    since 4.0, use the CompletableFuture-based variant AsyncCassandraTemplate.
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.data.cassandra.core.cql.legacy.AsyncCqlOperations
    since 4.0, use the CompletableFuture-based variant AsyncCqlOperations.
    org.springframework.data.cassandra.core.cql.legacy.AsyncPreparedStatementCreator
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.legacy.AsyncResultSetExtractor
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.legacy.AsyncSessionCallback
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.support.PreparedStatementCache
    since 3.2, the Cassandra driver has a built-in prepared statement cache with makes external caching of prepared statements superfluous.
    org.springframework.data.cassandra.core.legacy.AsyncCassandraOperations
    since 4.0, use the CompletableFuture-based variant AsyncCassandraTemplate.
    org.springframework.data.cassandra.core.mapping.TupleTypeFactory
    since 3.0
  • Deprecated Classes
    Class
    Description
    org.springframework.data.cassandra.config.AbstractCqlTemplateConfiguration
    since 3.0, use AbstractSessionConfiguration.
    org.springframework.data.cassandra.config.CassandraCqlSessionFactoryBean
    since 3.0, use CqlSessionFactoryBean directly.
    org.springframework.data.cassandra.config.CassandraSessionFactoryBean
    since 3.0, use CqlSessionFactoryBean directly.
    org.springframework.data.cassandra.core.convert.BasicCassandraRowValueProvider
    since 3.0, use directly RowValueProvider.
    org.springframework.data.cassandra.core.convert.CassandraTupleValueProvider
    since 3.0, use TupleValueProvider directly.
    org.springframework.data.cassandra.core.convert.CassandraUDTValueProvider
    since 3.0, use UdtValueProvider directly.
    org.springframework.data.cassandra.core.convert.CustomConversions
    since 2.0, use CassandraCustomConversions.
    org.springframework.data.cassandra.core.cql.CachedPreparedStatementCreator
    since 2.0. This class uses an unsafe, static held cache.
    org.springframework.data.cassandra.core.cql.CqlIdentifier
    since 3.0, use CqlIdentifier instead.
    org.springframework.data.cassandra.core.cql.KeyspaceIdentifier
    since 3.0, use CqlIdentifier.
    org.springframework.data.cassandra.core.cql.legacy.AsyncCqlTemplate
    since 4.0, use the CompletableFuture-based variant AsyncCqlTemplate.
    org.springframework.data.cassandra.core.cql.legacy.AsyncRowMapperResultSetExtractor
    since 4.0, use the CompletableFuture-based variant.
    org.springframework.data.cassandra.core.cql.support.CachedPreparedStatementCreator
    since 3.2, the Cassandra driver has a built-in prepared statement cache with makes external caching of prepared statements superfluous.
    org.springframework.data.cassandra.core.cql.support.MapPreparedStatementCache
    since 3.2, the Cassandra driver has a built-in prepared statement cache with makes external caching of prepared statements superfluous.
    org.springframework.data.cassandra.core.cql.util.CassandraFutureAdapter
    since 3.0, use CompletableFuture directly.
    org.springframework.data.cassandra.core.legacy.AsyncCassandraTemplate
    since 4.0, use the CompletableFuture-based variant AsyncCassandraTemplate.
    org.springframework.data.cassandra.core.mapping.BasicCassandraMappingContext
    since 2.0. Use CassandraMappingContext.
    org.springframework.data.cassandra.core.mapping.CodecRegistryTupleTypeFactory
    since 3.0, use SimpleTupleTypeFactory instead.
  • Deprecated Enum Classes
    Enum Class
    Description
    org.springframework.data.cassandra.CassandraSchemaElementExistsException.ElementType
    org.springframework.data.cassandra.core.cql.ReservedKeyword
    since 3.0 without replacement.
    org.springframework.data.cassandra.core.mapping.CassandraColumnAnnotationComparator
    since 3.0 without replacement.
  • Deprecated Fields
    Field
    Description
    org.springframework.data.cassandra.config.DefaultCqlBeanNames.CLUSTER
    since 3.0. Cassandra driver 4 no longer provides a Cluster type.
  • Deprecated Methods
    Method
    Description
    org.springframework.data.cassandra.CassandraReadTimeoutException.getWasDataReceived()
    since 3.0, use CassandraReadTimeoutException.wasDataPresent().
    org.springframework.data.cassandra.CassandraSchemaElementExistsException.getElementName()
    org.springframework.data.cassandra.CassandraSchemaElementExistsException.getElementType()
    org.springframework.data.cassandra.config.AbstractCassandraConfiguration.cassandraMapping()
    since 4.0, use AbstractCassandraConfiguration.cassandraMappingContext(CassandraManagedTypes) instead.
    org.springframework.data.cassandra.config.AbstractSessionConfiguration.getClusterName()
    since 3.0, use AbstractSessionConfiguration.getSessionName() instead.
    org.springframework.data.cassandra.config.AbstractSessionConfiguration.getShutdownScripts()
    since 3.0; Declare a SessionFactoryInitializer bean instead.
    org.springframework.data.cassandra.config.AbstractSessionConfiguration.getStartupScripts()
    since 3.0; Declare a SessionFactoryInitializer bean instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.getShutdownScripts()
    Use SessionFactoryInitializer or SessionFactoryFactoryBean with KeyspacePopulator instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.getStartupScripts()
    Use SessionFactoryInitializer or SessionFactoryFactoryBean with KeyspacePopulator instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.setConverter(CassandraConverter)
    Use SessionFactoryFactoryBean with SessionFactoryFactoryBean.setConverter(CassandraConverter) instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.setSchemaAction(SchemaAction)
    Use SessionFactoryFactoryBean with SessionFactoryFactoryBean.setSchemaAction(SchemaAction) instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.setShutdownScripts(List<String>)
    Use SessionFactoryInitializer or SessionFactoryFactoryBean with KeyspacePopulator instead.
    org.springframework.data.cassandra.config.CqlSessionFactoryBean.setStartupScripts(List<String>)
    Use SessionFactoryInitializer or SessionFactoryFactoryBean with KeyspacePopulator instead.
    org.springframework.data.cassandra.core.AsyncCassandraTemplate.getProjectionFactory()
    since 3.4, use CassandraConverter.getProjectionFactory() instead.
    org.springframework.data.cassandra.core.CassandraTemplate.getProjectionFactory()
    since 3.4, use CassandraConverter.getProjectionFactory() instead.
    org.springframework.data.cassandra.core.cql.CassandraAccessor.getFetchSize()
    since 3.0, use CassandraAccessor.getPageSize().
    org.springframework.data.cassandra.core.cql.CassandraAccessor.getSession()
    since 2.0. This class uses a SessionFactory to dispatch CQL calls amongst different CqlSessions during its lifecycle.
    org.springframework.data.cassandra.core.cql.CassandraAccessor.setFetchSize(int)
    since 3.0, use CassandraAccessor.setPageSize(int)
    org.springframework.data.cassandra.core.cql.CqlIdentifier.cqlId(CharSequence)
    since 2.0, use CqlIdentifier.of(CharSequence)
    org.springframework.data.cassandra.core.cql.CqlIdentifier.cqlId(CharSequence, boolean)
    since 2.0, use CqlIdentifier.of(CharSequence, boolean)
    org.springframework.data.cassandra.core.cql.CqlIdentifier.quotedCqlId(CharSequence)
    since 2.0, use CqlIdentifier.quoted(CharSequence).
    org.springframework.data.cassandra.core.cql.keyspace.CreateKeyspaceSpecification.createKeyspace(KeyspaceIdentifier)
    since 3.0, use CreateKeyspaceSpecification.createKeyspace(CqlIdentifier)
    org.springframework.data.cassandra.core.cql.keyspace.DropKeyspaceSpecification.dropKeyspace(KeyspaceIdentifier)
    since 3.0, use DropKeyspaceSpecification.dropKeyspace(CqlIdentifier).
    org.springframework.data.cassandra.core.cql.KeyspaceIdentifier.ksId(CharSequence)
    since 2.0, use KeyspaceIdentifier.of(CharSequence).
    org.springframework.data.cassandra.core.cql.QueryOptions.getReadTimeout()
    since 3.0, use QueryOptions.getTimeout() instead.
    org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder.fetchSize(int)
    since 3.0, use QueryOptions.QueryOptionsBuilder.pageSize(int).
    org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder.readTimeout(long)
    since 3.0, use QueryOptions.QueryOptionsBuilder.timeout(Duration)
    org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder.readTimeout(long, TimeUnit)
    since 2.0, use QueryOptions.QueryOptionsBuilder.timeout(Duration).
    org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder.readTimeout(Duration)
    since 3.0, use QueryOptions.QueryOptionsBuilder.timeout(Duration)
    org.springframework.data.cassandra.core.cql.ReactiveCqlTemplate.getFetchSize()
    since 3.0, use ReactiveCqlTemplate.getPageSize().
    org.springframework.data.cassandra.core.cql.ReactiveCqlTemplate.setFetchSize(int)
    since 3.0, use ReactiveCqlTemplate.setPageSize(int)
    org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder.fetchSize(int)
    org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder.readTimeout(long)
    org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder.readTimeout(long, TimeUnit)
    org.springframework.data.cassandra.core.DeleteOptions.DeleteOptionsBuilder.fetchSize(int)
    org.springframework.data.cassandra.core.DeleteOptions.DeleteOptionsBuilder.readTimeout(long)
    org.springframework.data.cassandra.core.DeleteOptions.DeleteOptionsBuilder.readTimeout(long, TimeUnit)
    org.springframework.data.cassandra.core.InsertOptions.InsertOptionsBuilder.fetchSize(int)
    org.springframework.data.cassandra.core.InsertOptions.InsertOptionsBuilder.readTimeout(long)
    org.springframework.data.cassandra.core.InsertOptions.InsertOptionsBuilder.readTimeout(long, TimeUnit)
    org.springframework.data.cassandra.core.legacy.AsyncCassandraTemplate.getProjectionFactory()
    since 3.4, use CassandraConverter.getProjectionFactory() instead.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getCodecRegistry()
    since 3.0. Retrieve CodecRegistry directly from CassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getCustomConversions()
    since 3.0. Use custom conversion through MappingCassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getUserTypeResolver()
    since 3.0. Retrieve UserTypeResolver directly from CassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.setCodecRegistry(CodecRegistry)
    since 3.0. Set CodecRegistry directly on CassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.setCustomConversions(CustomConversions)
    since 3.0. Use custom conversion through MappingCassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.setTupleTypeFactory(TupleTypeFactory)
    since 3.0. Tuple type creation uses DataTypes.tupleOf(DataType...)
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext.setUserTypeResolver(UserTypeResolver)
    since 3.0. Set UserTypeResolver directly on CassandraConverter.
    org.springframework.data.cassandra.core.mapping.CassandraPersistentEntity.setForceQuote(boolean)
    since 3.0. The table name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.CassandraPersistentEntity.setTableName(CqlIdentifier)
    since 3.0, use CassandraPersistentEntity.setTableName(CqlIdentifier) instead.
    org.springframework.data.cassandra.core.mapping.CassandraPersistentProperty.setColumnName(CqlIdentifier)
    since 3.0, use CassandraPersistentProperty.setColumnName(CqlIdentifier).
    org.springframework.data.cassandra.core.mapping.CassandraPersistentProperty.setForceQuote(boolean)
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.Column.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.EntityMapping.getForceQuote()
    since 3.0. The type name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.EntityMapping.setForceQuote(String)
    org.springframework.data.cassandra.core.mapping.PrimaryKey.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.PropertyMapping.getForceQuote()
    org.springframework.data.cassandra.core.mapping.PropertyMapping.setForceQuote(String)
    org.springframework.data.cassandra.core.mapping.Table.forceQuote()
    since 3.0. The table name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.UserDefinedType.forceQuote()
    since 3.0. The type name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.ReactiveCassandraTemplate.getProjectionFactory()
    since 3.4, use CassandraConverter.getProjectionFactory() instead.
    org.springframework.data.cassandra.core.UpdateOptions.UpdateOptionsBuilder.fetchSize(int)
    org.springframework.data.cassandra.core.UpdateOptions.UpdateOptionsBuilder.readTimeout(long)
    org.springframework.data.cassandra.core.UpdateOptions.UpdateOptionsBuilder.readTimeout(long, TimeUnit)
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.data.cassandra.CassandraSchemaElementExistsException(String, CassandraSchemaElementExistsException.ElementType, String, Throwable)
    org.springframework.data.cassandra.core.convert.BasicCassandraRowValueProvider(Row, DefaultSpELExpressionEvaluator)
    since 2.1, use BasicCassandraRowValueProvider(Row, CodecRegistry, SpELExpressionEvaluator)
    org.springframework.data.cassandra.core.convert.CassandraUDTValueProvider(UdtValue, CodecRegistry, DefaultSpELExpressionEvaluator)
    since 2.1, use CassandraUDTValueProvider(UdtValue, CodecRegistry, SpELExpressionEvaluator)
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext(UserTypeResolver, TupleTypeFactory)
    since 3.0, UserTypeResolver and TupleTypeFactory no longer required here as high-level type resolution went into CassandraConverter.
    org.springframework.data.cassandra.core.mapping.CodecRegistryTupleTypeFactory(ProtocolVersion, CodecRegistry)
    org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport(CassandraQueryMethod)
    use CassandraRepositoryQuerySupport(CassandraQueryMethod, MappingContext)
    org.springframework.data.cassandra.repository.query.ReactiveStringBasedCassandraQuery(String, ReactiveCassandraQueryMethod, ReactiveCassandraOperations, ExpressionParser, ReactiveQueryMethodEvaluationContextProvider)
    since 4.4, use the constructors accepting ValueExpressionDelegate instead.
    org.springframework.data.cassandra.repository.query.ReactiveStringBasedCassandraQuery(ReactiveCassandraQueryMethod, ReactiveCassandraOperations, ExpressionParser, ReactiveQueryMethodEvaluationContextProvider)
    since 4.4, use the constructors accepting ValueExpressionDelegate instead.
    org.springframework.data.cassandra.repository.query.StringBasedCassandraQuery(String, CassandraQueryMethod, CassandraOperations, ExpressionParser, QueryMethodEvaluationContextProvider)
    use the constructor version with ValueExpressionDelegate
    org.springframework.data.cassandra.repository.query.StringBasedCassandraQuery(CassandraQueryMethod, CassandraOperations, ExpressionParser, QueryMethodEvaluationContextProvider)
    use the constructor version with ValueExpressionDelegate
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.data.cassandra.core.cql.keyspace.TableOption.COMPACT_STORAGE
    since 2.2. Cassandra 4.x has deprecated compact storage.
  • Deprecated Annotation Interface Elements
    Annotation Interface Element
    Description
    org.springframework.data.cassandra.core.mapping.Column.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.PrimaryKey.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn.forceQuote()
    since 3.0. The column name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.Table.forceQuote()
    since 3.0. The table name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.
    org.springframework.data.cassandra.core.mapping.UserDefinedType.forceQuote()
    since 3.0. The type name gets converted into CqlIdentifier hence it no longer requires an indication whether the name should be quoted.

Copyright © 2011–2025 Pivotal Software, Inc.. All rights reserved.