Class TemplateQueryUpdate


  • public class TemplateQueryUpdate
    extends PathQueryUpdate
    A class to update template queries to match a new Data model.
    Author:
    Daniela Butano
    • 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 class PathQueryUpdate
        Parameters:
        renamedClasses - the renamed classes
        renamedFields - the renamed fields
        Throws:
        PathException - if there is problem in some paths