|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.events.KeyedEvent
wt.fc.PersistenceManagerEvent
public class PersistenceManagerEvent
Used to represent events occuring within the PersistenceManager. This event supports both single and multiple object event targets. For most operations, the event target will either be a single Persistable or a WTCollection of Persistables.
The CLEANUP_LINK single object event contains the source Persistable object as the target and the cleaned up link is populated in the associatedLink attribute. The CLEANUP_LINK multiple object event contains a WTKeyedMap as the target. The key set in this map contains the source object and the associated values are the link objects. Note that the objects in the WTKeyedMap may not be inflated so they should be accesed as references when possible.
The COPY_LINK single object event contains the original Link object as
the target and the new link is populated in the associatedLink attribute.The
COPY_LINK multiple object event contains a WTKeyedMap as the target.
The key set in this map contains the original link objects and the associated
values are the new link objects. Note that the objects in this event's
WTKeyedMap will be inflated.
Supported API: true
Extendable: false
| Field Summary | |
|---|---|
static String |
COPY_LINK
The event used to notify listeners that a link object has been copied. |
static String |
FULL_RESTORE
Deprecated. as of 8.0, this event is no longer supported. |
static String |
INFLATE_RESULT
Deprecated. as of 8.0, this event is no longer supported. |
static String |
INSERT
The event used to notify listeners that an object has been inserted in the datastore. |
static String |
POST_DELETE
The event used to notify listeners that an object has been deleted. |
static String |
POST_MODIFY
The event used to notify listeners that an object has been modified. |
static String |
POST_MULTI_DELETE
Deprecated. as of R8.0, use POST_DELETE since multi-object events are supported directly |
static String |
POST_REFRESH
Deprecated. as of 8.0, this event is no longer supported. |
static String |
POST_STORE
The event used to notify listeners that a new object has been created. |
static String |
PRE_DELETE
The event used to notify listeners that an object is about to be deleted. |
static String |
PRE_INSERT
The event used to notify listeners that an object is about to be inserted in the datastore. |
static String |
PRE_MODIFY
The event used to notify listeners that an object is about to be modified. |
static String |
PRE_MULTI_DELETE
Deprecated. as of R8.0, use PRE_DELETE since multi-object events are supported directly |
static String |
PRE_REMOVE
The event used to notify listeners that an object is about to be deleted from the datastore. |
static String |
PRE_STORE
The event used to notify listeners that a new object is about to be created. |
static String |
PREPARE_FOR_MODIFICATION
The event used to notify listeners that an object is to be prepared for modification. |
static String |
PREPARE_FOR_VIEW
The event used to notify listeners that an object is to be prepared for view. |
static String |
REMOVE
The event used to notify listeners that an object has been deleted from the datastore. |
static String |
UPDATE
The event used to notify listeners that an object has been updated in the datastore. |
| Method Summary | |
|---|---|
Link |
getAssociatedLink()
Deprecated. as of R8.0, use getEventTarget() in a multi-object event listener. |
Object[] |
getOperableObjectArray()
Deprecated. as of R8.0, use getEventTarget() since multi-object events are supported directly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PRE_STORE
PersistenceManager.store(wt.fc.Persistable),
PersistenceManager.store(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String POST_STORE
PersistenceManager.store(wt.fc.Persistable),
PersistenceManager.store(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String PRE_MODIFY
PersistenceManager.modify(wt.fc.Persistable),
PersistenceManager.modify(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String POST_MODIFY
PersistenceManager.modify(wt.fc.Persistable),
PersistenceManager.modify(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String PREPARE_FOR_MODIFICATION
PersistenceManager.prepareForModification(wt.fc.Persistable),
PersistenceManager.prepareForModification(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String PREPARE_FOR_VIEW
PersistenceManager.prepareForView(wt.fc.Persistable),
Constant Field Valuespublic static final String UPDATE
PersistenceManagerSvr.update(wt.fc.Persistable),
PersistenceManagerSvr.update(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String PRE_REMOVE
PersistenceManager.delete(wt.fc.Persistable),
PersistenceManager.delete(wt.fc.collections.WTSet),
PersistenceManagerSvr.remove(wt.fc.Persistable),
PersistenceManagerSvr.remove(wt.fc.collections.WTSet),
Constant Field Valuespublic static final String REMOVE
PersistenceManager.delete(wt.fc.Persistable),
PersistenceManager.delete(wt.fc.collections.WTSet),
PersistenceManagerSvr.remove(wt.fc.Persistable),
PersistenceManagerSvr.remove(wt.fc.collections.WTSet),
Constant Field Valuespublic static final String PRE_DELETE
PersistenceManager.delete(wt.fc.Persistable),
PersistenceManager.delete(wt.fc.collections.WTSet),
Constant Field Valuespublic static final String POST_DELETE
PersistenceManager.delete(wt.fc.Persistable),
PersistenceManager.delete(wt.fc.collections.WTSet),
Constant Field Valuespublic static final String COPY_LINK
PersistenceManagerSvr.copyLink(wt.fc.BinaryLink,wt.fc.Persistable,String,wt.fc.Persistable),
PersistenceManagerSvr.copyLink(WTValuedHashMap),
Constant Field Valuespublic static final String POST_REFRESH
public static final String FULL_RESTORE
public static final String INFLATE_RESULT
public static final String INSERT
PersistenceManagerSvr.insert(wt.fc.Persistable),
PersistenceManagerSvr.insert(wt.fc.collections.WTCollection),
Constant Field Valuespublic static final String PRE_MULTI_DELETE
public static final String POST_MULTI_DELETE
public static final String PRE_INSERT
| Method Detail |
|---|
public Link getAssociatedLink()
public Object[] getOperableObjectArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||