Package com.kenshoo.pl.entity.internal
Class DbCommandsOutputGenerator<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.internal.DbCommandsOutputGenerator<E>
-
- All Implemented Interfaces:
CurrentStateConsumer<E>,OutputGenerator<E>
public class DbCommandsOutputGenerator<E extends EntityType<E>> extends java.lang.Object implements OutputGenerator<E>
-
-
Constructor Summary
Constructors Constructor Description DbCommandsOutputGenerator(E entityType, PLContext plContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation operator, ChangeContext changeContext)Produces some sort of output given a set of entity changes.java.util.stream.Stream<? extends EntityField<?,?>>requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.kenshoo.pl.entity.spi.CurrentStateConsumer
getSupportedChangeOperation
-
-
-
-
Method Detail
-
generate
public void generate(java.util.Collection<? extends EntityChange<E>> entityChanges, ChangeOperation operator, ChangeContext changeContext)
Description copied from interface:OutputGeneratorProduces some sort of output given a set of entity changes.- Specified by:
generatein interfaceOutputGenerator<E extends EntityType<E>>- Parameters:
entityChanges- a valid subset of the changes initially submitted to the persistence layerchangeContext- modification context
-
requiredFields
public java.util.stream.Stream<? extends EntityField<?,?>> requiredFields(java.util.Collection<? extends EntityField<E,?>> fieldsToUpdate, ChangeOperation changeOperation)
- Specified by:
requiredFieldsin interfaceCurrentStateConsumer<E extends EntityType<E>>
-
-