public class DMPEvent extends DMPEventDMW
requestcore| Constructor and Description |
|---|
DMPEvent() |
DMPEvent(DMPEventDMO obj) |
DMPEvent(DMPEventTypeEnum et,
DmwWrapper w) |
DMPEvent(SetRequest request)
A convenience constructor that creates a MODIFIED event based on the contents of
the SetRequest passed as argument.
|
| Modifier and Type | Method and Description |
|---|---|
DMPEvent |
clone()
Returns a clone of this DMPEvent.
|
DmcTypeModifierMV |
getModifier() |
DmcTypeModifierMV |
getModifyAttribute()
A convenience method to directly access the modify attribute which must be
passed to the DmcObject.applyModifier() method.
|
DMPEvent |
getPersistentForm()
This method will return either, the current event (if all information is PERSISTENT)
or a trimmed down clone of the event with non-PERSISTENT information removed.
|
DMPEvent |
getSlice(DmcSliceInfo dsi)
This method will slice the event appropriately, depending on the type of event and
the specified slice.
|
DmcSliceInfo |
getSliceInfo() |
DmcObjectName |
getSourceName() |
DmwWrapper |
getSourceObjectWrapped()
If the event object has generated/extended DMW code, this method will return the
DMO wrapped in its associated DMW object.
|
boolean |
hasPersistentData()
Checks to see if the event contains information about persistent objects/attributes.
|
void |
setModify(DmcTypeModifierMV mods)
A convenience function to set the modify attribute directly on the
underlying EventDMO object.
|
boolean |
thisAttributeModified(DmcAttributeInfo ai)
This convenience method can be used on MODIFIED events to determine whether
or not the specified attribute is alterred by the modifier.
|
addModify, addModify, cloneIt, delModify, delModify, getDMO, getEventTypeDMP, getHandlerID, getListenerID, getModificationRecorder, getModifyCopy, getModifyHasValue, getModifyIsEmpty, getModifyIterable, getModifySize, getOriginatorID, getSlice, getSource, getSourceObject, getSourceObjectClass, isMyOwnEvent, isNotifyOriginator, modifyContains, remEventTypeDMP, remHandlerID, remListenerID, remModify, remMyOwnEvent, remNotifyOriginator, remOriginatorID, remSlice, remSource, remSourceObject, remSourceObjectClass, setEventTypeDMP, setEventTypeDMP, setHandlerID, setHandlerID, setListenerID, setListenerID, setMyOwnEvent, setMyOwnEvent, setNotifyOriginator, setNotifyOriginator, setOriginatorID, setOriginatorID, setSlice, setSlice, setSource, setSource, setSource, setSourceObject, setSourceObject, setSourceObjectClass, setSourceObjectClassgetLastRequestID, getServletRequest, removeLastRequestIDaddNvp, addNvp, addRequestID, addRequestID, delNvp, delNvp, delRequestID, delRequestID, getNvpCopy, getNvpHasValue, getNvpIsEmpty, getNvpIterable, getNvpSize, getRequestIDCopy, getRequestIDHasValue, getRequestIDIsEmpty, getRequestIDIterable, getRequestIDSize, getTimeMS, isTrackingEnabled, nvpContains, remNvp, remRequestID, remTimeMS, remTrackingEnabled, requestIDContains, setTimeMS, setTimeMS, setTrackingEnabled, setTrackingEnabledaddAux, applyModifier, equals, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getDmcObject, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, setDmcObject, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, setDeleted, setModifierpublic DMPEvent()
public DMPEvent(DMPEventDMO obj)
public DMPEvent(DMPEventTypeEnum et, DmwWrapper w)
public DMPEvent(SetRequest request)
request - public boolean hasPersistentData()
public DMPEvent getPersistentForm()
public DmcTypeModifierMV getModifier()
getModifier in class DmcContainerpublic DmcObjectName getSourceName()
public void setModify(DmcTypeModifierMV mods)
mods - public DmcTypeModifierMV getModifyAttribute()
public DmwWrapper getSourceObjectWrapped() throws DmcNameClashException, DmcValueException
DmcNameClashExceptionDmcValueExceptionpublic DmcSliceInfo getSliceInfo()
public DMPEvent getSlice(DmcSliceInfo dsi)
If this is a MODIFIED event, we will check to see if any of the attributes in the modifier are associated with the specified slice. If so, a new DMPEvent is returned that has the modifier sliced to contain only changes associated with the slice. If not, null is returned.
If this is a CREATED/LOADED event, we slice the object for the required attributes and return a new DMPEvent with that information. NOTE: we always return a new event, even if all we have is the name of the object.
dsi - public boolean thisAttributeModified(DmcAttributeInfo ai)
ai - Copyright © 2023. All rights reserved.