You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2005/10/24 17:34:50 UTC

svn commit: r328086 - /incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java

Author: clr
Date: Mon Oct 24 08:34:44 2005
New Revision: 328086

URL: http://svn.apache.org/viewcvs?rev=328086&view=rev
Log:
JDO-55 Changed javadoc for getObjectById to throw JDOObjectNotFoundException instead of JDODataStoreException

Modified:
    incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java?rev=328086&r1=328085&r2=328086&view=diff
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java Mon Oct 24 08:34:44 2005
@@ -277,8 +277,10 @@
      * <P>If the validate flag is <code>false</code>, and the instance does not exist in
      * the data store, then this method might not fail. It is an
      * implementation choice whether to fail immediately with a
-     * <code>JDODataStoreException</code>. But a subsequent access of the fields of the
-     * instance will throw a <code>JDODataStoreException</code> if the instance does not
+     * <code>JDOObjectNotFoundException</code>. But a subsequent access
+     * of the fields of the
+     * instance will throw a <code>JDOObjectNotFoundException</code>
+     * if the instance does not
      * exist at that time. Further, if a relationship is established to this
      * instance, then the transaction in which the association was made will
      * fail.
@@ -289,7 +291,8 @@
      * <P>If there is an instance already in the cache with the same JDO
      * identity as the <code>oid</code> parameter, but the instance is not transactional,
      * then it must be verified in the data store. If the instance does not
-     * exist in the datastore, then a <code>JDODataStoreException</code> is thrown.
+     * exist in the datastore, then a <code>JDOObjectNotFoundException</code>
+     * is thrown.
      * <P>If there is not an instance already in the cache with the same JDO
      * identity as the <code>oid</code> parameter, then this method creates an instance
      * with the specified JDO identity, verifies that it exists in the data