javax.jdo.listener.InstanceLifecycleEvent - JDO class
javax.jdo.listener
Class InstanceLifecycleEvent
java.lang.Object
java.util.EventObject
javax.jdo.listener.InstanceLifecycleEvent
- Implemented Interfaces:
-
Serializable
Note that although InstanceLifecycleEvent inherits Serializable interface from EventObject, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
- Since:
- JDO 2.0
source
and type
. - Parameters:
-
source
- the instance that triggered the event -
type
- the event type
- Since:
- JDO 2.0
source
, type
, and target
. - Parameters:
-
source
- the instance that triggered the event -
type
- the event type -
target
- the "other" instance
- Since:
- JDO 2.0
- Returns:
- The detached instance involved in the event, or null if there was none.
- Since:
- JDO 2.0
- See Also:
-
"Section 12.15, Java Data Objects 2.0 Specification"
- Returns:
- the event type
- Since:
- JDO 2.0
- Returns:
- The persistent instance involved in the event, or null if there was none.
- Since:
- JDO 2.0
- See Also:
-
"Section 12.15, Java Data Objects 2.0 Specification"
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"
getPersistentInstance()
and getDetachedInstance()
be used instead. - Returns:
- The detached instance for preDetach and postAttach, the persistent instance otherwise.
- Since:
- JDO 2.0
- See Also:
-
getPersistentInstance()
-
getDetachedInstance()
-
"Section 12.15, Java Data Objects 2.0 Specification"