|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BeanFinder<T>
Used to override the finding implementation for a bean.
For beans that are not in a JDBC data source you can implement this handle bean finding. For example, read a log file building each entry as a bean and returning that.
There are a number of internal BeanFinders in Ebean to return meta data from Ebean at runtime such as query execution statistics etc. See the beans in com.avaje.ebean.meta and finders in com.avaje.ebean.server.meta.
| Method Summary | |
|---|---|
T |
find(BeanQueryRequest<T> request)
Find a bean using its id or unique predicate. |
BeanCollection<T> |
findMany(BeanQueryRequest<T> request)
Return a List, Set or Map for the given find request. |
| Method Detail |
|---|
T find(BeanQueryRequest<T> request)
BeanCollection<T> findMany(BeanQueryRequest<T> request)
Note the returning object is cast to a List Set or Map so you do need to get the return type right.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||