public class AfterDeleteEvent extends RelationalEventWithId
Identifier.Specified identifier. If the entity is empty or
not depends on the delete method used.source| Constructor and Description |
|---|
AfterDeleteEvent(Identifier.Specified id,
Optional<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, waitgetOptionalEntitypublic AfterDeleteEvent(Identifier.Specified id, Optional<Object> instance, AggregateChange change)
id - of the entity.instance - the deleted entity if it is available.change - the AggregateChange encoding the actions that were performed on the database as part of the
delete operation.public Optional<Object> getOptionalEntity()
RelationalEventgetOptionalEntity in interface RelationalEventnull.public AggregateChange getChange()
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.