2004.04.29


com.jdc.rdb.sql.ddl.create
Class IfNotExists

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

public class IfNotExists
extends DDLClause
implements CreateClause

IfNotExists represents a Create SQL statement IF NOT EXISTS clause. The optional IF NOT 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:
Create, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
IfNotExists()
          Constructs a new IfNotExists clause object.
 
Method Summary
 String getKeyword()
          Returns the IfNotExists clause keyword.
 String toString()
          Returns a String representation of this IfNotExists 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

IfNotExists

public IfNotExists()
Constructs a new IfNotExists clause object.

Method Detail

getKeyword

public String getKeyword()
Returns the IfNotExists clause keyword.

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

toString

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

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

2004.04.29



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