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

com.kenshoo.pl.entity.spi.MultiFieldValueSupplier 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.CurrentEntityState;
import com.kenshoo.pl.entity.EntityType;
import com.kenshoo.pl.entity.FieldsValueMap;

import java.util.Collection;

/**
 * A "delayed" supplied that specifies new values for a set of fields. A more complex version of {@link FieldValueSupplier}.
 *
 * @param  entity type
 * @see com.kenshoo.pl.entity.ChangeEntityCommand#set(Collection, MultiFieldValueSupplier)
 */
public interface MultiFieldValueSupplier> extends  FetchEntityFields {

    /**
     * Returns a set of new values given an existing  currentState. In most of the cases should use {@link com.kenshoo.pl.entity.FieldsValueMapImpl}.
     *
     * @param currentState entity before the change
     * @return new values
     */
    FieldsValueMap supply(CurrentEntityState currentState) throws ValidationException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy