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 Details

    • TemplateEntitiesToRelationChange

      public TemplateEntitiesToRelationChange()
  • Method Details

    • execute

      public void execute(liquibase.database.Database database) throws liquibase.exception.CustomChangeException
      Specified by:
      execute in interface liquibase.change.custom.CustomTaskChange
      Throws:
      liquibase.exception.CustomChangeException
    • getConfirmationMessage

      public String getConfirmationMessage()
      Specified by:
      getConfirmationMessage in interface liquibase.change.custom.CustomChange
    • setUp

      public void setUp() throws liquibase.exception.SetupException
      Specified by:
      setUp in interface liquibase.change.custom.CustomChange
      Throws:
      liquibase.exception.SetupException
    • setFileOpener

      public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
      Specified by:
      setFileOpener in interface liquibase.change.custom.CustomChange
    • validate

      public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
      Specified by:
      validate in interface liquibase.change.custom.CustomChange
    • getTemplateTableName

      public String getTemplateTableName()
    • setTemplateTableName

      public void setTemplateTableName(String templateTableName)
    • getModuleTableName

      public String getModuleTableName()
    • setModuleTableName

      public void setModuleTableName(String moduleTableName)
    • getTemplateTableField

      public String getTemplateTableField()
    • setTemplateTableField

      public void setTemplateTableField(String templateTableField)
    • getTemplateToModuleTableName

      public String getTemplateToModuleTableName()
    • setTemplateToModuleTableName

      public void setTemplateToModuleTableName(String templateToModuleTableName)