public interface DeltaEventDatagram extends EventDatagram
Title: Structured Data Objects
Description: An interface that defines a delta event.
Delta Events
are used to present before and after images of a particular
Structured Data Object
.
Implementations of this interface assume that the two objects being compared are
of the same type but may have some elements that are different.
Implementers should override the equals()
, getDeltaElements()
and
getDeltas()
methods on a per-object basis. Since objects are being compared,
it is expected that their signatures will match, event though null
elements may be present. However the equals()
method is expected to
perform a deep comparison ensuring that the two objects are actually clones
of each other in every way.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
boolean |
equals()
Returns
true if the before and after image are not
the same. |
java.lang.Object |
getAfterImage()
Returns the data image after the change.
|
java.lang.Object |
getBeforeImage()
Returns the before image data.
|
java.util.List |
getDeltaElements()
Returns a list of element names that are different between the before and after image.
|
java.util.Map |
getDeltas()
Returns a map of objects in the After Image that are different from those in the Before Image
|
void |
setAfterImage(java.lang.Object image)
Sets the image data after the change.
|
void |
setBeforeImage(java.lang.Object image)
Sets the before image of the data.
|
addAnnotation, canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp
getSerialVersionUID
java.lang.Object getBeforeImage() throws SecurityViolationException, SDOException
SecurityViolationException
- if the event is protected from read access.SDOException
- if some internal error occurs.void setBeforeImage(java.lang.Object image) throws SecurityViolationException, SDOException
image
- the image to be set.SDORuntimeException
- if the event is coalesced (locked for editing).SDOException
- if the specified image
is null
or
if the specified data has wrong type.SecurityViolationException
- if the event is protected from write access.java.lang.Object getAfterImage() throws SecurityViolationException, SDOException
SecurityViolationException
- if the event is protected from read access.SDOException
- if some internal error occurs.void setAfterImage(java.lang.Object image) throws SecurityViolationException, SDOException
image
- the image to be set.SDORuntimeException
- if the event is coalesced (locked for editing).SDOException
- if the specified image
is null
or
if the specified data has wrong type.SecurityViolationException
- if the event is protected from write access.boolean equals()
true
if the before and after image are not
the same. This comparator assumes that the two images are
of the same object type, but may contain different content. If the
two objects are of the same type but of a different version the method
returns false
.true
if the data image after modification is equal to the image before modification, false
otherwise.java.util.List getDeltaElements()
java.util.Map getDeltas()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.