T
- The data type used to store the payload@MappedSuperclass public abstract class AbstractEventEntryData<T> extends Object implements SerializedDomainEventData<T>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractEventEntryData.PK
Primary key definition of the AbstractEventEntry class.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractEventEntryData()
Constructor required by JPA.
|
|
AbstractEventEntryData(String eventIdentifier,
String type,
String aggregateIdentifier,
long sequenceNumber,
org.joda.time.DateTime timestamp,
SerializedType payloadType)
Initializes the fields in this entity using the values provided in the given parameters.
|
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.
|
protected SerializedType |
getPayloadType()
Returns the payload type of the event message stored in this entry.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getPayload
public AbstractEventEntryData(String eventIdentifier, String type, String aggregateIdentifier, long sequenceNumber, org.joda.time.DateTime timestamp, SerializedType payloadType)
eventIdentifier
- The identifier of the event.type
- The type identifier of the aggregate that published the eventaggregateIdentifier
- The identifier of the aggregate that published the eventsequenceNumber
- The sequence number of the eventtimestamp
- The timestamp of the creation of the eventpayloadType
- The type of payload contained in the eventprotected AbstractEventEntryData()
public String getEventIdentifier()
SerializedDomainEventData
getEventIdentifier
in interface SerializedDomainEventData<T>
public Object getAggregateIdentifier()
getAggregateIdentifier
in interface SerializedDomainEventData<T>
public String getType()
public long getSequenceNumber()
getSequenceNumber
in interface SerializedDomainEventData<T>
public org.joda.time.DateTime getTimestamp()
getTimestamp
in interface SerializedDomainEventData<T>
protected SerializedType getPayloadType()
Copyright © 2010-2014. All Rights Reserved.