public class SchemaFactory extends Object
CreateUserTypeSpecification,
CreateTableSpecification,
CreateIndexSpecification,
CassandraMappingContext| Constructor and Description |
|---|
SchemaFactory(CassandraConverter converter)
Creates a new
SchemaFactory given CassandraConverter. |
SchemaFactory(MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext,
CustomConversions customConversions,
com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry)
|
public SchemaFactory(CassandraConverter converter)
SchemaFactory given CassandraConverter.converter - must not be null.public SchemaFactory(MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext, CustomConversions customConversions, com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry)
mappingContext - must not be null.customConversions - must not be null.codecRegistry - must not be null.public CreateTableSpecification getCreateTableSpecificationFor(Class<?> entityType)
CreateTableSpecification for the given entity, including all mapping information.entityType - must not be null.CreateTableSpecification derived from entityType.public CreateTableSpecification getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity)
CreateTableSpecification for the given entity, including all mapping information.entity - must not be null.CreateTableSpecification derived from CassandraPersistentEntity.public CreateTableSpecification getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName)
CreateTableSpecification for the given entity using table name, including
all mapping information.entity - must not be null.tableName - must not be null.public List<CreateIndexSpecification> getCreateIndexSpecificationsFor(Class<?> entityType)
index specifications derived from CassandraPersistentEntity.entityType - must not be null.CreateTableSpecification derived from entityType.public List<CreateIndexSpecification> getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity)
index specifications derived from CassandraPersistentEntity.entity - must not be null.public List<CreateIndexSpecification> getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName)
entity - must not be null.tableName - must not be null.public CreateUserTypeSpecification getCreateUserTypeSpecificationFor(CassandraPersistentEntity<?> entity)
CreateUserTypeSpecification for the given entity, including all mapping information.entity - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.