public class ParameterParser extends Object
parse(java.lang.String, org.hibernate.engine.query.spi.ParameterParser.Recognizer)
is responsible for parsing a
query string and recognizing tokens in relation to parameters (either
named, JPA-style, or ordinal) and providing callbacks about such
recognitions.Modifier and Type | Class and Description |
---|---|
static interface |
ParameterParser.Recognizer |
Modifier and Type | Method and Description |
---|---|
static void |
parse(String sqlString,
ParameterParser.Recognizer recognizer)
Performs the actual parsing and tokenizing of the query string making appropriate
callbacks to the given recognizer upon recognition of the various tokens.
|
static boolean |
startsWithEscapeCallTemplate(String sqlString) |
public static void parse(String sqlString, ParameterParser.Recognizer recognizer) throws QueryException
sqlString
- The string to be parsed/tokenized.recognizer
- The thing which handles recognition events.QueryException
- Indicates unexpected parameter conditions.public static boolean startsWithEscapeCallTemplate(String sqlString)
Copyright © 2018 JBoss by Red Hat. All rights reserved.