org.axonframework.eventstore.jpa
Class SnapshotEventEntry

java.lang.Object
  extended by org.axonframework.eventstore.jpa.AbstractEventEntryData<byte[]>
      extended by org.axonframework.eventstore.jpa.AbstractEventEntry
          extended by org.axonframework.eventstore.jpa.SnapshotEventEntry
All Implemented Interfaces:
SerializedDomainEventData<byte[]>

@Entity
public class SnapshotEventEntry
extends AbstractEventEntry

JPA compatible entry that stores data required for the use of snapshot events.

Since:
0.5
Author:
Allard Buijze

Nested Class Summary
 
Nested classes/interfaces inherited from class org.axonframework.eventstore.jpa.AbstractEventEntryData
AbstractEventEntryData.PK
 
Constructor Summary
protected SnapshotEventEntry()
          Default constructor, as required by JPA specification.
  SnapshotEventEntry(String type, DomainEventMessage event, SerializedObject<byte[]> payload, SerializedObject<byte[]> metaData)
          Initialize an Event entry for the given event.
 
Method Summary
 
Methods inherited from class org.axonframework.eventstore.jpa.AbstractEventEntry
getMetaData, getPayload
 
Methods inherited from class org.axonframework.eventstore.jpa.AbstractEventEntryData
getAggregateIdentifier, getEventIdentifier, getPayloadType, getSequenceNumber, getTimestamp, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotEventEntry

protected SnapshotEventEntry()
Default constructor, as required by JPA specification. Do not use directly!


SnapshotEventEntry

public SnapshotEventEntry(String type,
                          DomainEventMessage event,
                          SerializedObject<byte[]> payload,
                          SerializedObject<byte[]> metaData)
Initialize an Event entry for the given event.

Parameters:
type - The type identifier of the aggregate root the event belongs to
event - The event to store in the eventstore
payload - The serialized version of the Event
metaData - The serialized metaData of the Event


Copyright © 2010-2016. All Rights Reserved.