Package ca.uhn.fhir.jpa.migrate
Class HapiMigrator
java.lang.Object
ca.uhn.fhir.jpa.migrate.HapiMigrator
-
Constructor Summary
ConstructorsConstructorDescriptionHapiMigrator(String theMigrationTableName, DataSource theDataSource, DriverTypeEnum theDriverType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected StringBuilderbuildExecutedStatementsString(MigrationResult theMigrationResult) voidclearMigrationLockWithUUID(String theUUID) Helper method to clear a lock with a given UUID.voidbooleanisDryRun()booleanbooleanShould we run the tasks marked withTaskFlagEnum.HEAVYWEIGHT_SKIP_BY_DEFAULTmigrate()voidvoidsetCallbacks(List<IHapiMigrationCallback> theCallbacks) voidsetDryRun(boolean theDryRun) voidsetNoColumnShrink(boolean theNoColumnShrink) voidsetRunHeavyweightSkippableTasks(boolean theRunHeavyweightSkippableTasks) Should we run the tasks marked withTaskFlagEnum.HEAVYWEIGHT_SKIP_BY_DEFAULT
-
Constructor Details
-
HapiMigrator
public HapiMigrator(String theMigrationTableName, DataSource theDataSource, DriverTypeEnum theDriverType)
-
-
Method Details
-
getDataSource
-
isDryRun
-
setDryRun
-
isRunHeavyweightSkippableTasks
Should we run the tasks marked withTaskFlagEnum.HEAVYWEIGHT_SKIP_BY_DEFAULT- Since:
- 7.4.0
-
setRunHeavyweightSkippableTasks
Should we run the tasks marked withTaskFlagEnum.HEAVYWEIGHT_SKIP_BY_DEFAULT- Since:
- 7.4.0
-
isNoColumnShrink
-
setNoColumnShrink
-
getDriverType
-
buildExecutedStatementsString
-
clearMigrationLockWithUUID
Helper method to clear a lock with a given UUID.- Parameters:
theUUID- the
-
migrate
-
addTasks
-
addTask
-
setCallbacks
-
removeAllTasksForUnitTest
-
createMigrationTableIfRequired
-