public class CompoundEvent extends DEvent
DObject.startTransaction()Streamable.Closure| Constructor and Description |
|---|
CompoundEvent()
Used when unserializing.
|
CompoundEvent(DObject target,
DObjectManager omgr)
Constructs a compound event and prepares it for operation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyToObject(DObject target)
Applies the attribute modifications represented by this event to the specified target
object.
|
void |
cancel()
Cancels this transaction.
|
void |
commit()
Commits this transaction by posting this event to the distributed object event queue.
|
List<DEvent> |
getEvents()
Returns the list of events contained within this compound event.
|
void |
postEvent(DEvent event)
Posts an event to this transaction.
|
void |
setSourceOid(int sourceOid)
Do not call this method.
|
void |
setTargetOid(int targetOid)
Do not call this method.
|
DEvent |
setTransport(Transport transport)
Sets the transport parameters.
|
alreadyApplied, getActualTransport, getSourceOid, getTargetOid, getTransport, isPrivate, noteActualTransport, toStringpublic CompoundEvent(DObject target, DObjectManager omgr)
public CompoundEvent()
public void postEvent(DEvent event)
public List<DEvent> getEvents()
public void commit()
public void cancel()
public void setSourceOid(int sourceOid)
DEventsetSourceOid in class DEventpublic void setTargetOid(int targetOid)
DEventsetTargetOid in class DEventpublic DEvent setTransport(Transport transport)
DEventsetTransport in class DEventpublic boolean applyToObject(DObject target) throws ObjectAccessException
DEventapplyToObject in class DEventObjectAccessException - thrown if there is any problem applying the event to the
object (invalid attribute, etc.).Copyright © 2015. All rights reserved.