void |
PhysicalDataModel.addNewTenantPartitions(IDatabaseAdapter adapter,
String schemaName,
int tenantId) |
Ensure that each partitioned table has a partition matching the given tenantId.
|
void |
PhysicalDataModel.addTenantPartitions(IDatabaseAdapter adapter,
String schemaName,
int tenantId,
int extentSizeKB) |
Make sure every tenant-partitioned table has a partition for the given
tenantId
|
void |
AlterSequenceStartWith.apply(IDatabaseAdapter target) |
|
void |
AlterSequenceStartWith.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
AlterTableAddColumn.apply(IDatabaseAdapter target) |
|
void |
AlterTableAddColumn.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
AlterTableIdentityCache.apply(IDatabaseAdapter target) |
|
void |
AlterTableIdentityCache.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
CreateIndex.apply(IDatabaseAdapter target) |
|
void |
CreateIndex.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
ForeignKeyConstraint.apply(String schemaName,
String name,
String tenantColumnName,
IDatabaseAdapter target) |
|
void |
FunctionDef.apply(IDatabaseAdapter target) |
|
void |
FunctionDef.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
IDatabaseObject.apply(IDatabaseAdapter target) |
Apply the DDL for this object to the target database
|
void |
IDatabaseObject.apply(Integer priorVersion,
IDatabaseAdapter target) |
Apply migration logic to bring the target database to the current level of this object
|
void |
IndexDef.apply(String schemaName,
String tableName,
String tenantColumnName,
IDatabaseAdapter target) |
Apply this object to the given database target
|
void |
NopObject.apply(IDatabaseAdapter target) |
|
void |
NopObject.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
ObjectGroup.apply(IDatabaseAdapter target) |
|
void |
ObjectGroup.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
PhysicalDataModel.apply(IDatabaseAdapter target) |
Apply the entire model to the target in order
|
void |
ProcedureDef.apply(IDatabaseAdapter target) |
|
void |
ProcedureDef.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
RowArrayType.apply(IDatabaseAdapter target) |
|
void |
RowArrayType.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
RowType.apply(IDatabaseAdapter target) |
|
void |
RowType.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
Sequence.apply(IDatabaseAdapter target) |
|
void |
Sequence.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
SessionVariableDef.apply(IDatabaseAdapter target) |
|
void |
SessionVariableDef.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
Table.apply(IDatabaseAdapter target) |
|
void |
Table.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
Tablespace.apply(IDatabaseAdapter target) |
|
void |
Tablespace.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
UniqueConstraint.apply(String schemaName,
String name,
String tenantColumnName,
IDatabaseAdapter target) |
|
void |
View.apply(IDatabaseAdapter target) |
|
void |
View.apply(Integer priorVersion,
IDatabaseAdapter target) |
|
void |
PhysicalDataModel.applyFunctions(IDatabaseAdapter adapter) |
Apply all the functions in the order in which they were added to the model
|
void |
PhysicalDataModel.applyGrants(IDatabaseAdapter target,
String groupName,
String username) |
Apply the grants for the given group to the user
|
void |
PhysicalDataModel.applyProcedures(IDatabaseAdapter adapter) |
Apply all the procedures in the order in which they were added to the model
|
void |
BaseObject.applyTx(IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
|
void |
DatabaseObject.applyTx(IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
|
void |
IDatabaseObject.applyTx(IDatabaseAdapter target,
ITransactionProvider cp,
IVersionHistoryService vhs) |
Apply the DDL, but within its own transaction
|
void |
NopObject.applyTx(IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
|
void |
BaseObject.applyVersion(IDatabaseAdapter target,
IVersionHistoryService vhs) |
Apply the change, but only if it has a newer version than we already have
recorded in the database
|
void |
DatabaseObject.applyVersion(IDatabaseAdapter target,
IVersionHistoryService vhs) |
Apply the change, but only if it has a newer version than we already have
recorded in the database
|
void |
IDatabaseObject.applyVersion(IDatabaseAdapter target,
IVersionHistoryService vhs) |
Apply the change, but only if it has a newer version than we already have
recorded in the database
|
void |
ObjectGroup.applyVersion(IDatabaseAdapter target,
IVersionHistoryService vhs) |
|
void |
PhysicalDataModel.applyWithHistory(IDatabaseAdapter target,
IVersionHistoryService vhs) |
Apply all the objects linearly, but using the version history service to determine
what's new and what already exists
|
ITaskGroup |
BaseObject.collect(ITaskCollector tc,
IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
|
ITaskGroup |
IDatabaseObject.collect(ITaskCollector tc,
IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
Collect the tasks into a dependency tree so that they can be
executed concurrently (but in the right order)
|
void |
PhysicalDataModel.collect(ITaskCollector tc,
IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
Collect all the database objects we know of, describing their
interdependencies so that the task collector implementation can
execute them in parallel.
|
ITaskGroup |
Tablespace.collect(ITaskCollector tc,
IDatabaseAdapter target,
ITransactionProvider tp,
IVersionHistoryService vhs) |
|
void |
PhysicalDataModel.detachTenantPartitions(IDatabaseAdapter adapter,
String schemaName,
int tenantId) |
remove the partition from each of the tenant-based tables
|
void |
AlterSequenceStartWith.drop(IDatabaseAdapter target) |
|
void |
AlterTableAddColumn.drop(IDatabaseAdapter target) |
|
void |
AlterTableIdentityCache.drop(IDatabaseAdapter target) |
|
void |
CreateIndex.drop(IDatabaseAdapter target) |
|
void |
FunctionDef.drop(IDatabaseAdapter target) |
|
void |
IDatabaseObject.drop(IDatabaseAdapter target) |
DROP this object from the target database
|
void |
IndexDef.drop(String schemaName,
IDatabaseAdapter target) |
Drop this index
|
void |
NopObject.drop(IDatabaseAdapter target) |
|
void |
ObjectGroup.drop(IDatabaseAdapter target) |
|
void |
PhysicalDataModel.drop(IDatabaseAdapter target) |
Drop the lot
|
void |
PhysicalDataModel.drop(IDatabaseAdapter target,
String tagGroup,
String tag) |
Drop the model from the target database.
|
void |
ProcedureDef.drop(IDatabaseAdapter target) |
|
void |
RowArrayType.drop(IDatabaseAdapter target) |
|
void |
RowType.drop(IDatabaseAdapter target) |
|
void |
Sequence.drop(IDatabaseAdapter target) |
|
void |
SessionVariableDef.drop(IDatabaseAdapter target) |
|
void |
Table.drop(IDatabaseAdapter target) |
|
void |
Tablespace.drop(IDatabaseAdapter target) |
|
void |
View.drop(IDatabaseAdapter target) |
|
void |
PhysicalDataModel.dropDetachedPartitions(IDatabaseAdapter adapter,
String schemaName,
int tenantId) |
Drop the tables generated by the removeTenantPartitions call
|
void |
PhysicalDataModel.dropForeignKeyConstraints(IDatabaseAdapter target,
String tagGroup,
String tag) |
Drop all foreign key constraints on tables in this model.
|
void |
PhysicalDataModel.dropTenantTablespace(IDatabaseAdapter adapter,
int tenantId) |
Drop the tablespace associated with the given tenant.
|
boolean |
Table.exists(IDatabaseAdapter target) |
return true if the table already exists in the target
|
void |
BaseObject.grant(IDatabaseAdapter target,
String groupName,
String toUser) |
|
void |
IDatabaseObject.grant(IDatabaseAdapter target,
String groupName,
String toUser) |
Grant the given privileges to the user
|
void |
ObjectGroup.grant(IDatabaseAdapter target,
String groupName,
String toUser) |
|
void |
Tablespace.grant(IDatabaseAdapter target,
String groupName,
String toUser) |
|
protected void |
AlterSequenceStartWith.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
AlterTableAddColumn.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
AlterTableIdentityCache.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
BaseObject.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
Internal method which can be override by different object types which may need
to call a different grant method on the adapter
|
protected void |
FunctionDef.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
ProcedureDef.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
Sequence.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|
protected void |
SessionVariableDef.grantGroupPrivileges(IDatabaseAdapter target,
Set<Privilege> group,
String toUser) |
|