Package org.hibernate.query.sql.internal
Class SQLQueryParser
- java.lang.Object
- org.hibernate.query.sql.internal.SQLQueryParser
public classSQLQueryParserextendsObject
Substitutes escape sequences of form{alias},{alias.field}, and{alias.*}in a native SQL query.
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSQLQueryParser.ParserContext
Constructor Summary
Constructors Constructor Description SQLQueryParser(String queryString,SQLQueryParser.ParserContext context,SessionFactoryImplementor factory)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protectedStringgetOriginalQueryString()Stringprocess()booleanqueryHasAliases()protectedStringsubstituteBrackets(String sqlQuery)
Constructor Detail
SQLQueryParser
public SQLQueryParser(String queryString,SQLQueryParser.ParserContext context,SessionFactoryImplementor factory)
Method Detail
queryHasAliases
public boolean queryHasAliases()
getOriginalQueryString
protected String getOriginalQueryString()
process
public String process()
substituteBrackets
protected String substituteBrackets(String sqlQuery) throwsQueryException
- Throws:
QueryException