public class JcrQomQueryParser extends JcrSql2QueryParser
The JCR 2.0 specification does not explicitly define a textual query language or grammar for the Query Object Model (the
grammar in the specification is written more in terms of the code of a Java-like language). However, per the Section 6.9 of the
JCR 2.0 specification, the QueryManager.createQuery(String, String)
method
"is used for languages that are string-based (i.e., most languages, such as JCR-SQL2) as well as for the for the string serializations of non-string-based languages (such as JCR- JQOM)"Since the string serialization (that is, the
toString()
form) of our
QueryCommand and related abstract query model objects are in fact equivalent to JCR-SQL2, this parser simply extends the
JcrSql2QueryParser
.
BasicSqlQueryParser.SqlTokenizer
Constructor and Description |
---|
JcrQomQueryParser() |
Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
Get the name of the language that this parser is able to understand.
|
literal
and, arithmeticOperand, between, bindVariableName, cast, childCount, childNode, childNodeJoinCondition, column, comparison, descendantNode, descendantNodeJoinCondition, equals, equiJoinCondition, fullTextSearch, fullTextSearch, fullTextSearchScore, hashCode, join, length, limit, lowerCase, nodeDepth, nodeId, nodeLocalName, nodeName, nodePath, not, or, ordering, parseBindVariableName, parseComparisonOperator, parseConstraint, parseDynamicOperand, parseFrom, parseFullTextSearchExpression, parseInClause, parseJoinCondition, parseLimit, parseLiteral, parseLiteralValue, parseName, parseName, parseNamedSelector, parseOrderBy, parseOrdering, parsePath, parsePropertyExistance, parsePropertyValue, parseQuery, parseQuery, parseQueryCommand, parseReferenceValue, parseSelect, parseSelectorName, parseSetQuery, parseStaticOperand, parseWhere, propertyExistence, propertyValue, query, referenceValue, referenceValue, removeBracketsAndQuotes, removeBracketsAndQuotes, sameNode, sameNodeJoinCondition, sameNodeJoinCondition, setCriteria, setQuery, subquery, toString, upperCase
public static final String LANGUAGE
public String getLanguage()
QueryParser
getLanguage
in interface QueryParser
getLanguage
in class JcrSql2QueryParser
QueryParser.getLanguage()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.