org.tranql.ql
Class AggregateFunction

java.lang.Object
  extended byorg.tranql.ql.AbstractNode
      extended byorg.tranql.ql.AggregateFunction
All Implemented Interfaces:
Node, java.io.Serializable

public class AggregateFunction
extends AbstractNode

This node represents an aggregate function call. This is used within a select clause. This node expects one child.

Version:
$Revision: 173 $ $Date: 2005-02-20 16:42:56 +0100 (Sun, 20 Feb 2005) $
See Also:
Serialized Form

Nested Class Summary
static class AggregateFunction.FunctionType
           
 
Field Summary
static AggregateFunction.FunctionType AVG
           
static AggregateFunction.FunctionType COUNT
           
static AggregateFunction.FunctionType MAX
           
static AggregateFunction.FunctionType MIN
           
static AggregateFunction.FunctionType SUM
           
 
Constructor Summary
AggregateFunction(AggregateFunction.FunctionType type, boolean distinct)
           
 
Method Summary
 Node addChild(Node child)
           
 java.lang.String getFunction()
           
 AggregateFunction.FunctionType getFunctionType()
           
 Path getPath()
           
 java.lang.Class getType()
           
 boolean isDistinct()
           
 java.lang.Object visit(QueryVisitor visitor, java.lang.Object param)
           
 
Methods inherited from class org.tranql.ql.AbstractNode
getChild, getSibling, isOnlyChild, setSibling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVG

public static final AggregateFunction.FunctionType AVG

COUNT

public static final AggregateFunction.FunctionType COUNT

MAX

public static final AggregateFunction.FunctionType MAX

MIN

public static final AggregateFunction.FunctionType MIN

SUM

public static final AggregateFunction.FunctionType SUM
Constructor Detail

AggregateFunction

public AggregateFunction(AggregateFunction.FunctionType type,
                         boolean distinct)
Method Detail

getFunction

public java.lang.String getFunction()

getFunctionType

public AggregateFunction.FunctionType getFunctionType()

getType

public java.lang.Class getType()

isDistinct

public boolean isDistinct()

getPath

public Path getPath()

addChild

public Node addChild(Node child)
Specified by:
addChild in interface Node
Overrides:
addChild in class AbstractNode

visit

public java.lang.Object visit(QueryVisitor visitor,
                              java.lang.Object param)
                       throws QueryException
Throws:
QueryException


Copyright © -2006 The Codehaus. All Rights Reserved.