Package de.calamanari.adl.sql
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 TypeMethodDescriptionvoidhandleParameter(String id, String template, int fromIdx, int toIdx) Informs the listener about a parameter reference found in the template.
-
Method Details
-
handleParameter
Informs the listener about a parameter reference found in the template.- Parameters:
id- identifies the parametertemplate- the currently parsed templatefromIdx- start position in the template (inclusive)toIdx- end position of the reference in the template (exclusive)
-