public class ParamLocationRecognizer extends Object implements ParameterParser.Recognizer
| Modifier and Type | Class and Description |
|---|---|
static class |
ParamLocationRecognizer.NamedParameterDescription |
| Constructor and Description |
|---|
ParamLocationRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ParamLocationRecognizer.NamedParameterDescription> |
getNamedParameterDescriptionMap()
Returns the map of named parameter locations.
|
List<Integer> |
getOrdinalParameterLocationList()
Returns the list of ordinal parameter locations.
|
void |
jpaPositionalParameter(String name,
int position) |
void |
namedParameter(String name,
int position) |
void |
ordinalParameter(int position) |
void |
other(char character) |
void |
outParameter(int position) |
static ParamLocationRecognizer |
parseLocations(String query)
Convenience method for creating a param location recognizer and
initiating the parse.
|
public static ParamLocationRecognizer parseLocations(String query)
query - The query to be parsed for parameter locations.public Map<String,ParamLocationRecognizer.NamedParameterDescription> getNamedParameterDescriptionMap()
public List<Integer> getOrdinalParameterLocationList()
getOrdinalParameterLocationList().elementAt(n) represents the
location for the nth parameter.public void ordinalParameter(int position)
ordinalParameter in interface ParameterParser.Recognizerpublic void namedParameter(String name, int position)
namedParameter in interface ParameterParser.Recognizerpublic void jpaPositionalParameter(String name, int position)
jpaPositionalParameter in interface ParameterParser.Recognizerpublic void other(char character)
other in interface ParameterParser.Recognizerpublic void outParameter(int position)
outParameter in interface ParameterParser.RecognizerCopyright © 2018 JBoss by Red Hat. All rights reserved.