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 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init()
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
-
Field Details
-
MASTER_CHANGELOG
- See Also:
-
DATABASE_CHANGELOG_TABLE_NAME
- See Also:
-
DATABASE_CHANGELOG_LOCK_TABLE_NAME
- See Also:
-
-
Constructor Details
-
CrowdSpringLiquibase
public CrowdSpringLiquibase()
-
-
Method Details
-
init
public static void init() -
setHibernateProperties
-
performUpdate
protected void performUpdate(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException - Overrides:
performUpdate
in classliquibase.integration.spring.SpringLiquibase
- Throws:
liquibase.exception.LiquibaseException
-