| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.openjpa.event.LifecycleEvent
public class LifecycleEvent
Lifecycle event on a persistent instance. The event source is the persistent instance whose state has changed.
| Field Summary | |
|---|---|
| static int | AFTER_ATTACHEvent type when an instance is attached. | 
| static int | AFTER_CLEAREvent type when an instance is cleared. | 
| static int | AFTER_DELETEEvent type when an instance is deleted. | 
| static int | AFTER_DELETE_PERFORMEDEvent type when an instance is deleted, after the record has been deleted from the store. | 
| static int | AFTER_DETACHEvent type when an instance is detached. | 
| static int | AFTER_DIRTYEvent type when an instance is dirtied for the first time. | 
| static int | AFTER_DIRTY_FLUSHEDEvent type when an instance is dirtied for the first time after flush. | 
| static int | AFTER_LOADEvent type when an instance is loaded. | 
| static int | AFTER_PERSISTEvent type when an instance is made persistent | 
| static int | AFTER_PERSIST_PERFORMEDEvent type when an instance is made persistent, after the record has been written to the store | 
| static int | AFTER_REFRESHEvent type when an instances is refreshed. | 
| static int | AFTER_STOREEvent type when an instance is stored. | 
| static int | AFTER_UPDATE_PERFORMEDEvent type when an instance is modified, after the change has been sent to the store. | 
| static int[] | ALL_EVENTSConvenience array of all event types. | 
| static int | BEFORE_ATTACHEvent type when an instance is attached. | 
| static int | BEFORE_CLEAREvent type when an instance is cleared. | 
| static int | BEFORE_DELETEEvent type when an instance is deleted. | 
| static int | BEFORE_DETACHEvent type when an instance is detached. | 
| static int | BEFORE_DIRTYEvent type when an instance is dirtied for the first time. | 
| static int | BEFORE_DIRTY_FLUSHEDEvent type when an instance is dirtied for the first time after flush. | 
| static int | BEFORE_PERSISTEvent type before an instance is made persistent | 
| static int | BEFORE_STOREEvent type when an instance is stored. | 
| static int | BEFORE_UPDATEEvent type when an instance is modified. | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| LifecycleEvent(Object pc,
               int type)Constructor. | |
| LifecycleEvent(Object pc,
               Object related,
               int type)Constructor. | |
| Method Summary | |
|---|---|
|  Object | getRelated()Return the related object. | 
|  int | getType()Return the event type. | 
| 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 | 
| Field Detail | 
|---|
public static final int BEFORE_PERSIST
public static final int AFTER_PERSIST
public static final int AFTER_PERSIST_PERFORMED
public static final int AFTER_LOAD
public static final int BEFORE_STORE
public static final int AFTER_STORE
public static final int BEFORE_CLEAR
public static final int AFTER_CLEAR
public static final int BEFORE_DELETE
public static final int AFTER_DELETE
public static final int AFTER_DELETE_PERFORMED
public static final int BEFORE_DIRTY
public static final int AFTER_DIRTY
public static final int BEFORE_DIRTY_FLUSHED
public static final int AFTER_DIRTY_FLUSHED
public static final int BEFORE_DETACH
public static final int AFTER_DETACH
public static final int BEFORE_ATTACH
public static final int AFTER_ATTACH
public static final int AFTER_REFRESH
public static final int BEFORE_UPDATE
public static final int AFTER_UPDATE_PERFORMED
public static final int[] ALL_EVENTS
| Constructor Detail | 
|---|
public LifecycleEvent(Object pc,
                      int type)
pc - the persistent instance that triggered the eventtype - the event type
public LifecycleEvent(Object pc,
                      Object related,
                      int type)
pc - the persistent instance that triggered the eventtype - the event typerelated - the related instance such as the detached copy.| Method Detail | 
|---|
public int getType()
public Object getRelated()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||