Package com.tccc.kos.commons.db
Class BaseDatabaseMigrator
java.lang.Object
com.tccc.kos.commons.db.BaseDatabaseMigrator
- All Implemented Interfaces:
- DatabaseMigrator
Base class for database migration.
- Since:
- 1.0
- Version:
- 2024-02-16
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetJdbi()voidsetDataSource(DataSource dataSource) Sets the finalDataSourceto use after migration is complete.voidSets the finalJdbiinstance to use after migration is complete.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.db.DatabaseMigratorgetCurrentSchema, getMinimumMigrationSchema, getMinimumRetentionSchema, migrateToSchema, migrateToSchema, purgeNewerSchema
- 
Constructor Details- 
BaseDatabaseMigratorpublic BaseDatabaseMigrator()
 
- 
- 
Method Details- 
getDataSource
- 
setDataSourceDescription copied from interface:DatabaseMigratorSets the finalDataSourceto use after migration is complete. Override to gain access to the underlyingDataSourceinstead of theJdbiinstance.- Specified by:
- setDataSourcein interface- DatabaseMigrator
 
- 
getJdbi
- 
setJdbiDescription copied from interface:DatabaseMigratorSets the finalJdbiinstance to use after migration is complete. Override to gain access to the final Jdbi instance if the migrator is also the DAO object.- Specified by:
- setJdbiin interface- DatabaseMigrator
 
 
-