|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.javatools.db.DBException
oracle.javatools.db.CascadeRequiredException
public class CascadeRequiredException
Subclass of DBException that is thrown when an attempt to delete or update an object is made when there are dependent objects in the given DBObjectProvider.
Constructor Summary | |
---|---|
CascadeRequiredException(java.util.Collection<DBObject> objs, java.util.Collection<DBObjectID> deps) Creates a cascade exception for a large operation. |
|
CascadeRequiredException(DBObject obj) Constructor to use when the list of dependents is unknwon. |
|
CascadeRequiredException(DBObject obj, java.util.Collection<DBObjectID> deps) The given object cannot be deleted because the list of dependent objects exist. |
|
CascadeRequiredException(DBObject obj, java.lang.String msg) Constructor to use when the list of dependents is unknwon. |
Method Summary | |
---|---|
java.util.Collection<DBObjectID> |
getDependents() |
java.lang.String |
getMessage() |
DBObject |
getObject() The object on which this exception occurred. |
java.util.Collection<DBObject> |
getObjects() |
void |
include(CascadeRequiredException cre2) Includes the cascade information of the given exception with the details of this constraint (i.e. |
Methods inherited from class oracle.javatools.db.DBException |
---|
getNextException, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CascadeRequiredException(DBObject obj, java.lang.String msg)
obj
- the object for whom a cascade is blocking an attempted operationpublic CascadeRequiredException(DBObject obj)
obj
- the object for whom a cascade is blocking an attempted operationpublic CascadeRequiredException(DBObject obj, java.util.Collection<DBObjectID> deps)
objs
- the objects for whom the cascade is blocking an attempted operationdeps
- the dependent objects that need to be cascaded topublic CascadeRequiredException(java.util.Collection<DBObject> objs, java.util.Collection<DBObjectID> deps)
objs
- the objects for whom the cascade is blocking an attempted operationdeps
- the dependent objects that need to be cascaded toMethod Detail |
---|
public void include(CascadeRequiredException cre2)
cre2
- the details to include in this exceptionpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public DBObject getObject()
DBException
getObject
in class DBException
public java.util.Collection<DBObject> getObjects()
public java.util.Collection<DBObjectID> getDependents()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |