org.apache.torque.util.functions
Class Aggregate

java.lang.Object
  extended by org.apache.torque.util.functions.Aggregate

public class Aggregate
extends java.lang.Object

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.

Version:
$Id
Author:
Greg Monroe
See Also:
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

Aggregate

public Aggregate()


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.