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() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getChangeLog() |
String |
getContexts() |
DataSource |
getDataSource() |
String |
getDefaultSchema() |
String |
getJndiBase() |
String |
getLabels() |
Map<String,String> |
getParameters() |
File |
getRollbackFile() |
List<String> |
getSchemas() |
boolean |
isDropFirst() |
boolean |
isShouldRun() |
void |
setChangeLog(String changeLog) |
void |
setContexts(String contexts) |
void |
setDataSource(DataSource dataSource) |
void |
setDefaultSchema(String defaultSchema) |
void |
setDropFirst(boolean dropFirst) |
void |
setJndiBase(String jndiBase) |
void |
setLabels(String labels) |
void |
setParameters(Map<String,String> parameters) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setRollbackFile(File rollbackFile) |
void |
setSchemas(List<String> schemas) |
void |
setShouldRun(boolean shouldRun) |
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 boolean isDropFirst()
public void setDropFirst(boolean dropFirst)
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 © 2018 Liquibase.org. All rights reserved.