2004.04.29


com.jdc.rdb.sql.dml.clause
Class Correlation

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLClause
              |
              +--com.jdc.rdb.sql.dml.DMLClause
                    |
                    +--com.jdc.rdb.sql.dml.clause.Correlation
All Implemented Interfaces:
Clause, DeleteClause, Serializable, UpdateClause

public class Correlation
extends DMLClause
implements UpdateClause, DeleteClause

Correlation represents a Delete SQL statement correlation clause. The correlation clause specifies the Table correlation name defined as a designator of the immediately preceding table name.

References:
IBM® DB2 Universal Database™ SQL Reference Volume 1 Version 8, Page 562.
IBM® DB2 Universal Database™ SQL Reference Volume 2 Version 8, Page 499.

Version:
2.0
Author:
Jay Damon
See Also:
Delete, 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
Correlation()
          Constructs a new Correlation clause object.
Correlation(String name)
          Constructs a new Correlation clause object for the specified correlation name.
 
Method Summary
 String getKeyword()
          Returns the Correlation clause keyword.
 String getValue()
          Returns the Correlation clause value.
 Correlation setName(String name)
          Sets the Table correlation name defined as a designator of the immediately preceding table name.
 String toString()
          Returns a String representation of this Correlation 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

Correlation

public Correlation()
Constructs a new Correlation clause object.


Correlation

public Correlation(String name)
Constructs a new Correlation clause object for the specified correlation name. A correlation name is defined as a designator of the immediately preceding table name.

Throws:
SQLInvalidException - No correlation name is specified.
See Also:
setName(String)
Method Detail

getKeyword

public String getKeyword()
Returns the Correlation clause keyword.

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

getValue

public String getValue()
Returns the Correlation clause value.

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

setName

public Correlation setName(String name)
Sets the Table correlation name defined as a designator of the immediately preceding table name.

Returns:
This Correlation clause object.
Throws:
SQLInvalidException - No correlation name is specified.

toString

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

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

2004.04.29



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