org.sormula.active.operation
Class SelectAvg<R extends ActiveRecord<R>,T>
java.lang.Object
org.sormula.active.operation.ActiveOperation<R,T>
org.sormula.active.operation.SelectAvg<R,T>
- Type Parameters:
R
- record typeT
- aggregate type
public class SelectAvg<R extends ActiveRecord<R>,T>
- extends ActiveOperation<R,T>
Delegate for selectAvg methods in Table
.
- Since:
- 1.7 and 2.1
- Author:
- Jeff Miller
Constructor Summary |
SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression)
|
SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectAvg
public SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression)
SelectAvg
public SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters)
operate
public T operate()
throws java.lang.Exception
- Description copied from class:
ActiveOperation
- Invoked by
ActiveOperation.execute()
to perform the operation. Subclasses must implement.
- Specified by:
operate
in class ActiveOperation<R extends ActiveRecord<R>,T>
- Returns:
- result of operation (Integer, List, etc.)
- Throws:
java.lang.Exception