public class BeforeDeleteEvent extends RelationalEventWithId
AggregateChange is mutable and may be
changed in order to change the actions that get performed on the database as part of the delete operation.source| Constructor and Description |
|---|
BeforeDeleteEvent(Identifier.Specified id,
Optional<Object> entity,
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 BeforeDeleteEvent(Identifier.Specified id, Optional<Object> entity, AggregateChange change)
id - the id of the entityentity - the entity about to get deleted. Might be empty.change - the AggregateChange encoding the planned actions to be performed on the database.public Optional<Object> getOptionalEntity()
RelationalEventgetOptionalEntity in interface RelationalEventnull.public AggregateChange getChange()
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.