Package org.hibernate.engine.query.spi
Interface ParameterParser.Recognizer
-
- All Known Implementing Classes:
ParamLocationRecognizer,SQLQueryParser.ParameterSubstitutionRecognizer
- Enclosing class:
- ParameterParser
public static interface ParameterParser.RecognizerMaybe better named a Journaler. Essentially provides a callback contract for things that recognize parameters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete()voidjpaPositionalParameter(int identifier, int position)Called when a JPA-style named parameter is recognizedvoidnamedParameter(java.lang.String name, int position)Called when a named parameter is recognizedvoidordinalParameter(int position)Called when an ordinal parameter is recognizedvoidother(char character)Called when a character that is not a parameter (or part of a parameter definition) is recognized.voidoutParameter(int position)Called when an output parameter is recognized
-
-
-
Method Detail
-
outParameter
void outParameter(int position)
Called when an output parameter is recognized- Parameters:
position- The position within the query
-
ordinalParameter
void ordinalParameter(int position)
Called when an ordinal parameter is recognized- Parameters:
position- The position within the query
-
namedParameter
void namedParameter(java.lang.String name, int position)Called when a named parameter is recognized- Parameters:
name- The recognized parameter nameposition- The position within the query
-
jpaPositionalParameter
void jpaPositionalParameter(int identifier, int position)Called when a JPA-style named parameter is recognized- Parameters:
identifier- The identifier (name) of the JPA-style parameterposition- The position within the query
-
other
void other(char character)
Called when a character that is not a parameter (or part of a parameter definition) is recognized.- Parameters:
character- The recognized character
-
complete
void complete()
-
-