db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1676909 - in /db/jdo/trunk/api/src/java/javax/jdo: PersistenceManager.java Query.java
Date Thu, 30 Apr 2015 07:05:06 GMT
Author: andyj
Date: Thu Apr 30 07:05:06 2015
New Revision: 1676909

URL: http://svn.apache.org/r1676909
Log:
JDO-735 Add AutoCloseable to PM and Query

Modified:
    db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/api/src/java/javax/jdo/Query.java

Modified: db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java?rev=1676909&r1=1676908&r2=1676909&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java Thu Apr 30 07:05:06 2015
@@ -19,7 +19,6 @@
  * PersistenceManager.java
  *
  */
- 
 package javax.jdo;
 
 import java.util.Collection;
@@ -44,7 +43,7 @@ import javax.jdo.listener.InstanceLifecy
  * @version 2.1
  */
 
-public interface PersistenceManager {
+public interface PersistenceManager extends AutoCloseable {
     /** 
      * A <code>PersistenceManager</code> instance can be used until it is 
      * closed.

Modified: db/jdo/trunk/api/src/java/javax/jdo/Query.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/Query.java?rev=1676909&r1=1676908&r2=1676909&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/Query.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/Query.java Thu Apr 30 07:05:06 2015
@@ -90,8 +90,7 @@ import java.util.Map;
  * for this execution, and are not remembered for future execution.
  * @version 2.1
  */
-
-public interface Query extends Serializable {
+public interface Query extends AutoCloseable, Serializable {
     
     /**
      * The string constant used as the first argument to 



Mime
View raw message