Skip navigation links

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

E52944-01


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)
          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

CascadeRequiredException

public CascadeRequiredException(DBObject obj,
                                java.lang.String msg)
Constructor to use when the list of dependents is unknwon. The given object cannot be deleted without a cascade.
Parameters:
obj - the object for whom a cascade is blocking an attempted operation

CascadeRequiredException

public CascadeRequiredException(DBObject obj)
Constructor to use when the list of dependents is unknwon. The given object cannot be deleted without a cascade.
Parameters:
obj - the object for whom a cascade is blocking an attempted operation

CascadeRequiredException

public CascadeRequiredException(DBObject obj,
                                java.util.Collection<DBObjectID> deps)
The given object cannot be deleted because the list of dependent objects exist.
Parameters:
objs - the objects for whom the cascade is blocking an attempted operation
deps - the dependent objects that need to be cascaded to

CascadeRequiredException

public CascadeRequiredException(java.util.Collection<DBObject> objs,
                                java.util.Collection<DBObjectID> deps)
Creates a cascade exception for a large operation. The list of objects cannot be deleted because the list of dependent objects exist.
Parameters:
objs - the objects for whom the cascade is blocking an attempted operation
deps - the dependent objects that need to be cascaded to

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()

Skip navigation links

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

E52944-01


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