Class BasicCassandraPersistentEntity<T>

java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,CassandraPersistentProperty>
org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentEntity<T>
All Implemented Interfaces:
Iterable<CassandraPersistentProperty>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, CassandraPersistentEntity<T>, org.springframework.data.mapping.model.MutablePersistentEntity<T,CassandraPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,CassandraPersistentProperty>
Direct Known Subclasses:
BasicCassandraPersistentTupleEntity, CassandraUserTypePersistentEntity

public class BasicCassandraPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,CassandraPersistentProperty> implements CassandraPersistentEntity<T>, org.springframework.context.ApplicationContextAware
Cassandra specific BasicPersistentEntity implementation that adds Cassandra specific metadata.
Author:
Alex Shvid, Matthew T. Adams, John Blum, Mark Paluch
  • Constructor Details

    • BasicCassandraPersistentEntity

      public BasicCassandraPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
      Create a new BasicCassandraPersistentEntity given TypeInformation.
      Parameters:
      typeInformation - must not be null.
    • BasicCassandraPersistentEntity

      public BasicCassandraPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation, CassandraPersistentEntityMetadataVerifier verifier)
      Create a new BasicCassandraPersistentEntity with the given TypeInformation. Will default the table name to the entity's simple type name.
      Parameters:
      typeInformation - must not be null.
      verifier - must not be null.
    • BasicCassandraPersistentEntity

      protected BasicCassandraPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation, CassandraPersistentEntityMetadataVerifier verifier, Comparator<CassandraPersistentProperty> comparator)
      Create a new BasicCassandraPersistentEntity with the given TypeInformation. Will default the table name to the entity's simple type name.
      Parameters:
      typeInformation - must not be null.
      verifier - must not be null.
      comparator - must not be null.
      Since:
      2.1
  • Method Details