com.kenshoo.pl.entity.spi.MultiFieldValueSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.spi;
import com.kenshoo.pl.entity.Entity;
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 entity. In most of the cases should use {@link com.kenshoo.pl.entity.FieldsValueMapImpl}.
*
* @param entity entity before the change
* @return new values
*/
FieldsValueMap supply(Entity entity) throws ValidationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy