public class RelationalEventWithId extends ApplicationEvent implements WithId
SimpleRelationalEvent
guaranteed to have an identifier.source
Constructor and Description |
---|
RelationalEventWithId(Identifier.Specified id,
Optional<?> entity,
AggregateChange change) |
Modifier and Type | Method and Description |
---|---|
AggregateChange |
getChange()
Deprecated.
There is currently no replacement for this. If something like this is required please create an issue
outlining your use case.
|
Identifier.Specified |
getId()
Deprecated.
since 1.1, obtain the id from the entity instead.
|
Optional<Object> |
getOptionalEntity()
Returns the aggregate root the event was triggered for.
|
getTimestamp
getSource, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOptionalEntity
public RelationalEventWithId(Identifier.Specified id, Optional<?> entity, @Nullable AggregateChange change)
@Deprecated public Identifier.Specified getId()
Identifier.Specified
one.getId
in interface RelationalEvent
getId
in interface WithId
Identifier
. Guaranteed to be not null
.public Optional<Object> getOptionalEntity()
RelationalEvent
getOptionalEntity
in interface RelationalEvent
null
.@Deprecated public AggregateChange getChange()
AggregateChange
instance representing the SQL statements performed by the action that
triggered this event.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.