2004.04.29


com.jdc.rdb.sql.ddl.drop
Class IfExists

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

public class IfExists
extends DDLClause
implements DropClause

IfExists represents a Drop SQL statement IF EXISTS clause. The optional IF EXISTS clause specifies that a Database object should be dropped only if it exists.

Note:
This SQL statement clause is not compatible with the ANSI SQL-92 standard.

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

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
IfExists()
          Constructs a new IfExists clause object.
 
Method Summary
 String getKeyword()
          Returns the IfExists clause keyword.
 String toString()
          Returns a String representation of this IfExists clause.
 
Methods inherited from class com.jdc.rdb.sql.ddl.DDLClause
getKeyword
 
Methods inherited from class com.jdc.rdb.sql.SQLClause
contains, getValue, setKeyword, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfExists

public IfExists()
Constructs a new IfExists clause object.

Method Detail

getKeyword

public String getKeyword()
Returns the IfExists clause keyword.

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

toString

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

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

2004.04.29



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