2004.04.29


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

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

public class Schema
extends DDLClause
implements CreateClause, DropClause

Schema represents a Create or Drop SQL statement SCHEMA clause. The SCHEMA clause identifies the schema object for a Create or Drop operation. The name must identify a Database Schema.

Reference:
IBM® DB2 Universal Database™ SQL Reference Volume 2 Version 8, Pages 318 and 523.

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

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

Schema

public Schema()
Constructs a new Schema clause object.


Schema

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

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

getKeyword

public String getKeyword()
Returns the Schema clause keyword.

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

getValue

public String getValue()
Returns the Schema clause value.

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

setName

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

Returns:
This Schema clause object.
Throws:
SQLInvalidException - No schema name is specified.

toString

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

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

2004.04.29



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