Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.javatools.db
Class CascadeRequiredException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.javatools.db.DBException
              extended by oracle.javatools.db.CascadeRequiredException
All Implemented Interfaces:
java.io.Serializable

public class CascadeRequiredException
extends DBException

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.

Since:
11.0
See Also:
Serialized Form

Constructor Summary
CascadeRequiredException(java.util.Collection<DBObject> objs, java.util.Collection<DBObjectID> deps)
           
CascadeRequiredException(DBObject obj)
           
CascadeRequiredException(DBObject obj, java.util.Collection<DBObjectID> deps)
           
CascadeRequiredException(DBObject obj, java.lang.String msg)
           
 
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

CascadeRequiredException

public CascadeRequiredException(DBObject obj,
                                java.lang.String msg)

CascadeRequiredException

public CascadeRequiredException(DBObject obj)

CascadeRequiredException

public CascadeRequiredException(DBObject obj,
                                java.util.Collection<DBObjectID> deps)

CascadeRequiredException

public CascadeRequiredException(java.util.Collection<DBObject> objs,
                                java.util.Collection<DBObjectID> deps)
Method Detail

include

public void include(CascadeRequiredException cre2)
Includes the cascade information of the given exception with the details of this constraint (i.e. adds the object and dependency information into this exception).

Parameters:
cre2 - the details to include in this exception

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getObject

public DBObject getObject()
Description copied from class: DBException
The object on which this exception occurred.

Overrides:
getObject in class DBException
Returns:
the DBObject on which this exception occurred.

getObjects

public java.util.Collection<DBObject> getObjects()

getDependents

public java.util.Collection<DBObjectID> getDependents()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

Copyright © 1997, 2009, Oracle. All rights reserved.