public class QueryBuilder.ComparisonBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected QueryBuilder.ConstraintBuilder |
constraintBuilder |
protected DynamicOperand |
left |
Modifier | Constructor and Description |
---|---|
protected |
ComparisonBuilder(QueryBuilder.ConstraintBuilder constraintBuilder,
DynamicOperand left) |
Modifier and Type | Method and Description |
---|---|
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. |
protected final DynamicOperand left
protected final QueryBuilder.ConstraintBuilder constraintBuilder
protected ComparisonBuilder(QueryBuilder.ConstraintBuilder constraintBuilder, DynamicOperand left)
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 nullpublic 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 variablepublic QueryBuilder.ConstraintBuilder is(Operator operator, QueryCommand subquery)
operator
- the operator; may not be nullsubquery
- the subquerypublic QueryBuilder.ConstraintBuilder is(Operator operator, Subquery subquery)
operator
- the operator; may not be nullsubquery
- the subquerypublic QueryBuilder.ConstraintBuilder is(Operator operator, Object literalOrSubquery)
operator
- the operator; may not be nullliteralOrSubquery
- the literal value or subqueryprotected 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 subquerypublic QueryBuilder.ConstraintBuilder isEqualToVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isGreaterThanVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isGreaterThanOrEqualToVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isLessThanVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isLessThanOrEqualToVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isLikeVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isNotEqualToVariable(String variableName)
variableName
- the name of the variablepublic QueryBuilder.ConstraintBuilder isEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isGreaterThan(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isGreaterThanOrEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isLessThan(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isLessThanOrEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isLike(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.ConstraintBuilder isNotEqualTo(Object literalOrSubquery)
literalOrSubquery
- the literal value or a subquerypublic QueryBuilder.LowerBoundary isBetween()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.