|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.exps.Exp org.apache.openjpa.kernel.exps.CompareExpression
abstract class CompareExpression
Expression that compares two others.
Constructor Summary | |
---|---|
CompareExpression(Val val1,
Val val2)
Constructor. |
Method Summary | |
---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor. |
protected abstract boolean |
compare(Object o1,
Object o2)
Compare the two values. |
protected boolean |
eval(Collection candidates,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given group. |
protected boolean |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given context candidate and original candidate. |
Methods inherited from class org.apache.openjpa.kernel.exps.Exp |
---|
evaluate, evaluate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompareExpression(Val val1, Val val2)
Method Detail |
---|
protected boolean eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Exp
eval
in class Exp
protected boolean eval(Collection candidates, StoreContext ctx, Object[] params)
Exp
eval
in class Exp
protected abstract boolean compare(Object o1, Object o2)
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
acceptVisit
in class Exp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |