Package org.hibernate.query.sql.internal
Class ParameterRecognizerImpl
- java.lang.Object
-
- org.hibernate.query.sql.internal.ParameterRecognizerImpl
-
- All Implemented Interfaces:
ParameterRecognizer
public class ParameterRecognizerImpl extends Object implements ParameterRecognizer
-
-
Constructor Summary
Constructors Constructor Description ParameterRecognizerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete()
Callback after all parsing is completeString
getAdjustedSqlString()
Map<String,QueryParameterImplementor<?>>
getNamedQueryParameters()
List<ParameterOccurrence>
getParameterList()
Map<Integer,QueryParameterImplementor<?>>
getPositionalQueryParameters()
void
jpaPositionalParameter(int position, int sourcePosition)
Called when a JPA-style named parameter is recognizedvoid
namedParameter(String name, int sourcePosition)
Called when a named parameter is recognizedvoid
ordinalParameter(int sourcePosition)
Called when an ordinal parameter is recognizedvoid
other(char character)
Called when a character that is not part of a parameter is recognized.
-
-
-
Method Detail
-
complete
public void complete()
Description copied from interface:ParameterRecognizer
Callback after all parsing is complete- Specified by:
complete
in interfaceParameterRecognizer
-
getNamedQueryParameters
public Map<String,QueryParameterImplementor<?>> getNamedQueryParameters()
-
getPositionalQueryParameters
public Map<Integer,QueryParameterImplementor<?>> getPositionalQueryParameters()
-
getParameterList
public List<ParameterOccurrence> getParameterList()
-
getAdjustedSqlString
public String getAdjustedSqlString()
-
ordinalParameter
public void ordinalParameter(int sourcePosition)
Description copied from interface:ParameterRecognizer
Called when an ordinal parameter is recognized- Specified by:
ordinalParameter
in interfaceParameterRecognizer
- Parameters:
sourcePosition
- The position within the query
-
namedParameter
public void namedParameter(String name, int sourcePosition)
Description copied from interface:ParameterRecognizer
Called when a named parameter is recognized- Specified by:
namedParameter
in interfaceParameterRecognizer
- Parameters:
name
- The recognized parameter namesourcePosition
- The position within the query
-
jpaPositionalParameter
public void jpaPositionalParameter(int position, int sourcePosition)
Description copied from interface:ParameterRecognizer
Called when a JPA-style named parameter is recognized- Specified by:
jpaPositionalParameter
in interfaceParameterRecognizer
- Parameters:
position
- The label (identifier) of the JPA-style parameter. e.g. for a parameter `?2`, the label is `2`sourcePosition
- The position within the query
-
other
public void other(char character)
Description copied from interface:ParameterRecognizer
Called when a character that is not part of a parameter is recognized.- Specified by:
other
in interfaceParameterRecognizer
- Parameters:
character
- The recognized character
-
-