|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The data type in which serialized data is stored. This must correspondpublic interface EventEntryFactory<T>
Interface describing a factory that creates Entities for the JpaEventStore to persist. The EventEntryFactory allows for customization of the exact column types in which the events are stored.
The entity must have the following properties:DateTime.DateTime(Object)
@MappedSuperClass
) provides all required fields, except for
payload
and metaData
.
DefaultEventEntryFactory
,
AbstractEventEntryData
Method Summary | |
---|---|
Object |
createDomainEventEntry(String aggregateType,
DomainEventMessage event,
SerializedObject<T> serializedPayload,
SerializedObject<T> serializedMetaData)
Creates an entity representing a Domain Event, which contains the data provided in the parameters, which can be stored using the JPA Entity Manager configured on the JpaEventStore using this factory. |
Object |
createSnapshotEventEntry(String aggregateType,
DomainEventMessage snapshotEvent,
SerializedObject<T> serializedPayload,
SerializedObject<T> serializedMetaData)
Creates an entity representing a Snapshot Event, which contains the data provided in the parameters, which can be stored using the JPA Entity Manager configured on the JpaEventStore using this factory. |
Class<T> |
getDataType()
Returns the type used to store serialized payloads. |
String |
getDomainEventEntryEntityName()
Returns the entity name of the Domain Event Entry provided by this factory. |
String |
getSnapshotEventEntryEntityName()
Returns the entity name of the Snapshot Event Entry provided by this factory. |
Object |
resolveDateTimeValue(org.joda.time.DateTime dateTime)
Returns the representation used for the given dateTime in the event entry. |
Method Detail |
---|
Class<T> getDataType()
createSnapshotEventEntry(String,
org.axonframework.domain.DomainEventMessage, org.axonframework.serializer.SerializedObject,
org.axonframework.serializer.SerializedObject)
and createDomainEventEntry(String,
org.axonframework.domain.DomainEventMessage, org.axonframework.serializer.SerializedObject,
org.axonframework.serializer.SerializedObject)
respectively.
Object createDomainEventEntry(String aggregateType, DomainEventMessage event, SerializedObject<T> serializedPayload, SerializedObject<T> serializedMetaData)
aggregateType
- The type identifier of the aggregate that generated the domain eventevent
- The DomainEventMessage containing the data to storeserializedPayload
- The serialized payloadserializedMetaData
- The serialized meta data
Object createSnapshotEventEntry(String aggregateType, DomainEventMessage snapshotEvent, SerializedObject<T> serializedPayload, SerializedObject<T> serializedMetaData)
aggregateType
- The type identifier of the aggregate that generated the domain eventsnapshotEvent
- The DomainEventMessage containing the data to storeserializedPayload
- The serialized payloadserializedMetaData
- The serialized meta data
String getDomainEventEntryEntityName()
String getSnapshotEventEntryEntityName()
Object resolveDateTimeValue(org.joda.time.DateTime dateTime)
dateTime
in the event entry.
For example, if the date is stored as an ISO-8601 String, this methods return the dateTime.toString().
dateTime
- The date to return the representation for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |