|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
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 literal)
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 literal)
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 literal)
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 literal)
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.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 literal)
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 literal)
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 literal)
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 literal)
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 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, Object literal)
operator
- the operator; may not be nullliteral
- the literal value
public QueryBuilder.ConstraintBuilder isBetween(Object lowerBoundLiteral, Object upperBoundLiteral)
lowerBoundLiteral
- the literal value that represents the lower bound of the range (inclusive)upperBoundLiteral
- the literal value that represents the upper bound of the range (inclusive)
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 literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isGreaterThan(Object literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isGreaterThanOrEqualTo(Object literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isLessThan(Object literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isLessThanOrEqualTo(Object literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isLike(Object literal)
literal
- the literal value
public QueryBuilder.ConstraintBuilder isNotEqualTo(Object literal)
literal
- the literal value
public QueryBuilder.LowerBoundary isBetween()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |