|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.exps.Val
public abstract class Val
An in-memory representation of a Value
.
Constructor Summary | |
---|---|
Val()
|
Method Summary | |
---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor. |
protected Collection |
eval(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return a list of values resulting from evaluating each given candidate. |
protected abstract Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate. |
Object |
evaluate(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as an aggregate projection on the given group of candidates. |
Object |
evaluate(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as a projection on the given candidate. |
ClassMetaData |
getMetaData()
Return any associated persistent type. |
boolean |
isAggregate()
Return true if this value is an aggregate. |
boolean |
isVariable()
Return true if this value is a variable. |
void |
setMetaData(ClassMetaData meta)
Associate a persistent type with this value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.kernel.exps.Value |
---|
getType, setImplicitType |
Constructor Detail |
---|
public Val()
Method Detail |
---|
public final Object evaluate(Object candidate, Object orig, StoreContext ctx, Object[] params)
public final Object evaluate(Collection candidates, Object orig, StoreContext ctx, Object[] params)
protected abstract Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, Object[] params)
#eval(Object,Object,StoreContext,Map)
for
each instance and packs the return value into a new list. Aggregates
should override.
public ClassMetaData getMetaData()
Value
getMetaData
in interface Value
public void setMetaData(ClassMetaData meta)
Value
setMetaData
in interface Value
public boolean isVariable()
Value
isVariable
in interface Value
public boolean isAggregate()
Value
isAggregate
in interface Value
public void acceptVisit(ExpressionVisitor visitor)
Value
acceptVisit
in interface Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |