public class LifecycleEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
AFTER_ATTACH
Event type when an instance is attached.
|
static int |
AFTER_CLEAR
Event type when an instance is cleared.
|
static int |
AFTER_DELETE
Event type when an instance is deleted.
|
static int |
AFTER_DELETE_PERFORMED
Event type when an instance is deleted, after the record has been
deleted from the store.
|
static int |
AFTER_DETACH
Event type when an instance is detached.
|
static int |
AFTER_DIRTY
Event type when an instance is dirtied for the first time.
|
static int |
AFTER_DIRTY_FLUSHED
Event type when an instance is dirtied for the first time after flush.
|
static int |
AFTER_LOAD
Event type when an instance is loaded.
|
static int |
AFTER_PERSIST
Event type when an instance is made persistent
|
static int |
AFTER_PERSIST_PERFORMED
Event type when an instance is made persistent, after the record has
been written to the store
|
static int |
AFTER_REFRESH
Event type when an instances is refreshed.
|
static int |
AFTER_STORE
Event type when an instance is stored.
|
static int |
AFTER_UPDATE_PERFORMED
Event type when an instance is modified, after the change has been
sent to the store.
|
static int[] |
ALL_EVENTS
Convenience array of all event types.
|
static int |
BEFORE_ATTACH
Event type when an instance is attached.
|
static int |
BEFORE_CLEAR
Event type when an instance is cleared.
|
static int |
BEFORE_DELETE
Event type when an instance is deleted.
|
static int |
BEFORE_DETACH
Event type when an instance is detached.
|
static int |
BEFORE_DIRTY
Event type when an instance is dirtied for the first time.
|
static int |
BEFORE_DIRTY_FLUSHED
Event type when an instance is dirtied for the first time after flush.
|
static int |
BEFORE_PERSIST
Event type before an instance is made persistent
|
static int |
BEFORE_STORE
Event type when an instance is stored.
|
static int |
BEFORE_UPDATE
Event type when an instance is modified.
|
source
Constructor and Description |
---|
LifecycleEvent(Object pc,
int type)
Constructor.
|
LifecycleEvent(Object pc,
Object related,
int type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getRelated()
Return the related object.
|
int |
getType()
Return the event type.
|
getSource, toString
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
public LifecycleEvent(Object pc, int type)
pc
- the persistent instance that triggered the eventtype
- the event typepublic int getType()
public Object getRelated()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.