io.ebean.delegate.InterceptFindSqlQuery Maven / Gradle / Ivy
package io.ebean.delegate;
import io.ebean.SqlQuery;
import io.ebean.SqlRow;
import io.ebean.Transaction;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
/**
* Interception for SqlQuery.
*/
public interface InterceptFindSqlQuery {
List findList(SqlQuery query, Transaction transaction);
SqlRow findOne(SqlQuery query, Transaction transaction);
void findEach(SqlQuery sqlQuery, Consumer consumer, Transaction transaction);
void findEachWhile(SqlQuery sqlQuery, Predicate consumer, Transaction transaction);
}