javax.jdo.listener
Class InstanceLifecycleEvent
java.lang.Object
java.util.EventObject
javax.jdo.listener.InstanceLifecycleEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class InstanceLifecycleEvent
- extends java.util.EventObject
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.
- Since:
- 2.0
- Version:
- 2.0
- See Also:
- Serialized Form
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 |
int |
getEventType()
Returns the event type that triggered this event. |
java.lang.Object |
getTarget()
Returns the "other" object. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
LOAD
public static final int LOAD
- See Also:
- Constant Field Values
STORE
public static final int STORE
- See Also:
- Constant Field Values
CLEAR
public static final int CLEAR
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
DIRTY
public static final int DIRTY
- See Also:
- Constant Field Values
DETACH
public static final int DETACH
- See Also:
- Constant Field Values
ATTACH
public static final int ATTACH
- See Also:
- Constant Field Values
InstanceLifecycleEvent
public InstanceLifecycleEvent(java.lang.Object source,
int type)
- Creates a new event object with the specified
source
and type
.
- Parameters:
source
- the instance that triggered the eventtype
- the event type- Since:
- 2.0
InstanceLifecycleEvent
public InstanceLifecycleEvent(java.lang.Object source,
int type,
java.lang.Object target)
- Creates a new event object with the specified
source
, type
, and target
.
- Parameters:
source
- the instance that triggered the eventtype
- the event typetarget
- the "other" instance- Since:
- 2.0
getEventType
public int getEventType()
- Returns the event type that triggered this event.
- Returns:
- the event type
- Since:
- 2.0
getTarget
public java.lang.Object getTarget()
- Returns the "other" object.
- Returns:
- the "other" object
- Since:
- 2.0
Copyright © 2005 Apache Software Foundation. All Rights Reserved.