public class ToDoItem extends AbstractEventSourcedAggregateRoot
| Constructor and Description |
|---|
ToDoItem() |
ToDoItem(String id,
String description) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<? extends EventSourcedEntity> |
getChildEntities()
Returns a collection of event sourced entities directly referenced by this entity.
|
Object |
getIdentifier()
Returns the identifier of this aggregate.
|
protected void |
handle(DomainEventMessage eventMessage)
Apply state changes based on the given event.
|
void |
markCompleted() |
apply, apply, commitEvents, getVersion, initializeState, isLiveaddEventRegistrationCallback, getLastCommittedEventSequenceNumber, getUncommittedEventCount, getUncommittedEvents, initializeEventStream, isDeleted, markDeleted, registerEvent, registerEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventRegistrationCallback, getUncommittedEventCount, getUncommittedEvents, isDeletedpublic void markCompleted()
protected Iterable<? extends EventSourcedEntity> getChildEntities()
AbstractEventSourcedAggregateRootgetChildEntities in class AbstractEventSourcedAggregateRootprotected void handle(DomainEventMessage eventMessage)
AbstractEventSourcedAggregateRoothandle in class AbstractEventSourcedAggregateRooteventMessage - The event to handlepublic Object getIdentifier()
AggregateRootCopyright © 2010-2014. All Rights Reserved.