Class Max

  extended by org.apache.openjpa.kernel.exps.Val
      extended by org.apache.openjpa.kernel.exps.AggregateVal
          extended by org.apache.openjpa.kernel.exps.Max
All Implemented Interfaces:
Serializable, Value

 class Max
extends AggregateVal

Find the max.

Abe White

Constructor Summary
Max(Val val)
Method Summary
protected  Class getType(Class c)
          Return the type of this aggregate based on the value type.
protected  Object operate(Collection os, Class c)
          Aggregate the given values.
Methods inherited from class org.apache.openjpa.kernel.exps.AggregateVal
acceptVisit, eval, eval, getType, isAggregate, setImplicitType
Methods inherited from class org.apache.openjpa.kernel.exps.Val
evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isVariable, isXPath, setAlias, setMetaData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Max(Val val)
Constructor. Provide the value to maximize.

Method Detail


protected Class getType(Class c)
Description copied from class: AggregateVal
Return the type of this aggregate based on the value type.

Specified by:
getType in class AggregateVal


protected Object operate(Collection os,
                         Class c)
Description copied from class: AggregateVal
Aggregate the given values.

Specified by:
operate in class AggregateVal

Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.