Package | Description |
---|---|
org.modeshape.jcr.query |
The Query API provides a mechanism for building and executing queries.
|
org.modeshape.jcr.query.xpath |
The components used to parse JCR XPath queries and translate them into equivalent JCR-SQL2 queries.
|
Modifier and Type | Class and Description |
---|---|
protected class |
QueryBuilder.LowerCaser
A specialized form of the
QueryBuilder.ConstraintBuilder that always wraps the generated constraint in a LowerCase
instance. |
protected class |
QueryBuilder.UpperCaser
A specialized form of the
QueryBuilder.ConstraintBuilder that always wraps the generated constraint in a UpperCase
instance. |
Modifier and Type | Field and Description |
---|---|
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.constraintBuilder |
Modifier and Type | Method and Description |
---|---|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.and()
Signal that the previous constraint clause be AND-ed together with another constraint clause that will be defined
immediately after this method call.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.CastAsRightHandSide.as(String type)
Define the right-hand side literal value cast as the specified type.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.CastAsUpperBoundary.as(String type)
Define the right-hand side literal value cast as the specified type.
|
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.buildLogicalConstraint() |
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.closeParen()
Complete the specification of a constraint clause, and return the builder for the parent constraint clause.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.hasProperty(String table,
String propertyName)
Define a constraint clause that the node within the named table has at least one value for the named property.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.is(Operator operator,
Object literalOrSubquery)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.is(Operator operator,
QueryCommand subquery)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.is(Operator operator,
Subquery subquery)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.isBelowPath(String descendantTable,
String ancestorPath)
Define a constraint clause that the node within the named table is a descendant of the node at the supplied path.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isBetween(Object lowerBoundLiteral,
Object upperBoundLiteral)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.isChild(String childTable,
String parentPath)
Define a constraint clause that the node within the named table is the child of the node at the supplied path.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be equivalent to the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be equivalent to the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isGreaterThan(Object literalOrSubquery)
Define the right-hand-side of the constraint to be greater than the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isGreaterThanOrEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be greater than or equal to the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isGreaterThanOrEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be greater than or equal to the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isGreaterThanVariable(String variableName)
Define the right-hand-side of the constraint to be greater than the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isIn(Iterable<Object> literals) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isIn(Object... literals) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isInSubquery(QueryCommand subquery) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isInSubquery(Subquery subquery) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLessThan(Object literalOrSubquery)
Define the right-hand-side of the constraint to be less than the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLessThanOrEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be less than or equal to the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLessThanOrEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be less than or equal to the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLessThanVariable(String variableName)
Define the right-hand-side of the constraint to be less than the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLike(Object literalOrSubquery)
Define the right-hand-side of the constraint to be LIKE the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isLikeVariable(String variableName)
Define the right-hand-side of the constraint to be LIKE the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isNotEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be not equal to the supplied literal value.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isNotEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be not equal to the value of the supplied variable.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.isSameNode(String table,
String asNodeAtPath)
Define a constraint clause that the node within the named table is the same node as that appearing at the supplied
path.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ComparisonBuilder.isVariable(Operator operator,
String variableName)
Define the right-hand-side of the constraint using the supplied operator.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(BigDecimal literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(BigDecimal literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(Binary literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(Binary literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(boolean literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(boolean literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(DateTime literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(DateTime literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(double literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(double literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(float literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(float literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(int literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(int literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(long literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(long literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(Name literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(Name literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(Path literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(Path literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(QueryCommand subquery)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(String literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(String literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(URI literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(URI literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.literal(UUID literal)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.literal(UUID literal)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.not()
Signal that the next constraint clause (defined immediately after this method) should be negated.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.openParen()
Simulate the use of an open parenthesis in the constraint.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.or()
Signal that the previous constraint clause be OR-ed together with another constraint clause that will be defined
immediately after this method call.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.search(String table,
String searchExpression)
Define a constraint clause that the node within the named table have at least one property that satisfies the full-text
search expression.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.search(String table,
String propertyName,
String searchExpression)
Define a constraint clause that the node within the named table have a value for the named property that satisfies the
full-text search expression.
|
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.ConstraintBuilder.setConstraint(Constraint constraint) |
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperCaser.setConstraint(Constraint constraint) |
protected QueryBuilder.ConstraintBuilder |
QueryBuilder.LowerCaser.setConstraint(Constraint constraint) |
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.subquery(QueryCommand subquery)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.subquery(Subquery subquery)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.RightHandSide.variable(String variableName)
Define the right-hand side of a comparison.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.UpperBoundary.variable(String variableName)
Define the upper boundary value of a range.
|
QueryBuilder.ConstraintBuilder |
QueryBuilder.where()
Begin the WHERE clause for this query by obtaining the constraint builder.
|
Modifier and Type | Method and Description |
---|---|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(BigDecimal literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(BigDecimal literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(boolean literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(boolean literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(DateTime literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(DateTime literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(double literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(double literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(int literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(int literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(long literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(long literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(Name literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(Name literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(Path literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(Path literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(String literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(String literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(URI literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(URI literal)
Define the upper boundary value of a range.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.RightHandSide.cast(UUID literal)
Define the right-hand side of a comparison.
|
QueryBuilder.CastAs<QueryBuilder.ConstraintBuilder> |
QueryBuilder.UpperBoundary.cast(UUID literal)
Define the upper boundary value of a range.
|
Constructor and Description |
---|
ComparisonBuilder(QueryBuilder.ConstraintBuilder constraintBuilder,
DynamicOperand left) |
ConstraintBuilder(QueryBuilder.ConstraintBuilder parent) |
LowerCaser(QueryBuilder.ConstraintBuilder delegate) |
UpperCaser(QueryBuilder.ConstraintBuilder delegate) |
Modifier and Type | Method and Description |
---|---|
protected String |
XPathToQueryTranslator.translateElementTest(XPath.ElementTest elementTest,
List<XPath.StepExpression> pathConstraint,
QueryBuilder.ConstraintBuilder where) |
protected boolean |
XPathToQueryTranslator.translatePathExpressionConstraint(XPath.PathExpression pathExrp,
QueryBuilder.ConstraintBuilder where,
String tableName) |
protected String |
XPathToQueryTranslator.translatePredicate(XPath.Component predicate,
String tableName,
QueryBuilder.ConstraintBuilder where) |
protected void |
XPathToQueryTranslator.translatePredicates(List<XPath.Component> predicates,
String tableName,
QueryBuilder.ConstraintBuilder where) |
protected String |
XPathToQueryTranslator.translateSource(String tableName,
List<XPath.StepExpression> path,
QueryBuilder.ConstraintBuilder where) |
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.