Class LocalizeFieldChange
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.liquibase.LocalizeFieldChange
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomTaskChange
Used to localize a field after it has been created
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(liquibase.database.Database database) boolean
isRemove()
void
setColumnName
(String columnName) void
setColumnType
(String columnType) void
setFileOpener
(liquibase.resource.ResourceAccessor resourceAccessor) void
setRemoveFields
(String removeFields) void
setTableName
(String tableName) void
setUp()
liquibase.exception.ValidationErrors
validate
(liquibase.database.Database database)
-
Constructor Details
-
LocalizeFieldChange
public LocalizeFieldChange()
-
-
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
-
getColumnName
-
setColumnName
-
getTableName
-
setTableName
-
getColumnType
-
setColumnType
-
setRemoveFields
-
getRemoveFields
-
isRemove
public boolean isRemove()
-