All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kenshoo.pl.entity.spi.OutputGenerator Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
package com.kenshoo.pl.entity.spi;

import com.kenshoo.pl.entity.ChangeContext;
import com.kenshoo.pl.entity.ChangeOperation;
import com.kenshoo.pl.entity.EntityChange;
import com.kenshoo.pl.entity.EntityType;

import java.util.Collection;

/**
 * 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.
 *
 * @param  entity type
 */
public interface OutputGenerator> extends CurrentStateConsumer {

    /**
     * Produces some sort of output given a set of entity changes.
     *  @param entityChanges a valid subset of the changes initially submitted to the persistence layer
     * @param changeOperation
     * @param changeContext modification context
     */
    void generate(Collection> entityChanges, ChangeOperation changeOperation, ChangeContext changeContext);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy