public abstract class AbstractSchemaManager extends Object
SchemaOperationType.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSchemaManager.SchemaOperationType
The Enum ScheamOperationType.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientFactory
The kundera_client variable.
|
protected ClientProperties.DataStore.Connection |
conn |
protected String |
databaseName
The database name variable.
|
protected ClientProperties.DataStore |
dataStore |
protected Map<String,Object> |
externalProperties |
protected String[] |
hosts
The host variable .
|
protected EntityManagerFactoryImpl.KunderaMetadata |
kunderaMetadata |
protected String |
operation
The operation variable.
|
protected String |
password |
protected String |
port
The port variable.
|
protected PersistenceUnitMetadata |
puMetadata
The pu metadata variable.
|
protected List<ClientProperties.DataStore.Schema> |
schemas |
protected boolean |
showQuery
for kundera.show property
|
protected List<TableInfo> |
tableInfos
The table infos variable .
|
protected String |
userName |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSchemaManager(String clientFactory,
Map<String,Object> externalProperties,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Initialise with configured client factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
create_drop(List<TableInfo> tableInfos)
Create_drop.
|
protected abstract void |
create(List<TableInfo> tableInfos)
Creates the.
|
protected void |
exportSchema(String persistenceUnit,
List<TableInfo> tables)
Export schema handles the handleOperation method.
|
private void |
handleOperations(List<TableInfo> tableInfos)
Handle operations.
|
protected abstract boolean |
initiateClient()
Initiate client to initialize with client specific schema.
|
private void |
readConfigProperties(PersistenceUnitMetadata puMetadata) |
protected abstract void |
update(List<TableInfo> tableInfos)
Update.
|
protected abstract void |
validate(List<TableInfo> tableInfos)
Validates the schema.
|
protected PersistenceUnitMetadata puMetadata
protected String port
protected String[] hosts
protected String clientFactory
protected String databaseName
protected String operation
protected boolean showQuery
protected List<ClientProperties.DataStore.Schema> schemas
protected ClientProperties.DataStore.Connection conn
protected ClientProperties.DataStore dataStore
protected String userName
protected String password
protected final EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata
protected AbstractSchemaManager(String clientFactory, Map<String,Object> externalProperties, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
clientFactory - specific client factory.externalProperties - protected void exportSchema(String persistenceUnit, List<TableInfo> tables)
hbase - private void readConfigProperties(PersistenceUnitMetadata puMetadata)
pu - protected abstract boolean initiateClient()
protected abstract void validate(List<TableInfo> tableInfos)
tableInfos - the table infosprotected abstract void update(List<TableInfo> tableInfos)
tableInfos - the table infosprotected abstract void create(List<TableInfo> tableInfos)
tableInfos - the table infosprotected abstract void create_drop(List<TableInfo> tableInfos)
tableInfos - the table infosCopyright © 2015. All Rights Reserved.