nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

[Improvement] Add a Database.getDocumentOrNull() method with <null> result instead of NotFoundException #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Exceptions in the JVM are very costly compared to a simple result-value.
Please provide a method which returns <null> in case of a not found document.
Thanks.

Original issue reported on code.google.com by developm...@mj-networks-gmbh.de on 14 Feb 2010 at 10:41

GoogleCodeExporter commented 8 years ago
Is implemented in r245 as 

<D> D findDocument(Class<D> cls, String docId, JSONParser parser)

Following the couchdb implementation of not sending a 404 in case of a wrong
revision, special revision handling is not supported in findDocument.

Original comment by ff...@gmx.de on 14 Feb 2010 at 4:42