public class SpringMigrationExecutor<CHANGE_ENTRY extends io.changock.driver.api.entry.ChangeEntry> extends MigrationExecutor<CHANGE_ENTRY>
dependencyManager, driver, executionInProgress, metadata| Constructor and Description |
|---|
SpringMigrationExecutor(io.changock.driver.api.driver.ConnectionDriver driver,
DependencyManagerWithContext dependencyManager,
MigrationExecutorConfiguration config,
Map<String,Object> metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeAndLogChangeSet(String executionId,
Object changelogInstance,
ChangeSetItem changeSetItem) |
void |
executeMigration(SortedSet<ChangeLogItem> changeLogs) |
protected String |
getParameterName(Parameter parameter)
Return Parameter qualifier by checking javax.inject.Named and spring Qualifier annotations, in this order
|
void |
initializationAndValidation() |
createChangeEntryInstance, executeChangeSetMethod, executeInTransactionIfStrategyOrUsualIfNot, generateExecutionId, getParameter, isAlreadyExecuted, isExecutionInProgress, isThereAnyChangeSetItemToBeExecuted, processAllChangeLogs, processExceptionOnChangeSetExecution, processSingleChangeLog, processSingleChangeSetpublic SpringMigrationExecutor(io.changock.driver.api.driver.ConnectionDriver driver,
DependencyManagerWithContext dependencyManager,
MigrationExecutorConfiguration config,
Map<String,Object> metadata)
public void initializationAndValidation()
throws ChangockException
initializationAndValidation in class MigrationExecutor<CHANGE_ENTRY extends io.changock.driver.api.entry.ChangeEntry>ChangockExceptionpublic void executeMigration(SortedSet<ChangeLogItem> changeLogs)
executeMigration in class MigrationExecutor<CHANGE_ENTRY extends io.changock.driver.api.entry.ChangeEntry>@Transactional(propagation=REQUIRES_NEW) public void executeAndLogChangeSet(String executionId, Object changelogInstance, ChangeSetItem changeSetItem) throws IllegalAccessException, InvocationTargetException
executeAndLogChangeSet in class MigrationExecutor<CHANGE_ENTRY extends io.changock.driver.api.entry.ChangeEntry>IllegalAccessExceptionInvocationTargetExceptionprotected String getParameterName(Parameter parameter)
getParameterName in class MigrationExecutor<CHANGE_ENTRY extends io.changock.driver.api.entry.ChangeEntry>parameter - parameter to be checked.Copyright © 2020. All rights reserved.