|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.util.functions.Aggregate
public class Aggregate
A container for classes that will generate SQL for the SQL99 Standard Aggregate functions. These can be used via the Criteria.addAsColumn method to produce SQL statements that can be called via the BasePeer.doSelect methods.
Note database servers that use non-standard function names can be supported by using the setFunction(String) method.
E.g., older MySQL servers use LEAST instead of MIN. This can be supported by creating a Aggregate.Min instance and then calling the setFunction("LEAST") method.
SummaryHelper
Nested Class Summary | |
---|---|
class |
Aggregate.AgregateFunction
The base class for all the standard aggregate function classes. |
class |
Aggregate.Avg
SQL99 Standard Average a column function. |
class |
Aggregate.Count
SQL99 Standard Count records function. |
class |
Aggregate.Max
SQL99 Standard maximum value of column function. |
class |
Aggregate.Min
SQL99 Standard Minimum value of column function. |
class |
Aggregate.Sum
SQL99 Standard sum column values function. |
Constructor Summary | |
---|---|
Aggregate()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Aggregate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |