Package ca.uhn.fhir.jpa.migrate
Class HapiMigrationStorageSvc
java.lang.Object
ca.uhn.fhir.jpa.migrate.HapiMigrationStorageSvc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate the migration table if it does not already existbooleandeleteLockRecord(String theLockDescription) diff(MigrationTaskList theTaskList) Returns a list of migration tasks that have not yet been successfully run against the databasefindFirstByPidAndNotDescription(Integer theLockPid, String theLockDescription) booleaninsertLockRecord(String theLockDescription) voidSave a migration task to the database
-
Field Details
-
UNKNOWN_VERSION
- See Also:
-
LOCK_TYPE
- See Also:
-
-
Constructor Details
-
HapiMigrationStorageSvc
-
-
Method Details
-
getMigrationTablename
-
diff
Returns a list of migration tasks that have not yet been successfully run against the database- Parameters:
theTaskList- the full list of tasks for this release- Returns:
- a list of tasks that have not yet been successfully run against the database
-
getLatestAppliedVersion
- Returns:
- the most recent version that was run against the database (used for logging purposes)
-
saveTask
Save a migration task to the database -
createMigrationTableIfRequired
Create the migration table if it does not already exist -
deleteLockRecord
- Parameters:
theLockDescription- value of the Description for the lock record- Returns:
- true if the record was successfully deleted
-
insertLockRecord
-
findFirstByPidAndNotDescription
public Optional<HapiMigrationEntity> findFirstByPidAndNotDescription(Integer theLockPid, String theLockDescription)
-