org.outerj.grouping.functions
Class GroupingFunctionFactory

java.lang.Object
  extended byorg.outerj.grouping.functions.GroupingFunctionFactory
All Implemented Interfaces:
FunctionFactory

public class GroupingFunctionFactory
extends java.lang.Object
implements FunctionFactory

An implementation of FunctionFactory supporting the summary functions. Other functions are delegated to the FunctionFactory passed in the constructor.


Field Summary
protected  FunctionFactory delegateFunctionFactory
           
protected static java.util.HashMap summaryFunctions
           
 
Constructor Summary
GroupingFunctionFactory(FunctionFactory delegateFunctionFactory)
           
 
Method Summary
 Expression createFunction(java.lang.String name)
          Returns null if there is no expression with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegateFunctionFactory

protected FunctionFactory delegateFunctionFactory

summaryFunctions

protected static java.util.HashMap summaryFunctions
Constructor Detail

GroupingFunctionFactory

public GroupingFunctionFactory(FunctionFactory delegateFunctionFactory)
Method Detail

createFunction

public Expression createFunction(java.lang.String name)
                          throws java.lang.Exception
Description copied from interface: FunctionFactory
Returns null if there is no expression with the given name.

Specified by:
createFunction in interface FunctionFactory
Throws:
java.lang.Exception