2004.04.29


com.jdc.rdb.sql.dml.select
Class Having

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLClause
              |
              +--com.jdc.rdb.sql.dml.DMLClause
                    |
                    +--com.jdc.rdb.sql.dml.select.Having
All Implemented Interfaces:
Clause, SelectClause, Serializable

public class Having
extends DMLClause
implements SelectClause

Having represents a Select SQL statement HAVING clause. The HAVING clause specifies specifies an intermediate result table that consists of those groups of rows for which the search-condition is true. Rows is the result of the previous clause of the subselect. If this (previous) clause is not GROUP BY, rows is considered to be a single group with no grouping columns.

Version:
2.0
Author:
Jay Damon
See Also:
Select, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.rdb.sql.dml.DMLClause
sqlClause
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Having()
          Constructs a new Having clause object.
Having(String value)
          Constructs a new Having clause object for the specified search condition or conditions.
 
Method Summary
 String getKeyword()
          Returns the Having clause keyword.
 String getValue()
          Returns the Having clause value.
 String toString()
          Returns a String representation of this Having clause.
 
Methods inherited from class com.jdc.rdb.sql.dml.DMLClause
getKeyword
 
Methods inherited from class com.jdc.rdb.sql.SQLClause
contains, setKeyword, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Having

public Having()
Constructs a new Having clause object.


Having

public Having(String value)
Constructs a new Having clause object for the specified search condition or conditions.

Throws:
SQLInvalidException - No HAVING clause search condition is specified.
Method Detail

getKeyword

public String getKeyword()
Returns the Having clause keyword.

Overrides:
getKeyword in class SQLClause
Returns:
The Having clause keyword.

getValue

public String getValue()
Returns the Having clause value.

Overrides:
getValue in class SQLClause
Returns:
The Having clause value.

toString

public String toString()
Returns a String representation of this Having clause.

Specified by:
toString in interface SelectClause
Overrides:
toString in class SQLClause
Returns:
A String representation of this Having clause.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.