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 |
getNamedParameterDescriptionMap()
Returns the map of named parameter locations.
|
List |
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 getNamedParameterDescriptionMap()
public List getOrdinalParameterLocationList()
getOrdinalParameterLocationList()
.elementAt(n) represents the
location for the nth parameter.public void ordinalParameter(int position)
ordinalParameter
in interface ParameterParser.Recognizer
public void namedParameter(String name, int position)
namedParameter
in interface ParameterParser.Recognizer
public void jpaPositionalParameter(String name, int position)
jpaPositionalParameter
in interface ParameterParser.Recognizer
public void other(char character)
other
in interface ParameterParser.Recognizer
public void outParameter(int position)
outParameter
in interface ParameterParser.Recognizer
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.