javax.jdo.listener

Interface DeleteLifecycleListener

All Superinterfaces:
InstanceLifecycleListener

public interface DeleteLifecycleListener
extends InstanceLifecycleListener

This interface is implemented by listeners to be notified of delete events.
Version:
2.0
Since:
2.0

Method Summary

void
postDelete(InstanceLifecycleEvent event)
Invoked whenever a persistent instance is deleted, for example during PersistenceManager.deletePersistent(Object).
void
preDelete(InstanceLifecycleEvent event)
Invoked whenever a persistent instance is deleted, for example during PersistenceManager.deletePersistent(Object).

Method Details

postDelete

public void postDelete(InstanceLifecycleEvent event)
Invoked whenever a persistent instance is deleted, for example during PersistenceManager.deletePersistent(Object).

This method is called after the instance transitions to persistent-deleted. Access to field values is not permitted.

Parameters:
event - the delete event.
Since:
2.0

preDelete

public void preDelete(InstanceLifecycleEvent event)
Invoked whenever a persistent instance is deleted, for example during PersistenceManager.deletePersistent(Object). Access to field values within this call are permitted.

This method is called before the instance callback DeleteCallback.jdoPreDelete().

Parameters:
event - the delete event.
Since:
2.0