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>, EntityInformation<T, ID>, EntityMetadata<T>
public class MappingCassandraEntityInformation<T,ID>
extends 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 Summary
ConstructorsConstructorDescriptionMappingCassandraEntityInformation(CassandraPersistentEntity<T> entity, CassandraConverter converter) Create a newMappingCassandraEntityInformationfor the givenCassandraPersistentEntity. -
Method Summary
Modifier and TypeMethodDescription@Nullable IDReturns the attribute that the id will be persisted to.com.datastax.oss.driver.api.core.CqlIdentifierReturns the name of the table the entity shall be persisted to.Methods inherited from class PersistentEntityInformation
getJavaType, isNewMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInformation
getRequiredId, isNewMethods inherited from interface EntityMetadata
getJavaType
-
Constructor Details
-
MappingCassandraEntityInformation
public MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity, CassandraConverter converter) Create a newMappingCassandraEntityInformationfor the givenCassandraPersistentEntity.- Parameters:
entity- must not be null.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceEntityInformation<T,ID> - Overrides:
getIdin classPersistentEntityInformation<T,ID>
-
getIdType
- Specified by:
getIdTypein interfaceEntityInformation<T,ID> - Overrides:
getIdTypein classPersistentEntityInformation<T,ID>
-
getIdAttribute
Description copied from interface:CassandraEntityInformationReturns the attribute that the id will be persisted to.- Specified by:
getIdAttributein interfaceCassandraEntityInformation<T,ID> - Returns:
-
getTableName
public com.datastax.oss.driver.api.core.CqlIdentifier getTableName()Description copied from interface:CassandraEntityMetadataReturns the name of the table the entity shall be persisted to.- Specified by:
getTableNamein interfaceCassandraEntityMetadata<T>- Returns:
-