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

com.kenshoo.pl.entity.spi.audit.AlwaysAuditedFieldsProvider 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.audit;

import com.kenshoo.pl.entity.EntityField;

import java.util.stream.Stream;

/**
 * For a given entity type, provides additional fields from other entities that should always be added to {@link com.kenshoo.pl.entity.audit.AuditRecord}-s of the given entity.
* These fields will be added with their current values only, and can be used as additional criteria for filtering / grouping the audit records in queries.
* @see com.kenshoo.pl.entity.annotation.audit.Audited */ public interface AlwaysAuditedFieldsProvider { /** * @return fields which should always be added to an {@link com.kenshoo.pl.entity.audit.AuditRecord} for a given entity type */ Stream> getFields(); /** * Empty implementation in case no additional fields are needed */ final class EmptyAlwaysAuditedFieldsProvider implements AlwaysAuditedFieldsProvider { @Override public Stream> getFields() { return Stream.empty(); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy