parse is responsible for parsing a
query string and recognizing tokens in relation to parameters (either
named, JPA-style, or ordinal) and providing callbacks about such
recognitions.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | parse(String
The string to be parsed/tokenized. sqlString, ParameterParser.The thing which handles recognition events. recognizerPerforms the actual parsing and tokenizing of the query string making appropriate callbacks to the given recognizer upon recognition of the various tokens. |
| public static boolean |
| ParameterParser | back to summary |
|---|---|
| private ParameterParser() Direct instantiation of ParameterParser disallowed. | |
| parse | back to summary |
|---|---|
| public static void parse(String sqlString, ParameterParser. Performs the actual parsing and tokenizing of the query string making appropriate callbacks to the given recognizer upon recognition of the various tokens. Note that currently, this only knows how to deal with a single output parameter (for callable statements). If we later add support for multiple output params, this, obviously, needs to change.
| |
| startsWithEscapeCallTemplate | back to summary |
|---|---|
| public static boolean startsWithEscapeCallTemplate(String sqlString) | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| jpaPositionalParameter | back to summary |
|---|---|
| public void jpaPositionalParameter(String name, int position) | |
| namedParameter | back to summary |
|---|---|
| public void namedParameter(String name, int position) | |
| ordinalParameter | back to summary |
|---|---|
| public void ordinalParameter(int position) | |
| other | back to summary |
|---|---|
| public void other(char character) | |
| outParameter | back to summary |
|---|---|
| public void outParameter(int position) | |