public interface CassandraMappingContext extends MappingContext<CassandraPersistentEntity<?>,CassandraPersistentProperty>
MappingContext for Cassandra.| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Class<?> type)
Returns whether this
CassandraMappingContext already contains a CassandraPersistentEntity for the
given type. |
CreateTableSpecification |
getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity)
Returns a
CreateTableSpecification for the given entity, including all mapping information. |
CassandraPersistentEntity<?> |
getExistingPersistentEntity(Class<?> type)
Returns the existing
CassandraPersistentEntity for the given Class. |
Collection<CassandraPersistentEntity<?>> |
getNonPrimaryKeyEntities()
Returns only those entities not representing primary key types.
|
Collection<CassandraPersistentEntity<?>> |
getPersistentEntities()
Returns only those entities that don't represent primary key types.
|
Collection<CassandraPersistentEntity<?>> |
getPersistentEntities(boolean includePrimaryKeyTypes)
Returns all persistent entities or only non-primary-key entities.
|
Collection<CassandraPersistentEntity<?>> |
getPrimaryKeyEntities()
Returns only those entities representing primary key types.
|
void |
setVerifier(CassandraPersistentEntityMetadataVerifier verifier)
Sets a verifier other than the
BasicCassandraPersistentEntityMetadataVerifier |
boolean |
usesTable(com.datastax.driver.core.TableMetadata table)
Returns whether this mapping context has any entities mapped to the given table.
|
getManagedTypes, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityForCollection<CassandraPersistentEntity<?>> getPersistentEntities()
getPersistentEntities in interface MappingContext<CassandraPersistentEntity<?>,CassandraPersistentProperty>getPersistentEntities(boolean)Collection<CassandraPersistentEntity<?>> getPersistentEntities(boolean includePrimaryKeyTypes)
includePrimaryKeyTypes - If true, returns all entities, including entities that represent primary
key types. If false, returns only entities that don't represent primary key types.Collection<CassandraPersistentEntity<?>> getPrimaryKeyEntities()
Collection<CassandraPersistentEntity<?>> getNonPrimaryKeyEntities()
getPersistentEntities(boolean)CreateTableSpecification getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity)
CreateTableSpecification for the given entity, including all mapping information.The - entity. May not be null.boolean usesTable(com.datastax.driver.core.TableMetadata table)
table - May not be null.CassandraPersistentEntity<?> getExistingPersistentEntity(Class<?> type)
CassandraPersistentEntity for the given Class. If it is not yet known to this
CassandraMappingContext, an IllegalArgumentException is thrown.type - The class of the existing persistent entity.boolean contains(Class<?> type)
CassandraMappingContext already contains a CassandraPersistentEntity for the
given type.void setVerifier(CassandraPersistentEntityMetadataVerifier verifier)
BasicCassandraPersistentEntityMetadataVerifierCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.