Class BeforeDeleteEvent<E>

All Implemented Interfaces:
Serializable, ResolvableTypeProvider, RelationalEvent<E>, WithAggregateChange<E>, WithId<E>

public class BeforeDeleteEvent<E> extends RelationalDeleteEvent<E>
Gets published when an entity is about to get deleted.
Author:
Jens Schauder
See Also:
  • Constructor Details

    • BeforeDeleteEvent

      public BeforeDeleteEvent(Identifier id, @Nullable E entity, AggregateChange<E> change)
      Parameters:
      id - the id of the entity. Must not be null.
      entity - the entity about to get deleted. May be null.
      change - the AggregateChange containing the planned actions to be performed on the database.