2004.04.29


com.jdc.rdb.sql.ddl.clause
Class Table

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLClause
              |
              +--com.jdc.rdb.sql.ddl.DDLClause
                    |
                    +--com.jdc.rdb.sql.ddl.clause.Table
All Implemented Interfaces:
AlterClause, Clause, CreateClause, DropClause, Serializable

public class Table
extends DDLClause
implements CreateClause, AlterClause, DropClause

Table represents a Create, Alter, or Drop SQL statement TABLE clause. The TABLE clause identifies the table object for a Create, Alter, or Drop operation. The name must identify a Database Table.

Reference:
IBM® DB2 Universal Database™ SQL Reference Volume 2 Version 8, Pages 42, 332, and 524.

Version:
2.0
Author:
Jay Damon
See Also:
Create, Alter, Drop, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Table()
          Constructs a new Table clause object.
Table(String name)
          Constructs a new Table clause object for the specified Database Table name.
 
Method Summary
 String getKeyword()
          Returns the Table clause keyword.
 String getValue()
          Returns the Table clause value.
 Table setName(String name)
          Sets the Database Table name.
 String toString()
          Returns a String representation of this Table clause.
 
Methods inherited from class com.jdc.rdb.sql.ddl.DDLClause
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

Table

public Table()
Constructs a new Table clause object.


Table

public Table(String name)
Constructs a new Table clause object for the specified Database Table name.

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

getKeyword

public String getKeyword()
Returns the Table clause keyword.

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

getValue

public String getValue()
Returns the Table clause value.

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

setName

public Table setName(String name)
Sets the Database Table name.

Returns:
This Table clause object.
Throws:
SQLInvalidException - No table name is specified.

toString

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

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

2004.04.29



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