public class DelegateFind extends Object implements InterceptFind
Can you used for testing purposes when you want to create a test double that only replaces some of the underlying functionality of the EbeanServer.
| Constructor and Description |
|---|
DelegateFind(com.avaje.ebean.EbeanServer delegate)
Construct with a EbeanServer to delegate to by default.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
find(Class<T> beanType,
Object id,
com.avaje.ebean.Transaction transaction) |
<T> void |
findEach(com.avaje.ebean.Query<T> query,
com.avaje.ebean.QueryEachConsumer<T> consumer,
com.avaje.ebean.Transaction transaction) |
<T> void |
findEachWhile(com.avaje.ebean.Query<T> query,
com.avaje.ebean.QueryEachWhileConsumer<T> consumer,
com.avaje.ebean.Transaction transaction) |
<T> com.avaje.ebean.FutureIds<T> |
findFutureIds(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> com.avaje.ebean.FutureList<T> |
findFutureList(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> com.avaje.ebean.FutureRowCount<T> |
findFutureRowCount(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> List<Object> |
findIds(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> List<T> |
findList(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> Map<?,T> |
findMap(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> com.avaje.ebean.PagedList<T> |
findPagedList(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> int |
findRowCount(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> Set<T> |
findSet(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> T |
findUnique(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> List<com.avaje.ebean.Version<T>> |
findVersions(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
void |
refresh(Object bean) |
void |
refreshMany(Object bean,
String propertyName) |
public DelegateFind(com.avaje.ebean.EbeanServer delegate)
This delegate will be used on all method calls that are not overwritten.
public void refresh(Object bean)
refresh in interface InterceptFindpublic void refreshMany(Object bean, String propertyName)
refreshMany in interface InterceptFindpublic <T> T findUnique(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findUnique in interface InterceptFindpublic <T> T find(Class<T> beanType, Object id, com.avaje.ebean.Transaction transaction)
find in interface InterceptFindpublic <T> int findRowCount(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findRowCount in interface InterceptFindpublic <T> List<Object> findIds(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findIds in interface InterceptFindpublic <T> void findEach(com.avaje.ebean.Query<T> query, com.avaje.ebean.QueryEachConsumer<T> consumer, com.avaje.ebean.Transaction transaction)
findEach in interface InterceptFindpublic <T> void findEachWhile(com.avaje.ebean.Query<T> query, com.avaje.ebean.QueryEachWhileConsumer<T> consumer, com.avaje.ebean.Transaction transaction)
findEachWhile in interface InterceptFindpublic <T> List<T> findList(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findList in interface InterceptFindpublic <T> com.avaje.ebean.FutureRowCount<T> findFutureRowCount(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findFutureRowCount in interface InterceptFindpublic <T> com.avaje.ebean.FutureIds<T> findFutureIds(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findFutureIds in interface InterceptFindpublic <T> com.avaje.ebean.FutureList<T> findFutureList(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findFutureList in interface InterceptFindpublic <T> com.avaje.ebean.PagedList<T> findPagedList(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findPagedList in interface InterceptFindpublic <T> Set<T> findSet(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findSet in interface InterceptFindpublic <T> Map<?,T> findMap(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findMap in interface InterceptFindpublic <T> List<com.avaje.ebean.Version<T>> findVersions(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
findVersions in interface InterceptFindCopyright © 2016. All rights reserved.