Home » JDO » Listeners » InstanceLifecycleEvent » getSource() - JDO InstanceLifecycleEvent's method

getSource() - JDO InstanceLifecycleEvent's method

The source object of the Event. Although not deprecated, it is recommended that the the methods getPersistentInstance() and getDetachedInstance() be used instead.
Returns:
The persistent instance on any pre- callback except preAttach, or the detached instance for a postDetach or preAttach callback.
Since:
JDO 2.0
See Also:
getPersistentInstance()
getDetachedInstance()
"Section 12.15, Java Data Objects 2.0 Specification"

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.