public class GenericSqlParser.ParamsParser
extends org.fife.ui.rsyntaxtextarea.parser.AbstractParser
| Constructor and Description |
|---|
ParamsParser(String sql,
Map<String,Object> params,
Map<String,List<Integer>> paramMap,
List<String> outputParams,
Driver driver,
Pattern pattern)
Instantiates a new ParamsParser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSql()
Gets the sql.
|
org.fife.ui.rsyntaxtextarea.parser.ParseResult |
parse(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc,
String style) |
public ParamsParser(String sql,
Map<String,Object> params,
Map<String,List<Integer>> paramMap,
List<String> outputParams,
Driver driver,
Pattern pattern)
sql - the sqlparams - the bind variables.paramMap - the map containing bind variable name name as key and a
list of parameter indexes as a value.
For example:
select * from abc
where xyz = :xyz and mmm = :xyz
the map will contain "xyz" as a key and a list {1,2} as a value.
outputParams - the output paramsdriver - the driver * @param pattern the patternpattern - the patternCopyright © 2010-2020 Toolsverse. All Rights Reserved.