Package org.hibernate.query.sql.internal
Class ParameterParser
- java.lang.Object
-
- org.hibernate.query.sql.internal.ParameterParser
-
public class ParameterParser extends Object
The single available methodparse(java.lang.String, org.hibernate.query.sql.spi.ParameterRecognizer, boolean)
is responsible for parsing a native query string and recognizing tokens defining named of ordinal parameters and providing callbacks about each recognition.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
parse(String sqlString, ParameterRecognizer recognizer)
static void
parse(String sqlString, ParameterRecognizer recognizer, boolean nativeJdbcParametersIgnored)
Performs the actual parsing and tokenizing of the query string making appropriate callbacks to the given recognizer upon recognition of the various tokens.
-
-
-
Method Detail
-
parse
public static void parse(String sqlString, ParameterRecognizer recognizer, boolean nativeJdbcParametersIgnored) throws QueryException
Performs the actual parsing and tokenizing of the query string making appropriate callbacks to the given recognizer upon recognition of the various tokens.Note that currently, this only knows how to deal with a single output parameter (for callable statements). If we later add support for multiple output params, this, obviously, needs to change.
- Parameters:
sqlString
- The string to be parsed/tokenized.recognizer
- The thing which handles recognition events.nativeJdbcParametersIgnored
- Whether to ignore ordinal parameters in native queries or not.- Throws:
QueryException
- Indicates unexpected parameter conditions.
-
parse
public static void parse(String sqlString, ParameterRecognizer recognizer) throws QueryException
- Throws:
QueryException
-
-