|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.jdo.listener.InstanceLifecycleEvent
public class InstanceLifecycleEvent
This is the event class used in life cycle event notifications.
Note that although InstanceLifecycleEvent inherits Serializable interface from EventObject, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.
| Field Summary | |
|---|---|
static int |
ATTACH
|
static int |
CLEAR
|
static int |
CREATE
|
static int |
DELETE
|
static int |
DETACH
|
static int |
DIRTY
|
static int |
LOAD
|
static int |
STORE
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
InstanceLifecycleEvent(java.lang.Object source,
int type)
Creates a new event object with the specified source and type. |
|
InstanceLifecycleEvent(java.lang.Object source,
int type,
java.lang.Object target)
Creates a new event object with the specified source, type, and target. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getDetachedInstance()
Returns the detached instance involved in the event. |
int |
getEventType()
Returns the event type that triggered this event. |
java.lang.Object |
getPersistentInstance()
Returns the persistent instance involved in the event. |
java.lang.Object |
getSource()
The source object of the Event. |
java.lang.Object |
getTarget()
The target object of the Event. |
| Methods inherited from class java.util.EventObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CREATE
public static final int LOAD
public static final int STORE
public static final int CLEAR
public static final int DELETE
public static final int DIRTY
public static final int DETACH
public static final int ATTACH
| Constructor Detail |
|---|
public InstanceLifecycleEvent(java.lang.Object source,
int type)
source and type.
source - the instance that triggered the eventtype - the event type
public InstanceLifecycleEvent(java.lang.Object source,
int type,
java.lang.Object target)
source, type, and target.
source - the instance that triggered the eventtype - the event typetarget - the "other" instance| Method Detail |
|---|
public int getEventType()
public java.lang.Object getSource()
getPersistentInstance() and
getDetachedInstance() be used instead.
getSource in class java.util.EventObjectgetPersistentInstance(),
getDetachedInstance(),
"Section 12.15, Java Data Objects 2.0 Specification"public java.lang.Object getTarget()
getPersistentInstance() and
getDetachedInstance() be used instead.
getPersistentInstance(),
getDetachedInstance(),
"Section 12.15, Java Data Objects 2.0 Specification"public java.lang.Object getPersistentInstance()
public java.lang.Object getDetachedInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||