|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlQueryListener
Provides a mechanism for processing a SqlQuery one SqlRow at a time.
This is useful when the query will return a large number of results and you want to process the beans one at a time rather than have all of the beans in memory at once.
SqlQueryListener listener = ...; SqlQuery query = Ebean.createSqlQuery("my.large.query"); // set the listener that will process each row one at a time query.setListener(listener); // execute the query. Note that the returned // list will be empty ... so don't bother assigning it... query.findList();
Method Summary | |
---|---|
void |
process(SqlRow bean)
Process the bean that has just been read. |
Method Detail |
---|
void process(SqlRow bean)
Note this bean will not be added to the List Set or Map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |