public class RelationalEventWithEntity extends ApplicationEvent implements WithEntity
SimpleRelationalEvent which is guaranteed to have an entity.source| Modifier and Type | Method and Description |
|---|---|
AggregateChange |
getChange() |
Identifier |
getId()
The identifier of the aggregate root, triggering this event.
|
Optional<Object> |
getOptionalEntity()
Returns the aggregate root the event was triggered for.
|
getTimestampgetSource, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntitygetId, getOptionalEntitypublic Identifier getId()
RelationalEventgetId in interface RelationalEventIdentifier. Guaranteed to be not null.public Optional<Object> getOptionalEntity()
RelationalEventgetOptionalEntity in interface RelationalEventnull.public AggregateChange getChange()
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.