|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQLClause
|
+--com.jdc.rdb.sql.ddl.DDLClause
|
+--com.jdc.rdb.sql.ddl.drop.Impact
Impact represents a Drop
SQL statement impact clause. The impact clause specifies
the impact of dropping a Table on other Database
objects. Valid options are:
CASCADE - Dropping a database object causes objects that depend upon it to be dropped as well.RESTRICT - The database object is not dropped if one or more dependent objects exist.
Drop,
Serialized Form| Field Summary | |
static String |
CASCADE
Dropping a database object causes objects that depend upon it to be dropped as well. |
static String |
RESTRICT
The database object is not dropped if a one or more dependent objects exist. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Impact()
Constructs a new Impact clause object. |
|
Impact(String option)
Constructs a new Impact clause object for the specified impact
option. |
|
| Method Summary | |
String |
getValue()
Returns the Impact clause value. |
Impact |
setCascade()
Sets the Impact clause to drop all database objects that depend
upon the object to be dropped |
Impact |
setRestrict()
Sets the Impact clause to not drop the database object
if one or more dependent objects exist. |
String |
toString()
Returns a String representation of this Impact clause. |
| Methods inherited from class com.jdc.rdb.sql.ddl.DDLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, getKeyword, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String CASCADE
public static final String RESTRICT
| Constructor Detail |
public Impact()
Impact clause object.
public Impact(String option)
Impact clause object for the specified impact
option. Valid options are CASCADE or RESTRICT.
SQLInvalidException - An invalid impact option is specified.setCascade(),
setRestrict()| Method Detail |
public String getValue()
Impact clause value.
getValue in class SQLClauseImpact clause value.public Impact setCascade()
Impact clause to drop all database objects that depend
upon the object to be dropped
Impact clause object.setRestrictpublic Impact setRestrict()
Impact clause to not drop the database object
if one or more dependent objects exist.
Impact clause object.setCascadepublic String toString()
String representation of this Impact clause.
toString in interface DropClausetoString in class SQLClauseString representation of this Impact clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||