|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventstore.jpa.AbstractEventEntry
@MappedSuperclass public abstract class AbstractEventEntry
Data needed by different types of event logs.
| Nested Class Summary | |
|---|---|
static class |
AbstractEventEntry.PK
Primary key definition of the AbstractEventEntry class. |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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()
| Method Detail |
|---|
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()
SerializedDomainEventData
getEventIdentifier in interface SerializedDomainEventDatapublic SerializedObject<byte[]> getPayload()
SerializedDomainEventData
getPayload in interface SerializedDomainEventDatapublic SerializedObject<byte[]> getMetaData()
SerializedDomainEventData
getMetaData in interface SerializedDomainEventData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||