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()If set to true, instead of executing migrations, will instead simply print the SQL that would be executed against the connection.booleanbooleanShould we run the tasks marked withTaskFlagEnum.HEAVYWEIGHT_SKIP_BY_DEFAULTmigrate()voidvoidsetCallbacks(List<IHapiMigrationCallback> theCallbacks) voidsetDryRun(boolean theDryRun) If set to true, instead of executing migrations, will instead simply print the SQL that would be executed against the connection.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
If set to true, instead of executing migrations, will instead simply print the SQL that would be executed against the connection.- Returns:
- A boolean indicating whether or not the migration should be a dry run
-
setDryRun
If set to true, instead of executing migrations, will instead simply print the SQL that would be executed against the connection. -
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
-