|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An aggregate listener aggregates data produced by a JDOQL query.
Method Summary | |
Object |
evaluate(Collection args,
Class[] argClasses,
Collection candidates,
KodoPersistenceManager pm)
Return the value of this aggregate. |
boolean |
expectsArguments()
Return whether this function expects to act on arguments. |
String |
getTag()
Return the tag that this listener listens for. |
Class |
getType(Class[] argClasses)
Return the expected type of the result of this listener. |
Method Detail |
public String getTag()
public boolean expectsArguments()
count()
.public Object evaluate(Collection args, Class[] argClasses, Collection candidates, KodoPersistenceManager pm)
args
- for each candidate, the value of the arguments to
the function; will be null if this aggregate does
not expect an argument; if this function has
multiple arguments, each element will be an arrayargClasses
- the expected class of each argument elementcandidates
- the candidate objects being evaluatedpm
- a persistence manager to use if neededJDOUserException
- if this aggregate does not support
in-memory operationpublic Class getType(Class[] argClasses)
argClasses
- the expected classes of the argument, or null if
no arguments
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |