001package io.ebean.event.changelog;
002
003import io.ebean.event.BeanPersistRequest;
004
005/**
006 * Used to provide fine grained control over what persist requests are included in the change log.
007 */
008public interface ChangeLogFilter {
009
010  /**
011   * Return true if this insert request should be included in the change log.
012   */
013  boolean includeInsert(BeanPersistRequest<?> insertRequest);
014
015  /**
016   * Return true if this update request should be included in the change log.
017   */
018  boolean includeUpdate(BeanPersistRequest<?> updateRequest);
019
020  /**
021   * Return true if this delete request should be included in the change log.
022   */
023  boolean includeDelete(BeanPersistRequest<?> deleteRequest);
024
025}