com.arsdigita.domain
Class DeleteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.arsdigita.util.UncheckedWrapperException
com.arsdigita.persistence.PersistenceException
com.arsdigita.domain.DeleteException
- All Implemented Interfaces:
- Serializable
- public class DeleteException
- extends PersistenceException
DeleteException
- Author:
- Matthew Booth
- See Also:
- Serialized Form
DeleteException
public DeleteException(DomainObject obj)
addDependency
public void addDependency(String property,
DataObject obj)
- Add a object dependency
- Parameters:
property
- The name of the persistence property which associates
the objectsobj
- 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