|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventstore.jpa.AbstractEventEntryData<T>
T
- The data type used to store the payload@MappedSuperclass public abstract class AbstractEventEntryData<T>
Abstract JPA Entity, which defines all fields except for the payload and metaData field. Subclasses should declare those fields and define the format in which the data must be stored.
Nested Class Summary | |
---|---|
static class |
AbstractEventEntryData.PK
Primary key definition of the AbstractEventEntry class. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.axonframework.serializer.SerializedDomainEventData |
---|
getMetaData, getPayload |
Constructor Detail |
---|
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()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |