public class MultiTenantSpringLiquibase extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware
SpringLiquibase per each
data source. All the parameters are the same as for SpringLiquibase
except of the data source definition - in this case it is a list of data
sources available under specified JNDI subtree. You have to define the
subtree with jndiBase property.SpringLiquibase instances.
<bean id="liquibase" class="liquibase.integration.spring.MultiTenantSpringLiquibase">
<property name="jndiBase" value="java:comp/env/jdbc/db" />
<property name="changeLog" value="classpath:db/migration/db-changelog.xml" />
</bean>
SpringLiquibase| Constructor and Description |
|---|
MultiTenantSpringLiquibase() |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getJndiBase()
public void setJndiBase(String jndiBase)
public String getChangeLog()
public void setChangeLog(String changeLog)
public String getContexts()
public void setContexts(String contexts)
public String getLabels()
public void setLabels(String labels)
public String getDefaultSchema()
public void setDefaultSchema(String defaultSchema)
public String getLiquibaseSchema()
public void setLiquibaseSchema(String liquibaseSchema)
public String getLiquibaseTablespace()
public void setLiquibaseTablespace(String liquibaseTablespace)
public String getDatabaseChangeLogTable()
public void setDatabaseChangeLogTable(String databaseChangeLogTable)
public String getDatabaseChangeLogLockTable()
public void setDatabaseChangeLogLockTable(String databaseChangeLogLockTable)
public boolean isDropFirst()
public void setDropFirst(boolean dropFirst)
public boolean isClearCheckSums()
public void setClearCheckSums(boolean clearCheckSums)
public boolean isShouldRun()
public void setShouldRun(boolean shouldRun)
public File getRollbackFile()
public void setRollbackFile(File rollbackFile)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic DataSource getDataSource()
public void setDataSource(DataSource dataSource)
Copyright © 2019 Liquibase.org. All rights reserved.