org.apache.openjpa.kernel.exps
Class WhenCondition

java.lang.Object
  extended by org.apache.openjpa.kernel.exps.WhenCondition
All Implemented Interfaces:
Serializable, Expression

public class WhenCondition
extends Object

See Also:
Serialized Form

Method Summary
 void acceptVisit(ExpressionVisitor visitor)
          Accept a visit from a tree visitor.
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.
 boolean evaluate(Collection candidates, StoreContext ctx, Object[] params)
          Evaluate the expression for the given candidate group.
 boolean evaluate(Object candidate, Object orig, StoreContext ctx, Object[] params)
          Evaluate the expression for the given candidate.
 org.apache.openjpa.kernel.exps.Exp getExp()
           
 Val getVal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExp

public org.apache.openjpa.kernel.exps.Exp getExp()

getVal

public Val getVal()

acceptVisit

public void acceptVisit(ExpressionVisitor visitor)
Description copied from interface: Expression
Accept a visit from a tree visitor.

Specified by:
acceptVisit in interface Expression

evaluate

public final boolean evaluate(Object candidate,
                              Object orig,
                              StoreContext ctx,
                              Object[] params)
Evaluate the expression for the given candidate.


evaluate

public final boolean evaluate(Collection candidates,
                              StoreContext ctx,
                              Object[] params)
Evaluate the expression for the given candidate group.


eval

protected boolean eval(Object candidate,
                       Object orig,
                       StoreContext ctx,
                       Object[] params)
Evaluate the expression for the given context candidate and original candidate.


eval

protected boolean eval(Collection candidates,
                       StoreContext ctx,
                       Object[] params)
Evaluate the expression for the given group.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.