Package com.kenshoo.pl.entity.spi
Interface OutputGenerator<E extends EntityType<E>>
-
- Type Parameters:
E- entity type
- All Superinterfaces:
CurrentStateConsumer<E>
- All Known Implementing Classes:
DbCommandsOutputGenerator,FakeAutoIncGenerator,InitialStateRecorder
public interface OutputGenerator<E extends EntityType<E>> extends CurrentStateConsumer<E>
To be implemented by a component that produces some sort of output given the set of commands. Calling output generators is the last stage of the persistence flow. All output generators are executed by the framework in the same DB transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation changeOperation, ChangeContext changeContext)Produces some sort of output given a set of entity changes.-
Methods inherited from interface com.kenshoo.pl.entity.spi.CurrentStateConsumer
getSupportedChangeOperation, requiredFields
-
-
-
-
Method Detail
-
generate
void generate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation changeOperation, ChangeContext changeContext)
Produces some sort of output given a set of entity changes.- Parameters:
entityChanges- a valid subset of the changes initially submitted to the persistence layerchangeOperation-changeContext- modification context
-
-