Class BaseDatabaseMigrator

java.lang.Object
com.tccc.kos.commons.db.BaseDatabaseMigrator
All Implemented Interfaces:
DatabaseMigrator

public abstract class BaseDatabaseMigrator extends Object implements DatabaseMigrator
Base class for database migration.
Since:
1.0
Version:
2024-02-16
  • Constructor Details

    • BaseDatabaseMigrator

      public BaseDatabaseMigrator()
  • Method Details

    • getDataSource

      public DataSource getDataSource()
    • setDataSource

      public void setDataSource(DataSource dataSource)
      Description copied from interface: DatabaseMigrator
      Sets the final DataSource to use after migration is complete. Override to gain access to the underlying DataSource instead of the Jdbi instance.
      Specified by:
      setDataSource in interface DatabaseMigrator
    • getJdbi

      public Jdbi getJdbi()
    • setJdbi

      public void setJdbi(Jdbi jdbi)
      Description copied from interface: DatabaseMigrator
      Sets the final Jdbi instance 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:
      setJdbi in interface DatabaseMigrator