|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.condition.Condition
org.castor.cpa.persistence.sql.query.condition.Compare
public final class Compare
Compare 2 conditions with an operator.
Constructor Summary | |
---|---|
Compare(Expression left,
CompareOperator operator,
Expression right)
Constructor a compare condition that compares given left and rigth hand operand with given comparison operator. |
Method Summary | |
---|---|
Expression |
leftExpression()
Returns left operand of the comparison. |
Condition |
not()
Builder method to invert a condition. |
CompareOperator |
operator()
Returns operator of comparison. |
Expression |
rightExpression()
Returns right operand of the comparison. |
void |
toString(QueryContext ctx)
Append a string representation of the object to the given QueryContext. |
Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Condition |
---|
and, or |
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Compare(Expression left, CompareOperator operator, Expression right)
left
- Left operand of the comparison.operator
- Operator of comparison.right
- Right operand of the comparison.Method Detail |
---|
public Expression leftExpression()
public CompareOperator operator()
public Expression rightExpression()
public Condition not()
Condition
not
in class Condition
public void toString(QueryContext ctx)
QueryObject
toString
in class QueryObject
ctx
- QueryContext to append the string representation of the object to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |