google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Include EmptyQueryResults class for easier DAO implementation #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great to have an implementation of the QueryResults<T> interface 
for empty query results. I implemented a DOA using the BasicDAO class. I have a 
custom find method which can return an empty query result even before i query 
the mongodb itself (It does some work to narrow down the set of eligible 
documents).

In those cases i want to return an empty QueryResult. It's not a big deal to 
implement one but as the creation of custom find methods is encouraged in the 
documentation there should be an easy way to do so.

Version: Morphia 0.99.1-SNAPSHOT (Dec 14th 2011)

Original issue reported on code.google.com by the.ma...@gmail.com on 14 Dec 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Can you describe what a empty query result is? Is it just something which 
doesn't query the server?

Original comment by scotthernandez on 6 Feb 2012 at 2:14

GoogleCodeExporter commented 9 years ago
Without more definition I am closing this.

Original comment by scotthernandez on 17 Mar 2012 at 3:00