Project Wonder 2.0

er.extensions
Interface ERXGuardedObjectInterface

All Known Implementing Classes:
ERXCustomObject, ERXGenericRecord

public interface ERXGuardedObjectInterface

The guarded object interface is used as a way to ensure that objects that are not supposed to be deleted or updated don't accidently get deleted or updated. Look at ERXGenericRecord for an implementation. This interface is also used within ERD2W applications to determine if the edit icon or the trash can icon should be displayed.


Method Summary
 boolean canDelete()
          Should return if this object can be deleted.
 boolean canUpdate()
          Should return if this object can be updated.
 void delete()
          To be implemented in order to determine additional operations to be done during deletion due to a bug in EOF that doesn't refresh relationships correctly in the parent editingContext
 

Method Detail

canDelete

public boolean canDelete()
Should return if this object can be deleted.

Returns:
if it is safe to delete

canUpdate

public boolean canUpdate()
Should return if this object can be updated.

Returns:
if it is safe to update

delete

public void delete()
To be implemented in order to determine additional operations to be done during deletion due to a bug in EOF that doesn't refresh relationships correctly in the parent editingContext


Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.