Package org.apache.torque.util.functions
Class Avg
java.lang.Object
org.apache.torque.util.functions.AggregateFunction
org.apache.torque.util.functions.Avg
- All Implemented Interfaces:
Column,SQLFunction
SQL99 Standard Average function.
- Version:
- $Id: Avg.java 1848281 2018-12-06 10:48:36Z tv $
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an AVG function class with an SQL expression to average over.Construct an AVG function class with the column to average over.Construct an AVG function class with the column to average over and possibly a distinct modifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFunction(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
-
Constructor Details
-
Avg
Construct an AVG function class with the column to average over.- Parameters:
column- the Column to average over.
-
Avg
Construct an AVG function class with an SQL expression to average over.- Parameters:
sqlExpression- the SQL expression to average over.
-
Avg
Construct an AVG function class with the column to average over and possibly a distinct modifier.- Parameters:
column- the Column to average over.distinct- whether to average only over distinct values.
-
-
Method Details
-
setFunction
This method cannot be called, an UnsupportedOperationException will always be thrown.- Overrides:
setFunctionin classAggregateFunction- Parameters:
function- disregarded.- Throws:
UnsupportedOperationException- always.
-