db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r328086 - /incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
Date Mon, 24 Oct 2005 15:34:50 GMT
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



Mime
View raw message