|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventstore.jpa.DomainEventEntry
public class DomainEventEntry
JPA compliant wrapper around a DomainEvent. It wraps a DomainEvent by extracting some of the information needed to
base searched on, and stores the DomainEvent itself as a serialized object using am EventSerializer
| Constructor Summary | |
|---|---|
protected |
DomainEventEntry()
Default constructor, as required by JPA specification. |
|
DomainEventEntry(String type,
DomainEvent event,
EventSerializer eventSerializer)
Initialize a DomainEventEntry for the given event, to be serialized using the given
serializer. |
| Method Summary | |
|---|---|
AggregateIdentifier |
getAggregateIdentifier()
Returns the Aggregate Identifier of the associated event. |
DomainEvent |
getDomainEvent(EventSerializer eventSerializer)
Reconstructs the DomainEvent using the given eventSerializer. |
Long |
getId()
Returns the unique identifier of this entry. |
long |
getSequenceNumber()
Returns the sequence number of the associated event. |
org.joda.time.LocalDateTime |
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 DomainEventEntry()
public DomainEventEntry(String type,
DomainEvent event,
EventSerializer eventSerializer)
event, to be serialized using the given
serializer.
type - The type identifier of the aggregate root the event belongs toevent - The event to store in the eventstoreeventSerializer - The serialize to serialize the event with| Method Detail |
|---|
public DomainEvent getDomainEvent(EventSerializer eventSerializer)
eventSerializer.
eventSerializer - The EventSerializer to deserialize the DomainEvent with.
public Long getId()
null if the entry has not been persisted.
public AggregateIdentifier getAggregateIdentifier()
public String getType()
public long getSequenceNumber()
public org.joda.time.LocalDateTime getTimeStamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||