Package | Description |
---|---|
org.springframework.data.relational.core.conversion | |
org.springframework.data.relational.core.mapping.event |
Modifier and Type | Method and Description |
---|---|
static <T> AggregateChange<T> |
AggregateChange.forDelete(Class<T> entityClass,
T entity)
Factory method to create an
AggregateChange for deleting entities. |
static <T> AggregateChange<T> |
AggregateChange.forDelete(T entity)
Factory method to create an
AggregateChange for deleting entities. |
static <T> AggregateChange<T> |
AggregateChange.forSave(T entity)
Factory method to create an
AggregateChange for saving entities. |
Modifier and Type | Method and Description |
---|---|
void |
RelationalEntityInsertWriter.write(Object root,
AggregateChange<?> aggregateChange) |
void |
RelationalEntityWriter.write(Object root,
AggregateChange<?> aggregateChange) |
void |
RelationalEntityUpdateWriter.write(Object root,
AggregateChange<?> aggregateChange) |
void |
RelationalEntityDeleteWriter.write(Object id,
AggregateChange<?> aggregateChange)
Fills the provided
AggregateChange with the necessary DbAction s to delete the aggregate root
identified by id . |
Modifier and Type | Method and Description |
---|---|
T |
BeforeDeleteCallback.onBeforeDelete(T aggregate,
AggregateChange<T> aggregateChange)
Entity callback method invoked before an aggregate root is deleted.
|
T |
BeforeSaveCallback.onBeforeSave(T aggregate,
AggregateChange<T> aggregateChange)
Entity callback method invoked before an aggregate root is saved.
|
Constructor and Description |
---|
AfterDeleteEvent(Identifier.Specified id,
Optional<?> instance,
AggregateChange change) |
AfterSaveEvent(Identifier.Specified id,
Object instance,
AggregateChange change) |
BeforeConvertEvent(Identifier.Specified id,
Object instance,
AggregateChange change) |
BeforeDeleteEvent(Identifier.Specified id,
Optional<?> entity,
AggregateChange change) |
BeforeSaveEvent(Identifier id,
Object instance,
AggregateChange change) |
RelationalEventWithId(Identifier.Specified id,
Optional<?> entity,
AggregateChange change) |
RelationalEventWithIdAndEntity(Identifier.Specified id,
Object entity,
AggregateChange change) |
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.