ClearLifecycleListener
- Super Interfaces:
InstanceLifecycleListener
This interface is implemented by listeners to be notified of clear events.
- Since:
- JDO 2.0
Public Methods
void postClear(InstanceLifecycleEvent event)
- Parameters:
event
- the clear event.
- Since:
- JDO 2.0
void preClear(InstanceLifecycleEvent event)
This happens during an application call to evict, and in afterCompletion for commit with RetainValues false and rollback with RestoreValues false.
The method is called during any state transition to hollow. Non-persistent, non-transactional fields should be cleared in this method. Associations between this instance and others in the runtime environment should be cleared.
This method is not modified by the enhancer, so access to fields is not mediated.
- Parameters:
event
- the clear event.
- Since:
- JDO 2.0