Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
postAttach(InstanceLifecycleEvent event)
This method is called after a detached instance is attached, via thePersistenceManager.makePersistent(T)
method.void
preAttach(InstanceLifecycleEvent event)
This method is called before a detached instance is attached, via thePersistenceManager.makePersistent(T)
method.
-
-
-
Method Detail
-
preAttach
void preAttach(InstanceLifecycleEvent event)
This method is called before a detached instance is attached, via thePersistenceManager.makePersistent(T)
method. The source instance is the detached instance. This method is called before the correspondingAttachCallback.jdoPreAttach()
on the detached instance.- Parameters:
event
- the attach event.- Since:
- 2.0
-
postAttach
void postAttach(InstanceLifecycleEvent event)
This method is called after a detached instance is attached, via thePersistenceManager.makePersistent(T)
method. The source instance is the corresponding persistent instance in the cache; the target instance is the detached instance. This method is called after the correspondingAttachCallback.jdoPostAttach(java.lang.Object)
on the persistent instance.- Parameters:
event
- the attach event.- Since:
- 2.0
-
-