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
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private String | |
| private String | |
| private String | |
| private DataSource | dataSource
Defines a single data source and several schemas for a multi-tenant environment. |
| private final List | |
| private String | |
| private boolean | |
| private String | jndiBase
Defines the location of data sources suitable for multi-tenant environment. |
| private String | |
| private String | |
| private String | |
| private Map | |
| private ResourceLoader | |
| private File | |
| private List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| public String | |
| public String | |
| public String | |
| public String | |
| public DataSource | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public Map | |
| public File | |
| public List | |
| private SpringLiquibase | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setResourceLoader(ResourceLoader
the ResourceLoader object to be used by this object resourceLoader)Implements org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through |
| public void | |
| public void | |
| public void |
| changeLog | back to summary |
|---|---|
| private String changeLog | |
| clearCheckSums | back to summary |
|---|---|
| private boolean clearCheckSums | |
| contexts | back to summary |
|---|---|
| private String contexts | |
| databaseChangeLogLockTable | back to summary |
|---|---|
| private String databaseChangeLogLockTable | |
| databaseChangeLogTable | back to summary |
|---|---|
| private String databaseChangeLogTable | |
| dataSource | back to summary |
|---|---|
| private DataSource dataSource Defines a single data source and several schemas for a multi-tenant environment. | |
| dataSources | back to summary |
|---|---|
| private final List<DataSource> dataSources | |
| defaultSchema | back to summary |
|---|---|
| private String defaultSchema | |
| dropFirst | back to summary |
|---|---|
| private boolean dropFirst | |
| jndiBase | back to summary |
|---|---|
| private String jndiBase Defines the location of data sources suitable for multi-tenant environment. | |
| labelFilter | back to summary |
|---|---|
| private String labelFilter | |
| liquibaseSchema | back to summary |
|---|---|
| private String liquibaseSchema | |
| liquibaseTablespace | back to summary |
|---|---|
| private String liquibaseTablespace | |
| parameters | back to summary |
|---|---|
| private Map<String, String> parameters | |
| resourceLoader | back to summary |
|---|---|
| private ResourceLoader resourceLoader | |
| rollbackFile | back to summary |
|---|---|
| private File rollbackFile | |
| schemas | back to summary |
|---|---|
| private List<String> schemas | |
| shouldRun | back to summary |
|---|---|
| private boolean shouldRun | |
| MultiTenantSpringLiquibase | back to summary |
|---|---|
| public MultiTenantSpringLiquibase() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() throws Exception Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. | |
| getChangeLog | back to summary |
|---|---|
| public String getChangeLog() | |
| getContexts | back to summary |
|---|---|
| public String getContexts() | |
| getDatabaseChangeLogLockTable | back to summary |
|---|---|
| public String getDatabaseChangeLogLockTable() | |
| getDatabaseChangeLogTable | back to summary |
|---|---|
| public String getDatabaseChangeLogTable() | |
| getDataSource | back to summary |
|---|---|
| public DataSource getDataSource() | |
| getDefaultSchema | back to summary |
|---|---|
| public String getDefaultSchema() | |
| getJndiBase | back to summary |
|---|---|
| public String getJndiBase() | |
| getLabelFilter | back to summary |
|---|---|
| public String getLabelFilter() | |
| getLabels | back to summary |
|---|---|
| public String getLabels()
Deprecated use | |
| getLiquibaseSchema | back to summary |
|---|---|
| public String getLiquibaseSchema() | |
| getLiquibaseTablespace | back to summary |
|---|---|
| public String getLiquibaseTablespace() | |
| getParameters | back to summary |
|---|---|
| public Map | |
| getRollbackFile | back to summary |
|---|---|
| public File getRollbackFile() | |
| getSchemas | back to summary |
|---|---|
| public List | |
| getSpringLiquibase | back to summary |
|---|---|
| private SpringLiquibase getSpringLiquibase(DataSource dataSource) | |
| isClearCheckSums | back to summary |
|---|---|
| public boolean isClearCheckSums() | |
| isDropFirst | back to summary |
|---|---|
| public boolean isDropFirst() | |
| isShouldRun | back to summary |
|---|---|
| public boolean isShouldRun() | |
| resolveDataSources | back to summary |
|---|---|
| private void resolveDataSources() throws NamingException | |
| runOnAllDataSources | back to summary |
|---|---|
| private void runOnAllDataSources() throws LiquibaseException | |
| runOnAllSchemas | back to summary |
|---|---|
| private void runOnAllSchemas() throws LiquibaseException | |
| setChangeLog | back to summary |
|---|---|
| public void setChangeLog(String changeLog) | |
| setClearCheckSums | back to summary |
|---|---|
| public void setClearCheckSums(boolean clearCheckSums) | |
| setContexts | back to summary |
|---|---|
| public void setContexts(String contexts) | |
| setDatabaseChangeLogLockTable | back to summary |
|---|---|
| public void setDatabaseChangeLogLockTable(String databaseChangeLogLockTable) | |
| setDatabaseChangeLogTable | back to summary |
|---|---|
| public void setDatabaseChangeLogTable(String databaseChangeLogTable) | |
| setDataSource | back to summary |
|---|---|
| public void setDataSource(DataSource dataSource) | |
| setDefaultSchema | back to summary |
|---|---|
| public void setDefaultSchema(String defaultSchema) | |
| setDropFirst | back to summary |
|---|---|
| public void setDropFirst(boolean dropFirst) | |
| setJndiBase | back to summary |
|---|---|
| public void setJndiBase(String jndiBase) | |
| setLabelFilter | back to summary |
|---|---|
| public void setLabelFilter(String labelFilter) | |
| setLabels | back to summary |
|---|---|
| public void setLabels(String labels)
Deprecated | |
| setLiquibaseSchema | back to summary |
|---|---|
| public void setLiquibaseSchema(String liquibaseSchema) | |
| setLiquibaseTablespace | back to summary |
|---|---|
| public void setLiquibaseTablespace(String liquibaseTablespace) | |
| setParameters | back to summary |
|---|---|
| public void setParameters(Map<String, String> parameters) | |
| setResourceLoader | back to summary |
|---|---|
| public void setResourceLoader(ResourceLoader resourceLoader) Implements org. Doc from org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through Invoked after population of normal bean properties but before an init callback
like InitializingBean's
| |
| setRollbackFile | back to summary |
|---|---|
| public void setRollbackFile(File rollbackFile) | |
| setSchemas | back to summary |
|---|---|
| public void setSchemas(List<String> schemas) | |
| setShouldRun | back to summary |
|---|---|
| public void setShouldRun(boolean shouldRun) | |