Class QueryTemplateReferenceImpl

    • Field Detail

      • name

        protected String name
        The name of the query template.
      • variables

        protected Map<String,​Object> variables
        The variables of the query template.
    • Constructor Detail

      • QueryTemplateReferenceImpl

        public QueryTemplateReferenceImpl()
    • Method Detail

      • setName

        public void setName​(String name)
        Sets the name of the referenced query template.
        Specified by:
        setName in interface QueryTemplateReference
        Parameters:
        name - The template name.
      • setVariables

        public void setVariables​(Map<String,​Object> variables)
        Sets the values for the template variables.
        Specified by:
        setVariables in interface QueryTemplateReference
        Parameters:
        variables - A map of variable names to their values.
      • addVariable

        public void addVariable​(String name,
                                Object value)
        Adds or updates a single variable's value.
        Specified by:
        addVariable in interface QueryTemplateReference
        Parameters:
        name - The name of the variable.
        value - The value of the variable.