public class MigrateConceptReferenceTermChangeSet
extends java.lang.Object
implements liquibase.change.custom.CustomTaskChange
The terms are created only for a unique source and code.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONCEPT_MAP_TYPE |
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
MigrateConceptReferenceTermChangeSet() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
determineMapTypeId(java.lang.String comment,
java.util.Map<java.lang.String,java.lang.Integer> typesToIds)
Determines the map type based on the given comment.
|
void |
execute(liquibase.database.Database database) |
java.lang.String |
getConfirmationMessage() |
void |
setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) |
void |
setUp() |
liquibase.exception.ValidationErrors |
validate(liquibase.database.Database database) |
protected final org.apache.commons.logging.Log log
public static final java.lang.String DEFAULT_CONCEPT_MAP_TYPE
public MigrateConceptReferenceTermChangeSet()
public void execute(liquibase.database.Database database) throws liquibase.exception.CustomChangeException
execute
in interface liquibase.change.custom.CustomTaskChange
liquibase.exception.CustomChangeException
CustomTaskChange.execute(liquibase.database.Database)
protected java.lang.Integer determineMapTypeId(java.lang.String comment, java.util.Map<java.lang.String,java.lang.Integer> typesToIds)
comment
- typesToIds
- public java.lang.String getConfirmationMessage()
getConfirmationMessage
in interface liquibase.change.custom.CustomChange
CustomChange.getConfirmationMessage()
public void setUp() throws liquibase.exception.SetupException
setUp
in interface liquibase.change.custom.CustomChange
liquibase.exception.SetupException
CustomChange.setUp()
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
setFileOpener
in interface liquibase.change.custom.CustomChange
CustomChange.setFileOpener(liquibase.resource.ResourceAccessor)
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
validate
in interface liquibase.change.custom.CustomChange
CustomChange.validate(liquibase.database.Database)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.