|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.parse.SqlQueryParser
org.modeshape.jcr.query.JcrSql2QueryParser
public class JcrSql2QueryParser
An specialization of the SqlQueryParser
that uses a different language name that matches the JCR 2.0 specification.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.modeshape.graph.query.parse.SqlQueryParser |
---|
SqlQueryParser.SqlTokenizer |
Field Summary | |
---|---|
static String |
LANGUAGE
|
Constructor Summary | |
---|---|
JcrSql2QueryParser()
|
Methods inherited from class org.modeshape.graph.query.parse.SqlQueryParser |
---|
equals, parseComparisonOperator, parseConstraint, parseDynamicOperand, parseFrom, parseFullTextSearchExpression, parseInClause, parseJoinCondition, parseLimit, parseLiteral, parseLiteralValue, parseName, parseName, parseOrderBy, parseOrdering, parsePath, parsePropertyExistance, parsePropertyValue, parseQuery, parseQuery, parseQueryCommand, parseReferenceValue, parseSelect, parseSelectorName, parseStaticOperand, parseWhere, removeBracketsAndQuotes, removeBracketsAndQuotes, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String LANGUAGE
Constructor Detail |
---|
public JcrSql2QueryParser()
Method Detail |
---|
public String getLanguage()
getLanguage
in interface QueryParser
getLanguage
in class SqlQueryParser
QueryParser.getLanguage()
protected JcrNamedSelector parseNamedSelector(TokenStream tokens, TypeSystem typeSystem)
parseNamedSelector
in class SqlQueryParser
protected JcrSelectQuery query(Source source, Constraint constraint, List<? extends Ordering> orderings, List<? extends Column> columns, Limit limit, boolean distinct)
query
in class SqlQueryParser
SqlQueryParser.query(org.modeshape.graph.query.model.Source,
org.modeshape.graph.query.model.Constraint, java.util.List, java.util.List, org.modeshape.graph.query.model.Limit,
boolean)
protected JcrSetQuery setQuery(QueryCommand leftQuery, SetQuery.Operation operation, QueryCommand rightQuery, boolean all)
setQuery
in class SqlQueryParser
SqlQueryParser.setQuery(org.modeshape.graph.query.model.QueryCommand,
org.modeshape.graph.query.model.SetQuery.Operation, org.modeshape.graph.query.model.QueryCommand, boolean)
protected List<JcrColumn> columns(List<? extends Column> columns)
protected List<JcrOrdering> orderings(List<? extends Ordering> orderings)
protected SetQuery parseSetQuery(TokenStream tokens, QueryCommand leftHandSide, TypeSystem typeSystem)
parseSetQuery
in class SqlQueryParser
SqlQueryParser.parseSetQuery(org.modeshape.common.text.TokenStream,
org.modeshape.graph.query.model.QueryCommand, org.modeshape.graph.query.model.TypeSystem)
protected Length length(PropertyValue propertyValue)
length
in class SqlQueryParser
SqlQueryParser.length(org.modeshape.graph.query.model.PropertyValue)
protected JcrLowerCase lowerCase(DynamicOperand operand)
lowerCase
in class SqlQueryParser
SqlQueryParser.lowerCase(org.modeshape.graph.query.model.DynamicOperand)
protected JcrUpperCase upperCase(DynamicOperand operand)
upperCase
in class SqlQueryParser
SqlQueryParser.upperCase(org.modeshape.graph.query.model.DynamicOperand)
protected JcrNodeName nodeName(SelectorName selector)
nodeName
in class SqlQueryParser
SqlQueryParser.nodeName(org.modeshape.graph.query.model.SelectorName)
protected JcrNodeLocalName nodeLocalName(SelectorName selector)
nodeLocalName
in class SqlQueryParser
SqlQueryParser.nodeLocalName(org.modeshape.graph.query.model.SelectorName)
protected JcrNodeDepth nodeDepth(SelectorName selector)
nodeDepth
in class SqlQueryParser
SqlQueryParser.nodeDepth(org.modeshape.graph.query.model.SelectorName)
protected JcrNodePath nodePath(SelectorName selector)
nodePath
in class SqlQueryParser
SqlQueryParser.nodePath(org.modeshape.graph.query.model.SelectorName)
protected JcrEquiJoinCondition equiJoinCondition(SelectorName selector1, String property1, SelectorName selector2, String property2)
equiJoinCondition
in class SqlQueryParser
SqlQueryParser.equiJoinCondition(org.modeshape.graph.query.model.SelectorName,
java.lang.String, org.modeshape.graph.query.model.SelectorName, java.lang.String)
protected JcrDescendantNodeJoinCondition descendantNodeJoinCondition(SelectorName ancestor, SelectorName descendant)
descendantNodeJoinCondition
in class SqlQueryParser
SqlQueryParser.descendantNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName)
protected JcrChildNodeJoinCondition childNodeJoinCondition(SelectorName parent, SelectorName child)
childNodeJoinCondition
in class SqlQueryParser
SqlQueryParser.childNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName)
protected JcrSameNodeJoinCondition sameNodeJoinCondition(SelectorName selector1, SelectorName selector2)
sameNodeJoinCondition
in class SqlQueryParser
SqlQueryParser.sameNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName)
protected JcrSameNodeJoinCondition sameNodeJoinCondition(SelectorName selector1, SelectorName selector2, String path)
sameNodeJoinCondition
in class SqlQueryParser
SqlQueryParser.sameNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName, java.lang.String)
protected JcrLimit limit(int rowCount, int offset)
limit
in class SqlQueryParser
SqlQueryParser.limit(int, int)
protected JcrColumn column(SelectorName selectorName, String propertyName, String columnName)
column
in class SqlQueryParser
protected JcrJoin join(Source left, JoinType joinType, Source right, JoinCondition joinCondition)
join
in class SqlQueryParser
SqlQueryParser.join(org.modeshape.graph.query.model.Source,
org.modeshape.graph.query.model.JoinType, org.modeshape.graph.query.model.Source,
org.modeshape.graph.query.model.JoinCondition)
protected JcrNot not(Constraint constraint)
not
in class SqlQueryParser
SqlQueryParser.not(org.modeshape.graph.query.model.Constraint)
protected JcrAnd and(Constraint constraint1, Constraint constraint2)
and
in class SqlQueryParser
SqlQueryParser.and(org.modeshape.graph.query.model.Constraint,
org.modeshape.graph.query.model.Constraint)
protected JcrOr or(Constraint constraint1, Constraint constraint2)
or
in class SqlQueryParser
SqlQueryParser.or(org.modeshape.graph.query.model.Constraint,
org.modeshape.graph.query.model.Constraint)
protected JcrFullTextSearch fullTextSearch(SelectorName name, String propertyName, String expression, FullTextSearch.Term term)
fullTextSearch
in class SqlQueryParser
SqlQueryParser.fullTextSearch(org.modeshape.graph.query.model.SelectorName,
java.lang.String, java.lang.String, org.modeshape.graph.query.model.FullTextSearch.Term)
protected JcrSameNode sameNode(SelectorName name, String path)
sameNode
in class SqlQueryParser
SqlQueryParser.sameNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrChildNode childNode(SelectorName name, String path)
childNode
in class SqlQueryParser
SqlQueryParser.childNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrDescendantNode descendantNode(SelectorName name, String path)
descendantNode
in class SqlQueryParser
SqlQueryParser.descendantNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrComparison comparison(DynamicOperand left, Operator operator, StaticOperand right)
comparison
in class SqlQueryParser
SqlQueryParser.comparison(org.modeshape.graph.query.model.DynamicOperand,
org.modeshape.graph.query.model.Operator, org.modeshape.graph.query.model.StaticOperand)
protected JcrOrdering ordering(DynamicOperand operand, Order order)
ordering
in class SqlQueryParser
SqlQueryParser.ordering(org.modeshape.graph.query.model.DynamicOperand,
org.modeshape.graph.query.model.Order)
protected JcrPropertyExistence propertyExistence(SelectorName selector, String propertyName)
propertyExistence
in class SqlQueryParser
SqlQueryParser.propertyExistence(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrFullTextSearchScore fullTextSearchScore(SelectorName selector)
fullTextSearchScore
in class SqlQueryParser
SqlQueryParser.fullTextSearchScore(org.modeshape.graph.query.model.SelectorName)
protected Between between(DynamicOperand operand, StaticOperand lowerBound, StaticOperand upperBound, boolean lowerInclusive, boolean upperInclusive)
between
in class SqlQueryParser
SqlQueryParser.between(org.modeshape.graph.query.model.DynamicOperand,
org.modeshape.graph.query.model.StaticOperand, org.modeshape.graph.query.model.StaticOperand, boolean, boolean)
protected SetCriteria setCriteria(DynamicOperand operand, Collection<? extends StaticOperand> values)
setCriteria
in class SqlQueryParser
SqlQueryParser.setCriteria(org.modeshape.graph.query.model.DynamicOperand,
java.util.Collection)
protected JcrArithmeticOperand arithmeticOperand(DynamicOperand leftOperand, ArithmeticOperator operator, DynamicOperand rightOperand)
arithmeticOperand
in class SqlQueryParser
SqlQueryParser.arithmeticOperand(org.modeshape.graph.query.model.DynamicOperand,
org.modeshape.graph.query.model.ArithmeticOperator, org.modeshape.graph.query.model.DynamicOperand)
protected JcrPropertyValue propertyValue(SelectorName selector, String propertyName)
propertyValue
in class SqlQueryParser
SqlQueryParser.propertyValue(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrReferenceValue referenceValue(SelectorName selector)
referenceValue
in class SqlQueryParser
SqlQueryParser.referenceValue(org.modeshape.graph.query.model.SelectorName)
protected JcrReferenceValue referenceValue(SelectorName selector, String propertyName)
referenceValue
in class SqlQueryParser
SqlQueryParser.referenceValue(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrBindVariableName bindVariableName(String variableName)
bindVariableName
in class SqlQueryParser
SqlQueryParser.bindVariableName(java.lang.String)
protected Subquery subquery(QueryCommand queryCommand)
subquery
in class SqlQueryParser
SqlQueryParser.subquery(org.modeshape.graph.query.model.QueryCommand)
protected JcrLiteral literal(TypeSystem typeSystem, Object value) throws ValueFormatException
literal
in class SqlQueryParser
ValueFormatException
SqlQueryParser.literal(TypeSystem, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |