public class MappingCassandraEntityInformation<T,ID extends Serializable> extends AbstractEntityInformation<T,ID> implements CassandraEntityInformation<T,ID>
CassandraEntityInformation implementation using a CassandraPersistentEntity instance to lookup the
necessary information. Can be configured with a custom collection to be returned which will trump the one returned by
the CassandraPersistentEntity if given.| Constructor and Description |
|---|
MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity,
CassandraConverter converter)
Creates a new
MappingCassandraEntityInformation for the given CassandraPersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity) |
Class<ID> |
getIdType() |
CqlIdentifier |
getTableName()
Returns the name of the table the entity shall be persisted to.
|
boolean |
isPrimaryKeyEntity()
Return true if the persistent entity consists entirely of primary key properties (a single Id property,
composite primary key).
|
getJavaType, isNewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNewgetJavaTypepublic MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity, CassandraConverter converter)
MappingCassandraEntityInformation for the given CassandraPersistentEntity.entity - must not be null.public ID getId(T entity)
getId in interface EntityInformation<T,ID extends Serializable>public Class<ID> getIdType()
getIdType in interface EntityInformation<T,ID extends Serializable>public CqlIdentifier getTableName()
CassandraEntityMetadatagetTableName in interface CassandraEntityMetadata<T>public boolean isPrimaryKeyEntity()
CassandraEntityInformationisPrimaryKeyEntity in interface CassandraEntityInformation<T,ID extends Serializable>Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.