public class CassandraPersistentEntitySchemaDropper extends Object
CassandraMappingContext and CassandraPersistentEntity.
This class generates CQL to drop user types (UDT) and tables.Table,
UserDefinedType,
CassandraType| Constructor and Description |
|---|
CassandraPersistentEntitySchemaDropper(CassandraMappingContext mappingContext,
CassandraAdminOperations cassandraAdminOperations)
Create a new
CassandraPersistentEntitySchemaDropper for the given CassandraMappingContext and
CassandraAdminOperations. |
| Modifier and Type | Method and Description |
|---|---|
void |
dropTables(boolean dropUnused)
Drop tables that exist in the keyspace.
|
void |
dropUserTypes(boolean dropUnused)
Drop user types that exist in the keyspace.
|
public CassandraPersistentEntitySchemaDropper(CassandraMappingContext mappingContext, CassandraAdminOperations cassandraAdminOperations)
CassandraPersistentEntitySchemaDropper for the given CassandraMappingContext and
CassandraAdminOperations.mappingContext - must not be null.cassandraAdminOperations - must not be null.public void dropTables(boolean dropUnused)
dropUnused - true to drop unused tables. Table usage is determined by existing table mappings.public void dropUserTypes(boolean dropUnused)
dropUnused - true to drop unused types before creation. Type usage is determined from existing
mapped UserDefinedTypes and UDT names on field
specifications.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.