|
||||||||||
| 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 QueryParsergetLanguage in class SqlQueryParserQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.length(org.modeshape.graph.query.model.PropertyValue)protected JcrLowerCase lowerCase(DynamicOperand operand)
lowerCase in class SqlQueryParserSqlQueryParser.lowerCase(org.modeshape.graph.query.model.DynamicOperand)protected JcrUpperCase upperCase(DynamicOperand operand)
upperCase in class SqlQueryParserSqlQueryParser.upperCase(org.modeshape.graph.query.model.DynamicOperand)protected JcrNodeName nodeName(SelectorName selector)
nodeName in class SqlQueryParserSqlQueryParser.nodeName(org.modeshape.graph.query.model.SelectorName)protected JcrNodeLocalName nodeLocalName(SelectorName selector)
nodeLocalName in class SqlQueryParserSqlQueryParser.nodeLocalName(org.modeshape.graph.query.model.SelectorName)protected JcrNodeDepth nodeDepth(SelectorName selector)
nodeDepth in class SqlQueryParserSqlQueryParser.nodeDepth(org.modeshape.graph.query.model.SelectorName)protected JcrNodePath nodePath(SelectorName selector)
nodePath in class SqlQueryParserSqlQueryParser.nodePath(org.modeshape.graph.query.model.SelectorName)
protected JcrEquiJoinCondition equiJoinCondition(SelectorName selector1,
String property1,
SelectorName selector2,
String property2)
equiJoinCondition in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.descendantNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName)
protected JcrChildNodeJoinCondition childNodeJoinCondition(SelectorName parent,
SelectorName child)
childNodeJoinCondition in class SqlQueryParserSqlQueryParser.childNodeJoinCondition(org.modeshape.graph.query.model.SelectorName,
org.modeshape.graph.query.model.SelectorName)
protected JcrSameNodeJoinCondition sameNodeJoinCondition(SelectorName selector1,
SelectorName selector2)
sameNodeJoinCondition in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.not(org.modeshape.graph.query.model.Constraint)
protected JcrAnd and(Constraint constraint1,
Constraint constraint2)
and in class SqlQueryParserSqlQueryParser.and(org.modeshape.graph.query.model.Constraint,
org.modeshape.graph.query.model.Constraint)
protected JcrOr or(Constraint constraint1,
Constraint constraint2)
or in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.sameNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrChildNode childNode(SelectorName name,
String path)
childNode in class SqlQueryParserSqlQueryParser.childNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrDescendantNode descendantNode(SelectorName name,
String path)
descendantNode in class SqlQueryParserSqlQueryParser.descendantNode(org.modeshape.graph.query.model.SelectorName,
java.lang.String)
protected JcrComparison comparison(DynamicOperand left,
Operator operator,
StaticOperand right)
comparison in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.ordering(org.modeshape.graph.query.model.DynamicOperand,
org.modeshape.graph.query.model.Order)
protected JcrPropertyExistence propertyExistence(SelectorName selector,
String propertyName)
propertyExistence in class SqlQueryParserSqlQueryParser.propertyExistence(org.modeshape.graph.query.model.SelectorName,
java.lang.String)protected JcrFullTextSearchScore fullTextSearchScore(SelectorName selector)
fullTextSearchScore in class SqlQueryParserSqlQueryParser.fullTextSearchScore(org.modeshape.graph.query.model.SelectorName)
protected Between between(DynamicOperand operand,
StaticOperand lowerBound,
StaticOperand upperBound,
boolean lowerInclusive,
boolean upperInclusive)
between in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.setCriteria(org.modeshape.graph.query.model.DynamicOperand,
java.util.Collection)
protected JcrArithmeticOperand arithmeticOperand(DynamicOperand leftOperand,
ArithmeticOperator operator,
DynamicOperand rightOperand)
arithmeticOperand in class SqlQueryParserSqlQueryParser.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 SqlQueryParserSqlQueryParser.propertyValue(org.modeshape.graph.query.model.SelectorName,
java.lang.String)protected JcrReferenceValue referenceValue(SelectorName selector)
referenceValue in class SqlQueryParserSqlQueryParser.referenceValue(org.modeshape.graph.query.model.SelectorName)
protected JcrReferenceValue referenceValue(SelectorName selector,
String propertyName)
referenceValue in class SqlQueryParserSqlQueryParser.referenceValue(org.modeshape.graph.query.model.SelectorName,
java.lang.String)protected JcrBindVariableName bindVariableName(String variableName)
bindVariableName in class SqlQueryParserSqlQueryParser.bindVariableName(java.lang.String)protected Subquery subquery(QueryCommand queryCommand)
subquery in class SqlQueryParserSqlQueryParser.subquery(org.modeshape.graph.query.model.QueryCommand)
protected JcrLiteral literal(TypeSystem typeSystem,
Object value)
throws ValueFormatException
literal in class SqlQueryParserValueFormatExceptionSqlQueryParser.literal(TypeSystem, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||