org.gibello.zql
Class ZGroupBy

java.lang.Object
  extended by org.gibello.zql.ZGroupBy
All Implemented Interfaces:
java.io.Serializable

public class ZGroupBy
extends java.lang.Object
implements java.io.Serializable

ZGroupBy: an SQL GROUP BY...HAVING clause

See Also:
Serialized Form

Constructor Summary
ZGroupBy(java.util.Vector exps)
          Create a GROUP BY given a set of Expressions
 
Method Summary
 java.util.Vector getGroupBy()
          Get the GROUP BY expressions
 ZExp getHaving()
          Get the HAVING clause
 void setHaving(ZExp e)
          Initiallize the HAVING part of the GROUP BY
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZGroupBy

public ZGroupBy(java.util.Vector exps)
Create a GROUP BY given a set of Expressions

Parameters:
exps - A vector of SQL Expressions (ZExp objects).
Method Detail

setHaving

public void setHaving(ZExp e)
Initiallize the HAVING part of the GROUP BY

Parameters:
e - An SQL Expression (the HAVING clause)

getGroupBy

public java.util.Vector getGroupBy()
Get the GROUP BY expressions

Returns:
A vector of SQL Expressions (ZExp objects)

getHaving

public ZExp getHaving()
Get the HAVING clause

Returns:
An SQL expression

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object