Class CrowdSpringLiquibase

java.lang.Object
liquibase.integration.spring.SpringLiquibase
com.atlassian.crowd.util.persistence.liquibase.CrowdSpringLiquibase
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

public class CrowdSpringLiquibase extends liquibase.integration.spring.SpringLiquibase
This handles static initialization of our liquibase custom components. Should be initialized (via init() before any other liquibase references are made.

It can also be wired in the Spring context, to automatically execute the configured changelog. This is currently used in some test fixtures (production runtime uses SchemaHelper instead.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class liquibase.integration.spring.SpringLiquibase

    beanName, changeLog, clearCheckSums, contexts, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labelFilter, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, tag, testRollbackOnUpdate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    protected void
    performUpdate(liquibase.Liquibase liquibase)
     
    void
    setHibernateProperties(Properties hibernateProperties)
     

    Methods inherited from class liquibase.integration.spring.SpringLiquibase

    afterPropertiesSet, createDatabase, createLiquibase, createResourceOpener, getBeanName, getChangeLog, getContexts, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabelFilter, getLabels, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, isClearCheckSums, isDropFirst, isIgnoreClasspathPrefix, isTestRollbackOnUpdate, setBeanName, setChangeLog, setChangeLogParameters, setClearCheckSums, setContexts, setDatabaseChangeLogLockTable, setDatabaseChangeLogTable, setDataSource, setDefaultSchema, setDropFirst, setIgnoreClasspathPrefix, setLabelFilter, setLabels, setLiquibaseSchema, setLiquibaseTablespace, setResourceLoader, setRollbackFile, setShouldRun, setTag, setTestRollbackOnUpdate, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CrowdSpringLiquibase

      public CrowdSpringLiquibase()
  • Method Details

    • init

      public static void init()
    • setHibernateProperties

      public void setHibernateProperties(Properties hibernateProperties)
    • performUpdate

      protected void performUpdate(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
      Overrides:
      performUpdate in class liquibase.integration.spring.SpringLiquibase
      Throws:
      liquibase.exception.LiquibaseException