com.arsdigita.domain
Class DeleteException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.arsdigita.util.UncheckedWrapperException
                  extended bycom.arsdigita.persistence.PersistenceException
                      extended bycom.arsdigita.domain.DeleteException
All Implemented Interfaces:
Serializable

public class DeleteException
extends PersistenceException

DeleteException

Author:
Matthew Booth
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.arsdigita.persistence.PersistenceException
versionId
 
Constructor Summary
DeleteException(DomainObject obj)
           
 
Method Summary
 void addDependency(String property, DataObject obj)
          Add a object dependency
 Set getDependencyProperties()
          Returns the list of persistence properties preventing the deletion of this object.
 Set getDependentObjects(String property)
          Returns the list of objects dependent on the object being deleted, associated by the given property.
 String getMessage()
          Display dependent objects, nicely formatted.
 
Methods inherited from class com.arsdigita.persistence.PersistenceException
newInstance, newInstance, newInstance
 
Methods inherited from class com.arsdigita.util.UncheckedWrapperException
getRootCause, hasRootCause, printStackTrace, printStackTrace, printStackTrace, throwLoggedException, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteException

public DeleteException(DomainObject obj)
Method Detail

addDependency

public void addDependency(String property,
                          DataObject obj)
Add a object dependency

Parameters:
property - The name of the persistence property which associates the objects
obj - The dependent DataObject

getDependencyProperties

public Set getDependencyProperties()
Returns the list of persistence properties preventing the deletion of this object.

Returns:
A Set of the String names of properties

getDependentObjects

public Set getDependentObjects(String property)
Returns the list of objects dependent on the object being deleted, associated by the given property.

Parameters:
property - The name of the persistence property which associates the objects
Returns:
A Set of dependent DataObjects.

getMessage

public String getMessage()
Display dependent objects, nicely formatted.

Overrides:
getMessage in class UncheckedWrapperException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC