kodo.event
Class InstanceLifecycleEvent
java.lang.Object
|
+--java.util.EventObject
|
+--kodo.event.InstanceLifecycleEvent
- All Implemented Interfaces:
- Serializable
- public class InstanceLifecycleEvent
- extends EventObject
Lifecycle event on a persistent instance. The event source
is the persistence capable instance whose state has changed.
Events correlate to InstanceCallbacks
callback methods. Additional events for create (makePersistent ()),
and dirty are included.
- Since:
- 3.3
- See Also:
- Serialized Form
Field Summary |
static int |
CLEAR
Event type when an instance is loaded (analagous to
InstanceCallbacks#preClear ). |
static int |
CREATE
Event type when an instance is made persistent |
static int |
DELETE
Event type when an instance is loaded (analagous to
InstanceCallbacks#preDelete ). |
static int |
DIRTY
Event type when an instance is dirtied for the first time. |
static int |
LOAD
Event type when an instance is loaded (analagous to
InstanceCallbacks#postLoad ). |
static int |
STORE
Event type when an instance is loaded (analagous to
InstanceCallbacks#preStore ). |
CREATE
public static final int CREATE
- Event type when an instance is made persistent
LOAD
public static final int LOAD
- Event type when an instance is loaded (analagous to
InstanceCallbacks#postLoad
).
STORE
public static final int STORE
- Event type when an instance is loaded (analagous to
InstanceCallbacks#preStore
).
CLEAR
public static final int CLEAR
- Event type when an instance is loaded (analagous to
InstanceCallbacks#preClear
).
DELETE
public static final int DELETE
- Event type when an instance is loaded (analagous to
InstanceCallbacks#preDelete
).
DIRTY
public static final int DIRTY
- Event type when an instance is dirtied for the first time.
InstanceLifecycleEvent
public InstanceLifecycleEvent(Object pc,
int type)
getEventType
public int getEventType()
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.