| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.exps.Exp
org.apache.openjpa.kernel.exps.BindVariableExpression
class BindVariableExpression
Binds a variable to a collection.
| Constructor Summary | |
|---|---|
| BindVariableExpression(BoundVariable var,
                       Val val)Constructor. | |
| 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. | 
| protected  Collection | getCollection(Object values)Return a collection for the given object, produced by eval'ing the value of this expression. | 
|  BoundVariable | getVariable() | 
|  Collection | getVariableValues(Object candidate,
                  Object orig,
                  StoreContext ctx,
                  Object[] params)Return the possible values that variable can take. | 
| 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 BindVariableExpression(BoundVariable var,
                              Val val)
var - the bound variableval - the value the variable is bound to| Method Detail | 
|---|
public BoundVariable getVariable()
public Collection getVariableValues(Object candidate,
                                    Object orig,
                                    StoreContext ctx,
                                    Object[] params)
protected Collection getCollection(Object values)
eval'ing the value of this expression. Simply casts
 the object to a collection by default.
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 Exppublic void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit in interface ExpressionacceptVisit in class Exp| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||