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 newMappingCassandraEntityInformation
for the givenCassandraPersistentEntity
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute that the id will be persisted to.com.datastax.oss.driver.api.core.CqlIdentifier
Returns the name of the table the entity shall be persisted to.Methods inherited from class org.springframework.data.repository.core.support.PersistentEntityInformation
getJavaType, isNew
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getRequiredId, isNew
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
-
Constructor Details
-
MappingCassandraEntityInformation
public MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity, CassandraConverter converter) Create a newMappingCassandraEntityInformation
for the givenCassandraPersistentEntity
.- Parameters:
entity
- must not be null.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceEntityInformation<T,
ID> - Overrides:
getId
in classPersistentEntityInformation<T,
ID>
-
getIdType
- Specified by:
getIdType
in interfaceEntityInformation<T,
ID> - Overrides:
getIdType
in classPersistentEntityInformation<T,
ID>
-
getIdAttribute
Description copied from interface:CassandraEntityInformation
Returns the attribute that the id will be persisted to.- Specified by:
getIdAttribute
in interfaceCassandraEntityInformation<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 interfaceCassandraEntityMetadata<T>
- Returns:
-