public class CassandraSchemaManager extends AbstractSchemaManager implements SchemaManager
ScheamOperationType.AbstractSchemaManager.SchemaOperationTypeclientFactory, conn, databaseName, dataStore, externalProperties, hosts, kunderaMetadata, operation, password, port, puMetadata, schemas, showQuery, tableInfos, userName| Constructor and Description |
|---|
CassandraSchemaManager(String clientFactory,
Map<String,Object> puProperties,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Instantiates a new cassandra schema manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
create_drop(List<TableInfo> tableInfos)
create_drop method creates schema and table for the list of tableInfos.
|
protected void |
create(List<TableInfo> tableInfos)
Creates schema and table for the list of tableInfos.
|
void |
dropSchema()
drop schema method drop the table from keyspace.
|
void |
exportSchema(String persistenceUnit,
List<TableInfo> schemas) |
protected boolean |
initiateClient()
initiate client method initiates the client.
|
protected void |
update(List<TableInfo> tableInfos)
update method update schema and table for the list of tableInfos.
|
protected void |
validate(List<TableInfo> tableInfos)
validate method validate schema and table for the list of tableInfos.
|
boolean |
validateEntity(Class clazz)
validates entity for CounterColumnType.
|
public CassandraSchemaManager(String clientFactory, Map<String,Object> puProperties, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
clientFactory - the configured client clientFactorypuProperties - the pu propertieskunderaMetadata - the kundera metadatapublic void exportSchema(String persistenceUnit, List<TableInfo> schemas)
exportSchema in interface SchemaManagerexportSchema in class AbstractSchemaManagerpublic void dropSchema()
dropSchema in interface SchemaManagerprotected void create_drop(List<TableInfo> tableInfos)
create_drop in class AbstractSchemaManagertableInfos - list of TableInfos.protected void create(List<TableInfo> tableInfos)
create in class AbstractSchemaManagertableInfos - list of TableInfos.protected void update(List<TableInfo> tableInfos)
update in class AbstractSchemaManagertableInfos - list of TableInfos.protected void validate(List<TableInfo> tableInfos)
validate in class AbstractSchemaManagertableInfos - list of TableInfos.protected boolean initiateClient()
initiateClient in class AbstractSchemaManagerpublic boolean validateEntity(Class clazz)
validateEntity in interface SchemaManagerclazz - the clazzCopyright © 2015. All Rights Reserved.