|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.util.functions.AggregateFunction
org.apache.torque.util.functions.Avg
public class Avg
SQL99 Standard Average function.
Constructor Summary | |
---|---|
Avg(Column column)
Construct an AVG function class with the column to average over. |
|
Avg(Column column,
boolean distinct)
Construct an AVG function class with the column to average over and possibly a distinct modifier. |
|
Avg(String sqlExpression)
Construct an AVG function class with an SQL expression to average over. |
Method Summary | |
---|---|
void |
setFunction(String function)
This method cannot be called, an UnsupportedOperationException will always be thrown. |
Methods inherited from class org.apache.torque.util.functions.AggregateFunction |
---|
getArgument, getArguments, getColumn, getColumnName, getFullTableName, getFunction, getSchemaName, getSqlExpression, getTableName, isDistinct, setArguments, setColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Avg(Column column)
column
- the Column to average over.public Avg(String sqlExpression)
sqlExpression
- the SQL expression to average over.public Avg(Column column, boolean distinct)
column
- the Column to average over.distinct
- whether to average only over distinct values.Method Detail |
---|
public void setFunction(String function)
setFunction
in class AggregateFunction
function
- disregarded.
UnsupportedOperationException
- always.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |