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 ma...@apache.org on 2005/09/26 23:41:52 UTC

svn commit: r291756 - /incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java

Author: madams
Date: Mon Sep 26 14:41:50 2005
New Revision: 291756

URL: http://svn.apache.org/viewcvs?rev=291756&view=rev
Log:
Resolves JDO-152.  Added missing "void close();" method to java/javax/jdo/datastore/JDOConnection.java.

Modified:
    incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java?rev=291756&r1=291755&r2=291756&view=diff
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/datastore/JDOConnection.java Mon Sep 26 14:41:50 2005
@@ -42,4 +42,16 @@
      * @since 2.0
      */
     Object getNativeConnection ();
-}
\ No newline at end of file
+    
+    /**
+     * Returns this connection to the JDO implementation.
+     * The object must be returned to the JDO implementation prior to
+     * calling any JDO method or performing any action on any persistent
+     * instance that might require the JDO implementation to use a
+     * connection. If the object has not been returned and the JDO
+     * implementation needs a connection, a <code>JDOUserException</code>
+     * is thrown.
+     * @since 2.0
+     */
+    void close();
+}