|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.QueryBuilder.ComparisonBuilder
public class QueryBuilder.ComparisonBuilder
An interface used to set the right-hand side of a constraint.
Field Summary | |
---|---|
protected QueryBuilder.ConstraintBuilder |
constraintBuilder
|
protected DynamicOperand |
left
|
Constructor Summary | |
---|---|
protected |
QueryBuilder.ComparisonBuilder(QueryBuilder.ConstraintBuilder constraintBuilder,
DynamicOperand left)
|
Method Summary | |
---|---|
protected StaticOperand |
adapt(Object literalOrSubquery)
|
QueryBuilder.RightHandSide |
is(Operator operator)
Define the operator that will be used in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
is(Operator operator,
Object literalOrSubquery)
Define the right-hand-side of the constraint using the supplied operator. |
QueryBuilder.ConstraintBuilder |
is(Operator operator,
QueryCommand subquery)
Define the right-hand-side of the constraint using the supplied operator. |
QueryBuilder.ConstraintBuilder |
is(Operator operator,
Subquery subquery)
Define the right-hand-side of the constraint using the supplied operator. |
QueryBuilder.LowerBoundary |
isBetween()
Define the constraint as a range between a lower boundary and an upper boundary. |
QueryBuilder.ConstraintBuilder |
isBetween(Object lowerBoundLiteral,
Object upperBoundLiteral)
Define the right-hand-side of the constraint using the supplied operator. |
QueryBuilder.RightHandSide |
isEqualTo()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be equivalent to the supplied literal value. |
QueryBuilder.ConstraintBuilder |
isEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be equivalent to the value of the supplied variable. |
QueryBuilder.RightHandSide |
isGreaterThan()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isGreaterThan(Object literalOrSubquery)
Define the right-hand-side of the constraint to be greater than the supplied literal value. |
QueryBuilder.RightHandSide |
isGreaterThanOrEqualTo()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isGreaterThanOrEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be greater than or equal to the supplied literal value. |
QueryBuilder.ConstraintBuilder |
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 |
isGreaterThanVariable(String variableName)
Define the right-hand-side of the constraint to be greater than the value of the supplied variable. |
QueryBuilder.ConstraintBuilder |
isIn(Iterable<Object> literals)
|
QueryBuilder.ConstraintBuilder |
isIn(Object... literals)
|
QueryBuilder.ConstraintBuilder |
isInSubquery(QueryCommand subquery)
|
QueryBuilder.ConstraintBuilder |
isInSubquery(Subquery subquery)
|
QueryBuilder.RightHandSide |
isLessThan()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isLessThan(Object literalOrSubquery)
Define the right-hand-side of the constraint to be less than the supplied literal value. |
QueryBuilder.RightHandSide |
isLessThanOrEqualTo()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isLessThanOrEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be less than or equal to the supplied literal value. |
QueryBuilder.ConstraintBuilder |
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 |
isLessThanVariable(String variableName)
Define the right-hand-side of the constraint to be less than the value of the supplied variable. |
QueryBuilder.RightHandSide |
isLike()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isLike(Object literalOrSubquery)
Define the right-hand-side of the constraint to be LIKE the supplied literal value. |
QueryBuilder.ConstraintBuilder |
isLikeVariable(String variableName)
Define the right-hand-side of the constraint to be LIKE the value of the supplied variable. |
QueryBuilder.RightHandSide |
isNotEqualTo()
Use the 'equal to' operator in the comparison, returning an interface that can be used to define the right-hand-side of the comparison. |
QueryBuilder.ConstraintBuilder |
isNotEqualTo(Object literalOrSubquery)
Define the right-hand-side of the constraint to be not equal to the supplied literal value. |
QueryBuilder.ConstraintBuilder |
isNotEqualToVariable(String variableName)
Define the right-hand-side of the constraint to be not equal to the value of the supplied variable. |
QueryBuilder.ConstraintBuilder |
isVariable(Operator operator,
String variableName)
Define the right-hand-side of the constraint using the supplied operator. |
QueryBuilder.ArithmeticBuilder |
minus()
Create a comparison object based upon the subtraction of the next DynamicOperand (created using the builder
returned from this method) from the the previously-constructed DynamicOperand to be created with the supplied builder. |
QueryBuilder.ArithmeticBuilder |
plus()
Create a comparison object based upon the addition of the previously-constructed DynamicOperand and the next
DynamicOperand to be created with the supplied builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DynamicOperand left
protected final QueryBuilder.ConstraintBuilder constraintBuilder
Constructor Detail |
---|
protected QueryBuilder.ComparisonBuilder(QueryBuilder.ConstraintBuilder constraintBuilder, DynamicOperand left)
Method Detail |
---|
public QueryBuilder.ConstraintBuilder isInSubquery(QueryCommand subquery)
public QueryBuilder.ConstraintBuilder isInSubquery(Subquery subquery)
public QueryBuilder.ConstraintBuilder isIn(Object... literals)
public QueryBuilder.ConstraintBuilder isIn(Iterable<Object> literals)
public QueryBuilder.ArithmeticBuilder plus()
DynamicOperand
and the next
DynamicOperand to be created with the supplied builder.
public QueryBuilder.ArithmeticBuilder minus()
DynamicOperand
(created using the builder
returned from this method) from the the previously-constructed DynamicOperand to be created with the supplied builder.
public QueryBuilder.RightHandSide is(Operator operator)
operator
- the operator; may not be null
public QueryBuilder.RightHandSide isEqualTo()
public QueryBuilder.RightHandSide isNotEqualTo()
public QueryBuilder.RightHandSide isGreaterThan()
public QueryBuilder.RightHandSide isGreaterThanOrEqualTo()
public QueryBuilder.RightHandSide isLessThan()
public QueryBuilder.RightHandSide isLessThanOrEqualTo()
public QueryBuilder.RightHandSide isLike()
public QueryBuilder.ConstraintBuilder isVariable(Operator operator, String variableName)
operator
- the operator; may not be nullvariableName
- the name of the variable
public QueryBuilder.ConstraintBuilder is(Operator operator, QueryCommand subquery)
operator
- the operator; may not be nullsubquery
- the subquery
public QueryBuilder.ConstraintBuilder is(Operator operator, Subquery subquery)
operator
- the operator; may not be nullsubquery
- the subquery
public QueryBuilder.ConstraintBuilder is(Operator operator, Object literalOrSubquery)
operator
- the operator; may not be nullliteralOrSubquery
- the literal value or subquery
protected StaticOperand adapt(Object literalOrSubquery)
public QueryBuilder.ConstraintBuilder isBetween(Object lowerBoundLiteral, Object upperBoundLiteral)
lowerBoundLiteral
- the literal value that represents the lower bound of the range (inclusive); may be a subqueryupperBoundLiteral
- the literal value that represents the upper bound of the range (inclusive); may be a subquery
public QueryBuilder.ConstraintBuilder isEqualToVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isGreaterThanVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isGreaterThanOrEqualToVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isLessThanVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isLessThanOrEqualToVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isLikeVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isNotEqualToVariable(String variableName)
variableName
- the name of the variable
public QueryBuilder.ConstraintBuilder isEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isGreaterThan(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isGreaterThanOrEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isLessThan(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isLessThanOrEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isLike(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.ConstraintBuilder isNotEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquery
public QueryBuilder.LowerBoundary isBetween()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |