@MappedSuperclass public abstract class AbstractEventEntry extends Object implements SerializedDomainEventData
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractEventEntry.PK
Primary key definition of the AbstractEventEntry class.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEventEntry()
Default constructor, as required by JPA specification.
|
protected |
AbstractEventEntry(String type,
DomainEventMessage event,
SerializedObject<byte[]> payload,
SerializedObject<byte[]> metaData)
Initialize an Event entry for the given
event. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAggregateIdentifier()
Returns the Aggregate Identifier of the associated event.
|
String |
getEventIdentifier()
Returns the identifier of the serialized event.
|
SerializedObject<byte[]> |
getMetaData()
Returns the serialized data of the MetaData of the serialized Event.
|
SerializedObject<byte[]> |
getPayload()
Returns the serialized data of the Event Message's payload.
|
long |
getSequenceNumber()
Returns the sequence number of the associated event.
|
org.joda.time.DateTime |
getTimestamp()
Returns the time stamp of the associated event.
|
String |
getType()
Returns the type identifier of the aggregate.
|
protected AbstractEventEntry(String type, DomainEventMessage event, SerializedObject<byte[]> payload, SerializedObject<byte[]> metaData)
event.type - The type identifier of the aggregate root the event belongs toevent - The event to store in the EventStorepayload - The serialized payload of the EventmetaData - The serialized metaData of the Eventprotected AbstractEventEntry()
public Object getAggregateIdentifier()
getAggregateIdentifier in interface SerializedDomainEventDatapublic String getType()
public long getSequenceNumber()
getSequenceNumber in interface SerializedDomainEventDatapublic org.joda.time.DateTime getTimestamp()
getTimestamp in interface SerializedDomainEventDatapublic String getEventIdentifier()
SerializedDomainEventDatagetEventIdentifier in interface SerializedDomainEventDatapublic SerializedObject<byte[]> getPayload()
SerializedDomainEventDatagetPayload in interface SerializedDomainEventDatapublic SerializedObject<byte[]> getMetaData()
SerializedDomainEventDatagetMetaData in interface SerializedDomainEventDataCopyright © 2010-2013. All Rights Reserved.