org.hibernate.engine.query
Class ParamLocationRecognizer
java.lang.Object
org.hibernate.engine.query.ParamLocationRecognizer
- ParameterParser.Recognizer
public class ParamLocationRecognizer
extends java.lang.Object
Implements a parameter parser recognizer specifically for the purpose
of journaling parameter locations.
getNamedParameterDescriptionMap
public Map getNamedParameterDescriptionMap()
Returns the map of named parameter locations. The map is keyed by
parameter name; the corresponding value is a (@link NamedParameterDescription}.
- The map of named parameter locations.
getOrdinalParameterLocationList
public List getOrdinalParameterLocationList()
Returns the list of ordinal parameter locations. The list elements
are Integers, representing the location for that given ordinal. Thus
getOrdinalParameterLocationList()
.elementAt(n) represents the
location for the nth parameter.
- The list of ordinal parameter locations.
parseLocations
public static ParamLocationRecognizer parseLocations(String query)
Convenience method for creating a param location recognizer and
initiating the parse.
query
- The query to be parsed for parameter locations.
- The generated recognizer, with journaled location info.