org.apache.openjpa.kernel.exps
Class WhenScalar

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

public class WhenScalar
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.
 Val getVal1()
           
 Val getVal2()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVal1

public Val getVal1()

getVal2

public Val getVal2()

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.