2004.04.29


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

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

public class View
extends DDLClause
implements CreateClause, DropClause

View represents a Create or Drop SQL statement VIEW clause. The VIEW clause identifies the view object for a Create or Drop operation. The name must identify a Database View.

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

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
View()
          Constructs a new View clause object.
View(String name)
          Constructs a new View clause object for the specified Database View name.
 
Method Summary
 String getKeyword()
          Returns the View clause keyword.
 String getValue()
          Returns the View clause value.
 View setName(String name)
          Sets the Database View name.
 String toString()
          Returns a String representation of this View 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

View

public View()
Constructs a new View clause object.


View

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

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

getKeyword

public String getKeyword()
Returns the View clause keyword.

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

getValue

public String getValue()
Returns the View clause value.

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

setName

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

Returns:
This View clause object.
Throws:
SQLInvalidException - No view name is specified.

toString

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

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

2004.04.29



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