public class AfterSave extends JdbcEventWithIdAndEntity
source
Constructor and Description |
---|
AfterSave(Identifier.Specified id,
Object instance,
AggregateChange change) |
Modifier and Type | Method and Description |
---|---|
AggregateChange |
getChange() |
Optional<Object> |
getOptionalEntity()
Returns the entity the event was triggered for.
|
getId
getTimestamp
getSource, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntity
getId, getOptionalEntity
public AfterSave(Identifier.Specified id, Object instance, AggregateChange change)
id
- identifier ofinstance
- the newly saved entity.change
- the AggregateChange
encoding the planned actions to be performed on the database.public Optional<Object> getOptionalEntity()
JdbcEvent
getOptionalEntity
in interface JdbcEvent
public AggregateChange getChange()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.