public class AfterSaveEvent extends RelationalEventWithIdAndEntity
source| Constructor and Description |
|---|
AfterSaveEvent(Identifier.Specified id,
Object instance,
AggregateChange change) |
| Modifier and Type | Method and Description |
|---|---|
AggregateChange |
getChange() |
Optional<Object> |
getOptionalEntity()
Returns the aggregate root the event was triggered for.
|
getIdgetTimestampgetSource, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntitygetId, getOptionalEntitypublic AfterSaveEvent(Identifier.Specified id, Object instance, AggregateChange change)
id - identifier of the saved entity.instance - the saved entity.change - the AggregateChange encoding the actions performed on the database as part of the delete.public Optional<Object> getOptionalEntity()
RelationalEventgetOptionalEntity in interface RelationalEventnull.public AggregateChange getChange()
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.