Class TemplateEntitiesToRelationChange
java.lang.Object
ch.tocco.nice2.userbase.impl.liquibase.TemplateEntitiesToRelationChange
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomTaskChange
public class TemplateEntitiesToRelationChange
extends Object
implements liquibase.change.custom.CustomTaskChange
this custom change is used to migrate the 'entities' field on template entities to the new module relation
the 'entities' field was a comma-separated list of entity names
the new '*rel*_module' relation is a n:n relation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(liquibase.database.Database database) void
setFileOpener
(liquibase.resource.ResourceAccessor resourceAccessor) void
setModuleTableName
(String moduleTableName) void
setTemplateTableField
(String templateTableField) void
setTemplateTableName
(String templateTableName) void
setTemplateToModuleTableName
(String templateToModuleTableName) void
setUp()
liquibase.exception.ValidationErrors
validate
(liquibase.database.Database database)
-
Constructor Details
-
TemplateEntitiesToRelationChange
public TemplateEntitiesToRelationChange()
-
-
Method Details
-
execute
public void execute(liquibase.database.Database database) throws liquibase.exception.CustomChangeException - Specified by:
execute
in interfaceliquibase.change.custom.CustomTaskChange
- Throws:
liquibase.exception.CustomChangeException
-
getConfirmationMessage
- Specified by:
getConfirmationMessage
in interfaceliquibase.change.custom.CustomChange
-
setUp
public void setUp() throws liquibase.exception.SetupException- Specified by:
setUp
in interfaceliquibase.change.custom.CustomChange
- Throws:
liquibase.exception.SetupException
-
setFileOpener
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) - Specified by:
setFileOpener
in interfaceliquibase.change.custom.CustomChange
-
validate
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database) - Specified by:
validate
in interfaceliquibase.change.custom.CustomChange
-
getTemplateTableName
-
setTemplateTableName
-
getModuleTableName
-
setModuleTableName
-
getTemplateTableField
-
setTemplateTableField
-
getTemplateToModuleTableName
-
setTemplateToModuleTableName
-