public class GenerateUuid extends Object implements liquibase.change.custom.CustomTaskChange
UUID class to generate UUIDs for all rows in all tables in the tableNames
parameter. | Constructor and Description |
|---|
GenerateUuid() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(liquibase.database.Database database)
Does the work of adding UUIDs to all rows.
|
String |
getConfirmationMessage() |
void |
setColumnName(String columnName)
This is called by liquibase to set the parameter "columnName" onto this change.
|
void |
setFileOpener(liquibase.FileOpener fileOpener) |
void |
setIdExceptions(String idExceptions)
Way to specify the table id columns that don't follow the table_name.table_name_id pattern
|
void |
setTableNames(String tableNames)
This is called by liquibase to set the parameter "tableNames" onto this change.
|
void |
setUp()
Get the values of the parameters passed in and set them to the local variables on this class.
|
void |
validate(liquibase.database.Database database) |
public void execute(liquibase.database.Database database)
throws liquibase.exception.CustomChangeException,
liquibase.exception.UnsupportedChangeException
execute in interface liquibase.change.custom.CustomTaskChangeliquibase.exception.CustomChangeExceptionliquibase.exception.UnsupportedChangeExceptionCustomTaskChange.execute(liquibase.database.Database)public String getConfirmationMessage()
CustomChange.getConfirmationMessage()public void setFileOpener(liquibase.FileOpener fileOpener)
CustomChange.setFileOpener(liquibase.FileOpener)public void setUp()
throws liquibase.exception.SetupException
liquibase.exception.SetupExceptionCustomChange.setUp()public void validate(liquibase.database.Database database)
throws liquibase.exception.InvalidChangeDefinitionException
liquibase.exception.InvalidChangeDefinitionExceptionCustomChange.validate(liquibase.database.Database)public void setTableNames(String tableNames)
tableNames - the tableNames to setpublic void setColumnName(String columnName)
columnName - the columnName to setpublic void setIdExceptions(String idExceptions)
idExceptions - Copyright © 2018 OpenMRS LLC.. All Rights Reserved.