javax.jdo.listener
Interface AttachLifecycleListener

All Superinterfaces:
InstanceLifecycleListener

public interface AttachLifecycleListener
extends InstanceLifecycleListener

This interface is implemented by listeners to be notified of attach events.

Since:
2.0
Version:
2.0

Method Summary
 void postAttach(InstanceLifecycleEvent event)
          This method is called during the execution of PersistenceManager.attachCopy(java.lang.Object, boolean) on the persistent instance after the copy is made.
 void preAttach(InstanceLifecycleEvent event)
          This method is called during the execution of PersistenceManager.attachCopy(java.lang.Object, boolean) before the copy is made.
 

Method Detail

preAttach

public void preAttach(InstanceLifecycleEvent event)
This method is called during the execution of PersistenceManager.attachCopy(java.lang.Object, boolean) before the copy is made. It is called before the method AttachCallback.jdoPreAttach() is invoked on the instance to be attached.

Parameters:
event - the attach event.
Since:
2.0

postAttach

public void postAttach(InstanceLifecycleEvent event)
This method is called during the execution of PersistenceManager.attachCopy(java.lang.Object, boolean) on the persistent instance after the copy is made.

Parameters:
event - the attach event.
Since:
2.0