001package io.ebeanservice.docstore.api; 002 003import java.io.IOException; 004 005/** 006 * Update the document store using a Ebean ORM query. 007 * <p> 008 * Executes a forEach query and updates the document store with the bean object graph returned by the query. 009 * </p> 010 */ 011public interface DocStoreQueryUpdate<T> { 012 013 /** 014 * Process the bean storing in the document store. 015 */ 016 void store(Object idValue, T bean) throws IOException; 017 018 /** 019 * Flush the changes to the document store. 020 */ 021 void flush() throws IOException; 022 023}