db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Inconsistency between API doc and spec?
Date Tue, 24 May 2005 15:16:52 GMT
Hi Craig,

is there an inconsistency between the API doc of method PM.getObjectById 
and the spec? The API doc defines that a JDODataStoreException might be 
thrown. The spec defines that an JDOObjectNotFoundException might be 
thrown (see below). Clearly, JDOObjectNotFoundException extends 

FYI: FOStore throws JDOObjectNotFoundException.


API doc:

If the <code>validate</code> flag is <code>true</code> ...
If the instance does not exist in the datastore, then a 
JDODataStoreException is thrown.


If the validate flag is true:
If there is an instance already in the cache with the same jdo identity 
as the oid parameter, the instance is not transactional, and the 
instance does not exist in the datastore, then a 
JDOObjectNotFoundException is thrown.
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/

View raw message