@InstallerGroup(value="schema") public abstract class AuditableSchemaInstaller extends Object
Convenience installer that creates the necessary columns for the default implementation
of the Auditable interface.
Supports multiple table names and will add the auditable columns to each of those tables.
AcrossLiquibaseInstaller,
AuditableEntity| Modifier | Constructor and Description |
|---|---|
|
AuditableSchemaInstaller() |
protected |
AuditableSchemaInstaller(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected DataSource |
getDataSource() |
protected String |
getDefaultSchema() |
protected com.foreach.across.core.database.SchemaConfiguration |
getSchemaConfiguration() |
protected abstract Collection<String> |
getTableNames() |
void |
install() |
protected void |
setBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
setDataSource(DataSource dataSource)
Override the dataSource this installer should use (defaults to the installer datasource otherwise).
|
protected void |
setDefaultSchema(String defaultSchema)
Sets the default Schema that will be used during the liquibase update
|
protected void |
setSchemaConfiguration(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration) |
public AuditableSchemaInstaller()
protected AuditableSchemaInstaller(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration)
protected abstract Collection<String> getTableNames()
protected com.foreach.across.core.database.SchemaConfiguration getSchemaConfiguration()
protected void setSchemaConfiguration(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration)
protected void setDefaultSchema(String defaultSchema)
This will override the defaultSchema configured in SchemaConfiguration.getDefaultSchema()
defaultSchema - The default db schema nameSpringLiquibase.setDefaultSchema(String)protected String getDefaultSchema()
protected DataSource getDataSource()
protected void setDataSource(DataSource dataSource)
dataSource - instance@Autowired protected void setBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
@InstallerMethod
public void install()
throws liquibase.exception.LiquibaseException
liquibase.exception.LiquibaseExceptionCopyright © 2020. All rights reserved.