Package org.hibernate.loader.custom.sql
Class SQLQueryParser.ParameterSubstitutionRecognizer
- java.lang.Object
-
- org.hibernate.loader.custom.sql.SQLQueryParser.ParameterSubstitutionRecognizer
-
- All Implemented Interfaces:
ParameterParser.Recognizer
- Enclosing class:
- SQLQueryParser
public static class SQLQueryParser.ParameterSubstitutionRecognizer extends java.lang.Object implements ParameterParser.Recognizer
-
-
Constructor Summary
Constructors Constructor Description ParameterSubstitutionRecognizer(SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete()java.util.List<ParameterBinder>getParameterValueBinders()voidjpaPositionalParameter(int name, 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
-
-
-
Constructor Detail
-
ParameterSubstitutionRecognizer
public ParameterSubstitutionRecognizer(SessionFactoryImplementor factory)
-
-
Method Detail
-
outParameter
public void outParameter(int position)
Description copied from interface:ParameterParser.RecognizerCalled when an output parameter is recognized- Specified by:
outParameterin interfaceParameterParser.Recognizer- Parameters:
position- The position within the query
-
ordinalParameter
public void ordinalParameter(int position)
Description copied from interface:ParameterParser.RecognizerCalled when an ordinal parameter is recognized- Specified by:
ordinalParameterin interfaceParameterParser.Recognizer- Parameters:
position- The position within the query
-
jpaPositionalParameter
public void jpaPositionalParameter(int name, int position)Description copied from interface:ParameterParser.RecognizerCalled when a JPA-style named parameter is recognized- Specified by:
jpaPositionalParameterin interfaceParameterParser.Recognizer- Parameters:
name- The identifier (name) of the JPA-style parameterposition- The position within the query
-
namedParameter
public void namedParameter(java.lang.String name, int position)Description copied from interface:ParameterParser.RecognizerCalled when a named parameter is recognized- Specified by:
namedParameterin interfaceParameterParser.Recognizer- Parameters:
name- The recognized parameter nameposition- The position within the query
-
other
public void other(char character)
Description copied from interface:ParameterParser.RecognizerCalled when a character that is not a parameter (or part of a parameter definition) is recognized.- Specified by:
otherin interfaceParameterParser.Recognizer- Parameters:
character- The recognized character
-
getParameterValueBinders
public java.util.List<ParameterBinder> getParameterValueBinders()
-
complete
public void complete()
- Specified by:
completein interfaceParameterParser.Recognizer
-
-