|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.engine.query.ParamLocationRecognizer
Implements a parameter parser recognizer specifically for the purpose of journaling parameter locations.
Constructor Summary | |
ParamLocationRecognizer()
|
Method Summary | |
void |
ejb3PositionalParameter(String name,
int position)
|
Map |
getNamedParameterLocationMap()
Returns the map of named parameter locations. |
List |
getOrdinalParameterLocationList()
Returns the list of ordinal parameter locations. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParamLocationRecognizer()
Method Detail |
public static ParamLocationRecognizer parseLocations(String query)
query
- The query to be parsed for parameter locations.
public Map getNamedParameterLocationMap()
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 ejb3PositionalParameter(String name, int position)
ejb3PositionalParameter
in interface ParameterParser.Recognizer
public void other(char character)
other
in interface ParameterParser.Recognizer
public void outParameter(int position)
outParameter
in interface ParameterParser.Recognizer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |