Class LiquibaseSchemaHelper

java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.LiquibaseSchemaHelper
All Implemented Interfaces:
SchemaHelper

public class LiquibaseSchemaHelper extends Object implements SchemaHelper
Handles creating and upgrading the schema by running liquibase changelogs.
  • Constructor Details

    • LiquibaseSchemaHelper

      public LiquibaseSchemaHelper(String configFile, Properties... partialProps)
    • LiquibaseSchemaHelper

      public LiquibaseSchemaHelper(String configFile, com.atlassian.config.db.HibernateConfig hibernateConfig)
  • Method Details

    • updateSchemaIfNeeded

      public void updateSchemaIfNeeded()
      Description copied from interface: SchemaHelper
      If there are any updates to the Schema needed, do them.
      Specified by:
      updateSchemaIfNeeded in interface SchemaHelper
    • createSchema

      public void createSchema()
      Description copied from interface: SchemaHelper
      Creates the schema in the database. This will try to drop and create the schema.
      Specified by:
      createSchema in interface SchemaHelper
    • dropSchema

      public void dropSchema()
    • databaseContainsExistingData

      public boolean databaseContainsExistingData(Connection connection)
      Specified by:
      databaseContainsExistingData in interface SchemaHelper