public class

ParamLocationRecognizer

extends Object
implements ParameterParser.Recognizer
java.lang.Object
   ↳ org.hibernate.engine.query.ParamLocationRecognizer

Class Overview

Implements a parameter parser recognizer specifically for the purpose of journaling parameter locations.

Summary

Nested Classes
class ParamLocationRecognizer.NamedParameterDescription  
Public Constructors
ParamLocationRecognizer()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.engine.query.ParameterParser.Recognizer

Public Constructors

public ParamLocationRecognizer ()

Public Methods

public Map getNamedParameterDescriptionMap ()

Returns the map of named parameter locations. The map is keyed by parameter name; the corresponding value is a (@link NamedParameterDescription}.

Returns
  • The map of named parameter locations.

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.

Returns
  • The list of ordinal parameter locations.

public void jpaPositionalParameter (String name, int position)

public void namedParameter (String name, int position)

public void ordinalParameter (int position)

public void other (char character)

public void outParameter (int position)

public static ParamLocationRecognizer parseLocations (String query)

Convenience method for creating a param location recognizer and initiating the parse.

Parameters
query The query to be parsed for parameter locations.
Returns
  • The generated recognizer, with journaled location info.