org.axonframework.gae.eventstore
Class EventEntry

java.lang.Object
  extended by org.axonframework.gae.eventstore.EventEntry
All Implemented Interfaces:
SerializedDomainEventData<String>

public class EventEntry
extends Object
implements SerializedDomainEventData<String>

Class that represents an event to store in the google app engine data store.

Since:
1.0
Author:
Jettro Coenradie, Allard Buijze

Method Summary
 Object getAggregateIdentifier()
          Returns the Identifier of the Aggregate to which the Event was applied.
 List<DomainEventMessage> getDomainEvent(Object actualAggregateIdentifier, Serializer serializer, UpcasterChain upcasterChain, boolean skipUnknownTypes)
          Returns the actual DomainEvent from the EventEntry using the provided Serializer.
 String getEventIdentifier()
          Returns the identifier of the serialized event.
 SerializedObject<String> getMetaData()
          Returns the serialized data of the MetaData of the serialized Event.
 SerializedObject<String> getPayload()
          Returns the serialized data of the Event Message's payload.
 long getSequenceNumber()
          getter for the sequence number of the event.
 org.joda.time.DateTime getTimestamp()
          Returns the timestamp at which the event was first created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDomainEvent

public List<DomainEventMessage> getDomainEvent(Object actualAggregateIdentifier,
                                               Serializer serializer,
                                               UpcasterChain upcasterChain,
                                               boolean skipUnknownTypes)
Returns the actual DomainEvent from the EventEntry using the provided Serializer.

Parameters:
actualAggregateIdentifier - The actual aggregate identifier instance used to perform the lookup
serializer - Serializer used to de-serialize the stored DomainEvent
upcasterChain - Set of upcasters to use when an event needs upcasting before de-serialization
skipUnknownTypes - Whether to skip unknown event types
Returns:
The actual DomainEventMessage instances stored in this entry

getEventIdentifier

public String getEventIdentifier()
Description copied from interface: SerializedDomainEventData
Returns the identifier of the serialized event.

Specified by:
getEventIdentifier in interface SerializedDomainEventData<String>
Returns:
the identifier of the serialized event

getAggregateIdentifier

public Object getAggregateIdentifier()
Description copied from interface: SerializedDomainEventData
Returns the Identifier of the Aggregate to which the Event was applied.

Specified by:
getAggregateIdentifier in interface SerializedDomainEventData<String>
Returns:
the Identifier of the Aggregate to which the Event was applied

getSequenceNumber

public long getSequenceNumber()
getter for the sequence number of the event.

Specified by:
getSequenceNumber in interface SerializedDomainEventData<String>
Returns:
long representing the sequence number of the event

getTimestamp

public org.joda.time.DateTime getTimestamp()
Description copied from interface: SerializedDomainEventData
Returns the timestamp at which the event was first created.

Specified by:
getTimestamp in interface SerializedDomainEventData<String>
Returns:
the timestamp at which the event was first created

getMetaData

public SerializedObject<String> getMetaData()
Description copied from interface: SerializedDomainEventData
Returns the serialized data of the MetaData of the serialized Event.

Specified by:
getMetaData in interface SerializedDomainEventData<String>
Returns:
the serialized data of the MetaData of the serialized Event

getPayload

public SerializedObject<String> getPayload()
Description copied from interface: SerializedDomainEventData
Returns the serialized data of the Event Message's payload.

Specified by:
getPayload in interface SerializedDomainEventData<String>
Returns:
the serialized data of the Event Message's payload


Copyright © 2010-2016. All Rights Reserved.