public class RelationalEntityDeleteWriter extends Object implements EntityWriter<Object,MutableAggregateChange<?>>
DbActions inside a
MutableAggregateChangethat need to be executed against the database to recreate the appropriate state in the database. If the
MutableAggregateChangehas a reference to the entity and the entity has a version attribute, the delete will include an optimistic record locking check.
|Constructor and Description|
|Modifier and Type||Method and Description|
public RelationalEntityDeleteWriter(RelationalMappingContext context)
public void write(@Nullable Object id, MutableAggregateChange<?> aggregateChange)
MutableAggregateChangewith the necessary
DbActions to delete the aggregate root identified by
nullit is interpreted as "Delete all aggregates of the type indicated by the aggregateChange".
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.