Methods Summary |
---|
public java.util.Map | getNamedParameterDescriptionMap()Returns the map of named parameter locations. The map is keyed by
parameter name; the corresponding value is a (@link NamedParameterDescription}.
return namedParameterDescriptions;
|
private org.hibernate.engine.query.ParamLocationRecognizer$NamedParameterDescription | getOrBuildNamedParameterDescription(java.lang.String name, boolean jpa)
NamedParameterDescription desc = ( NamedParameterDescription ) namedParameterDescriptions.get( name );
if ( desc == null ) {
desc = new NamedParameterDescription( jpa );
namedParameterDescriptions.put( name, desc );
}
return desc;
|
public java.util.List | getOrdinalParameterLocationList()Returns the list of ordinal parameter locations. The list elements
are Integers, representing the location for that given ordinal. Thus
{@link #getOrdinalParameterLocationList()}.elementAt(n) represents the
location for the nth parameter.
return ordinalParameterLocationList;
|
public void | jpaPositionalParameter(java.lang.String name, int position)
getOrBuildNamedParameterDescription( name, true ).add( position );
|
public void | namedParameter(java.lang.String name, int position)
getOrBuildNamedParameterDescription( name, false ).add( position );
|
public void | ordinalParameter(int position)
ordinalParameterLocationList.add( new Integer( position ) );
|
public void | other(char character)
// don't care...
|
public void | outParameter(int position)
// don't care...
|
public static org.hibernate.engine.query.ParamLocationRecognizer | parseLocations(java.lang.String query)Convenience method for creating a param location recognizer and
initiating the parse.
ParamLocationRecognizer recognizer = new ParamLocationRecognizer();
ParameterParser.parse( query, recognizer );
return recognizer;
|