Class MappingCassandraEntityInformation<T,ID>

java.lang.Object
org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID>
org.springframework.data.cassandra.repository.support.MappingCassandraEntityInformation<T,ID>
All Implemented Interfaces:
CassandraEntityInformation<T,ID>, CassandraEntityMetadata<T>, org.springframework.data.repository.core.EntityInformation<T,ID>, org.springframework.data.repository.core.EntityMetadata<T>

public class MappingCassandraEntityInformation<T,ID> extends org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID> implements CassandraEntityInformation<T,ID>
CassandraEntityInformation implementation using a CassandraPersistentEntity instance to lookup the necessary information.
Author:
Alex Shvid, Matthew T. Adams, Mark Paluch
  • Constructor Details

  • Method Details

    • getId

      @Nullable public ID getId(T entity)
      Specified by:
      getId in interface org.springframework.data.repository.core.EntityInformation<T,ID>
      Overrides:
      getId in class org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID>
    • getIdType

      public Class<ID> getIdType()
      Specified by:
      getIdType in interface org.springframework.data.repository.core.EntityInformation<T,ID>
      Overrides:
      getIdType in class org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID>
    • getIdAttribute

      public String getIdAttribute()
      Description copied from interface: CassandraEntityInformation
      Returns the attribute that the id will be persisted to.
      Specified by:
      getIdAttribute in interface CassandraEntityInformation<T,ID>
      Returns:
    • getTableName

      public com.datastax.oss.driver.api.core.CqlIdentifier getTableName()
      Description copied from interface: CassandraEntityMetadata
      Returns the name of the table the entity shall be persisted to.
      Specified by:
      getTableName in interface CassandraEntityMetadata<T>
      Returns: