Package ca.uhn.fhir.jpa.migrate.dao
Class HapiMigrationDao
java.lang.Object
ca.uhn.fhir.jpa.migrate.dao.HapiMigrationDao
-
Constructor Summary
ConstructorsConstructorDescriptionHapiMigrationDao(DataSource theDataSource, DriverTypeEnum theDriverType, String theMigrationTablename) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleandeleteLockRecord(Integer theLockPid, String theLockDescription) Set<org.flywaydb.core.api.MigrationVersion>findAll()findFirstByPidAndNotDescription(Integer theLockPid, String theLockDescription) booleansave(HapiMigrationEntity theEntity)
-
Constructor Details
-
HapiMigrationDao
public HapiMigrationDao(DataSource theDataSource, DriverTypeEnum theDriverType, String theMigrationTablename)
-
-
Method Details
-
getMigrationTablename
-
fetchSuccessfulMigrationVersions
-
deleteAll
-
save
- Parameters:
theEntity- to save. If the pid is null, the next available pid will be set- Returns:
- true if any database records were changed
-
createMigrationTableIfRequired
-
findAll
-
deleteLockRecord
- Returns:
- true if the record was successfully deleted
-
findFirstByPidAndNotDescription
public Optional<HapiMigrationEntity> findFirstByPidAndNotDescription(Integer theLockPid, String theLockDescription)
-