io.ebean.delegate.InterceptFindSqlQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean-mocker Show documentation
Show all versions of ebean-mocker Show documentation
Ability to set a Mockito mock EbeanServer as 'default' EbeanServer
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 findUnique(SqlQuery query, Transaction transaction);
void findEach(SqlQuery sqlQuery, Consumer consumer, Transaction transaction);
void findEachWhile(SqlQuery sqlQuery, Predicate consumer, Transaction transaction);
}