Class BeforeConvertEvent<E>

All Implemented Interfaces:
Serializable, RelationalEvent<E>, WithEntity<E>

public class BeforeConvertEvent<E> extends RelationalEventWithEntity<E>
Gets published before an aggregate gets converted into a database change.
Since:
1.1
Author:
Jens Schauder, Mark Paluch
See Also:
  • Constructor Details

    • BeforeConvertEvent

      public BeforeConvertEvent(E instance)
      Parameters:
      instance - the saved entity. Must not be null.
      Since:
      2.1.4
    • BeforeConvertEvent

      @Deprecated public BeforeConvertEvent(E instance, AggregateChange<E> change)
      Deprecated.
      since 2.1.4, use BeforeConvertEvent(Object) as we don't expect an AggregateChange before converting an aggregate.
      Parameters:
      instance - the saved entity. Must not be null.
      change - the AggregateChange encoding the actions to be performed on the database as change. Since this event is fired before the conversion the change is actually empty, but contains information if the aggregate is considered new in AggregateChange.getKind(). Must not be null.