Package org.apache.torque.util.functions
Class Max
- java.lang.Object
-
- org.apache.torque.util.functions.AggregateFunction
-
- org.apache.torque.util.functions.Max
-
- All Implemented Interfaces:
Column
,SQLFunction
public class Max extends AggregateFunction
SQL99 Standard max function.- Version:
- $Id: Max.java 1848281 2018-12-06 10:48:36Z tv $
-
-
Constructor Summary
Constructors Constructor Description Max(String sqlExpression)
Construct an MAX function class with an SQL expression to calculate the maximum from.Max(Column column)
Construct an MAX function class with the column to calculate the maximum from.Max(Column column, boolean distinct)
Construct an MAX function class with the column to calculate the maximum from and possibly a distinct modifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
Max
public Max(Column column)
Construct an MAX function class with the column to calculate the maximum from.- Parameters:
column
- the Column to calculate the maximum from.
-
Max
public Max(String sqlExpression)
Construct an MAX function class with an SQL expression to calculate the maximum from.- Parameters:
sqlExpression
- the SQL expression to calculate the maximum from.
-
Max
public Max(Column column, boolean distinct)
Construct an MAX function class with the column to calculate the maximum from and possibly a distinct modifier.- Parameters:
column
- the Column to calculate the maximum from.distinct
- whether to calculate the maximum from only distinct values.
-
-
Method Detail
-
setFunction
public void setFunction(String function)
This method cannot be called, an UnsupportedOperationException will always be thrown.- Overrides:
setFunction
in classAggregateFunction
- Parameters:
function
- disregarded.- Throws:
UnsupportedOperationException
- always.
-
-