Class AuditableSchemaInstaller
java.lang.Object
com.foreach.across.modules.hibernate.installers.AuditableSchemaInstaller
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.
- Author:
- Andy Somers, Arne Vandamme
- See Also:
-
AcrossLiquibaseInstaller
AuditableEntity
-
Constructor Summary
ModifierConstructorDescriptionprotected
AuditableSchemaInstaller
(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSource
protected String
protected com.foreach.across.core.database.SchemaConfiguration
protected abstract Collection<String>
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 updateprotected void
setSchemaConfiguration
(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration)
-
Constructor Details
-
AuditableSchemaInstaller
public AuditableSchemaInstaller() -
AuditableSchemaInstaller
protected AuditableSchemaInstaller(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration)
-
-
Method Details
-
getTableNames
-
getSchemaConfiguration
protected com.foreach.across.core.database.SchemaConfiguration getSchemaConfiguration() -
setSchemaConfiguration
protected void setSchemaConfiguration(com.foreach.across.core.database.SchemaConfiguration schemaConfiguration) -
setDefaultSchema
Sets the default Schema that will be used during the liquibase updateThis will override the defaultSchema configured in
SchemaConfiguration.getDefaultSchema()
- Parameters:
defaultSchema
- The default db schema name- See Also:
-
SpringLiquibase.setDefaultSchema(String)
-
getDefaultSchema
- Returns:
- The db schema name that will be used as default schema during the liquibase update
-
getDataSource
-
setDataSource
Override the dataSource this installer should use (defaults to the installer datasource otherwise).- Parameters:
dataSource
- instance
-
setBeanFactory
@Autowired protected void setBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) -
install
@InstallerMethod public void install() throws liquibase.exception.LiquibaseException- Throws:
liquibase.exception.LiquibaseException
-