Package org.intermine.api.profile
Class TemplateQueryUpdate
- java.lang.Object
-
- org.intermine.api.profile.PathQueryUpdate
-
- org.intermine.api.profile.TemplateQueryUpdate
-
public class TemplateQueryUpdate extends PathQueryUpdate
A class to update template queries to match a new Data model.- Author:
- Daniela Butano
-
-
Field Summary
-
Fields inherited from class org.intermine.api.profile.PathQueryUpdate
isUpdated, newPathQuery, oldModel, pathQuery
-
-
Constructor Summary
Constructors Constructor Description TemplateQueryUpdate(ApiTemplate templateQuery, Model oldModel)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiTemplate
getNewTemplateQuery()
protected void
updateConstraints(java.util.Map<java.lang.String,java.lang.String> renamedClasses, java.util.Map<java.lang.String,java.lang.String> renamedFields)
Update the constraint with the renamed classes or/and fields-
Methods inherited from class org.intermine.api.profile.PathQueryUpdate
createPathConstraint, getPathUpdated, getUpdatedPathQuery, isUpdated, update
-
-
-
-
Constructor Detail
-
TemplateQueryUpdate
public TemplateQueryUpdate(ApiTemplate templateQuery, Model oldModel)
Constructor.- Parameters:
templateQuery
- The template to update.oldModel
- The old model that this template was build against.
-
-
Method Detail
-
getNewTemplateQuery
public ApiTemplate getNewTemplateQuery()
- Returns:
- The template query.
-
updateConstraints
protected void updateConstraints(java.util.Map<java.lang.String,java.lang.String> renamedClasses, java.util.Map<java.lang.String,java.lang.String> renamedFields) throws PathException
Description copied from class:PathQueryUpdate
Update the constraint with the renamed classes or/and fields- Overrides:
updateConstraints
in classPathQueryUpdate
- Parameters:
renamedClasses
- the renamed classesrenamedFields
- the renamed fields- Throws:
PathException
- if there is problem in some paths
-
-