Class Val
java.lang.Object
org.apache.openjpa.kernel.exps.Val
- All Implemented Interfaces:
Serializable, Value
- Direct Known Subclasses:
CandidatePath, Coalesce, NullIf, SimpleCase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptVisit(ExpressionVisitor visitor) Accept a visit from a tree visitor.protected abstract Objecteval(Object candidate, Object orig, StoreContext ctx, Object[] params) Return this value for the given candidate.protected Collectioneval(Collection candidates, Object orig, StoreContext ctx, Object[] params) Return a list of values resulting from evaluating each given candidate.final Objectevaluate(Object candidate, Object orig, StoreContext ctx, Object[] params) Return this value as a projection on the given candidate.final Objectevaluate(Collection candidates, Object orig, StoreContext ctx, Object[] params) Return this value as an aggregate projection on the given group of candidates.getAlias()Return select item aliasReturn any associated persistent type.getName()getPath()Return 'this' concrete class if alias is set, otherwise nullbooleanReturn true if this value is an aggregate.booleanReturn true if this value is a variable.booleanisXPath()Return true if this value is an XML Path.voidSet select item aliasvoidsetMetaData(ClassMetaData meta) Associate a persistent type with this value.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Value
getType, setImplicitType
-
Constructor Details
-
Val
public Val()
-
-
Method Details
-
evaluate
Return this value as a projection on the given candidate. -
evaluate
Return this value as an aggregate projection on the given group of candidates. -
eval
Return this value for the given candidate. -
eval
Return a list of values resulting from evaluating each given candidate. By default, this implementation invokeseval(Object, Object, StoreContext, Object[])for each instance and packs the return value into a new list. Aggregates should override. -
getMetaData
Description copied from interface:ValueReturn any associated persistent type.- Specified by:
getMetaDatain interfaceValue
-
setMetaData
Description copied from interface:ValueAssociate a persistent type with this value.- Specified by:
setMetaDatain interfaceValue
-
isVariable
public boolean isVariable()Description copied from interface:ValueReturn true if this value is a variable.- Specified by:
isVariablein interfaceValue
-
isAggregate
public boolean isAggregate()Description copied from interface:ValueReturn true if this value is an aggregate.- Specified by:
isAggregatein interfaceValue
-
isXPath
-
acceptVisit
Description copied from interface:ValueAccept a visit from a tree visitor.- Specified by:
acceptVisitin interfaceValue
-
getAlias
-
setAlias
-
getSelectAs
Description copied from interface:ValueReturn 'this' concrete class if alias is set, otherwise null- Specified by:
getSelectAsin interfaceValue
-
getPath
-
getName
-