Package org.apache.torque.util.functions
Class Min
- java.lang.Object
-
- org.apache.torque.util.functions.AggregateFunction
-
- org.apache.torque.util.functions.Min
-
- All Implemented Interfaces:
Column
,SQLFunction
public class Min extends AggregateFunction
SQL99 Standard min function.- Version:
- $Id: Min.java 1848281 2018-12-06 10:48:36Z tv $
-
-
Constructor Summary
Constructors Constructor Description Min(String sqlExpression)
Construct an MIN function class with an SQL expression to calculate the minimum from.Min(Column column)
Construct an MIN function class with the column to calculate the minimum from.Min(Column column, boolean distinct)
Construct an MIN function class with the column to calculate the minimum 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
-
Min
public Min(Column column)
Construct an MIN function class with the column to calculate the minimum from.- Parameters:
column
- the Column to calculate the minimum from.
-
Min
public Min(String sqlExpression)
Construct an MIN function class with an SQL expression to calculate the minimum from.- Parameters:
sqlExpression
- the SQL expression to calculate the minimum from.
-
Min
public Min(Column column, boolean distinct)
Construct an MIN function class with the column to calculate the minimum from and possibly a distinct modifier.- Parameters:
column
- the Column to calculate the minimum from.distinct
- whether to calculate the minimum 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.
-
-