Interface QueryTemplateParser.ParameterListener

Enclosing class:
QueryTemplateParser

public static interface QueryTemplateParser.ParameterListener
When parsing a template a listener can replace the parameter references, typically with question marks and collect the parameters in correct order.
Author:
Karl Eilebrecht
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleParameter(String id, String template, int fromIdx, int toIdx)
    Informs the listener about a parameter reference found in the template.
  • Method Details

    • handleParameter

      void handleParameter(String id, String template, int fromIdx, int toIdx)
      Informs the listener about a parameter reference found in the template.
      Parameters:
      id - identifies the parameter
      template - the currently parsed template
      fromIdx - start position in the template (inclusive)
      toIdx - end position of the reference in the template (exclusive)