Interface LiquibaseTableNames

All Known Implementing Classes:
StandardLiquibaseTableNames

public interface LiquibaseTableNames
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(Database database)
    Drops the Liquibase-generated tables this modifier knows about.
    Given a database, return a list of Liquibase generated tables.
    int
    Returns the order in which modifiers should be run.
  • Method Details

    • getLiquibaseGeneratedTableNames

      List<String> getLiquibaseGeneratedTableNames(Database database)
      Given a database, return a list of Liquibase generated tables. This is commonly (but not limited to) tables like DATABASECHANGELOG and DATABASECHANGELOGLOCK.
    • destroy

      void destroy(Database database) throws LiquibaseException
      Drops the Liquibase-generated tables this modifier knows about.

      ADR-0005 (INT-2205 phase 2): the clause is widened from DatabaseException to LiquibaseException so a classified business/system failure raised deeper in the teardown chain (e.g. LockService.destroy()) can flow through unwrapped. Existing implementors may keep a narrower throws DatabaseException override unchanged (source-compatible) — ProLiquibaseTableNames does exactly that.

      Throws:
      LiquibaseException - if the teardown fails
    • getOrder

      int getOrder()
      Returns the order in which modifiers should be run. Modifiers with a higher order will run after modifiers with a lower order value.
      Returns:
      int