public class MappingCassandraEntityInformation<T,ID> extends PersistentEntityInformation<T,ID> implements CassandraEntityInformation<T,ID>
CassandraEntityInformation implementation using a CassandraPersistentEntity instance to lookup the
necessary information.| Constructor and Description |
|---|
MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity,
CassandraConverter converter)
Create a new
MappingCassandraEntityInformation for the given CassandraPersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity) |
String |
getIdAttribute()
Returns the attribute that the id will be persisted to.
|
Class<ID> |
getIdType() |
com.datastax.oss.driver.api.core.CqlIdentifier |
getTableName()
Returns the name of the table the entity shall be persisted to.
|
getJavaType, isNewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredId, isNewgetJavaTypepublic MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity, CassandraConverter converter)
MappingCassandraEntityInformation for the given CassandraPersistentEntity.entity - must not be null.@Nullable public ID getId(T entity)
getId in interface EntityInformation<T,ID>getId in class PersistentEntityInformation<T,ID>public Class<ID> getIdType()
getIdType in interface EntityInformation<T,ID>getIdType in class PersistentEntityInformation<T,ID>public String getIdAttribute()
CassandraEntityInformationgetIdAttribute in interface CassandraEntityInformation<T,ID>public com.datastax.oss.driver.api.core.CqlIdentifier getTableName()
CassandraEntityMetadatagetTableName in interface CassandraEntityMetadata<T>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.