db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r770758 - in /db/jdo/trunk/api2/src/java/javax/jdo: PersistenceManagerFactory.java Query.java
Date Fri, 01 May 2009 17:08:22 GMT
Author: andyj
Date: Fri May  1 17:08:21 2009
New Revision: 770758

URL: http://svn.apache.org/viewvc?rev=770758&view=rev
Log:
JDO-623 patches for Query.cancel/cancelAll and PMF supported option

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java
    db/jdo/trunk/api2/src/java/javax/jdo/Query.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java?rev=770758&r1=770757&r2=770758&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java Fri May  1 17:08:21
2009
@@ -579,6 +579,7 @@
      * <BR>javax.jdo.option.TransactionIsolationLevel.repeatable-read
      * <BR>javax.jdo.option.TransactionIsolationLevel.snapshot
      * <BR>javax.jdo.option.TransactionIsolationLevel.serializable
+     * <BR>javax.jdo.option.QueryCancel
      * <BR>javax.jdo.query.SQL
      * <BR>javax.jdo.query.JDOQL
      * </code>

Modified: db/jdo/trunk/api2/src/java/javax/jdo/Query.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/Query.java?rev=770758&r1=770757&r2=770758&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/Query.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/Query.java Fri May  1 17:08:21 2009
@@ -717,7 +717,19 @@
      * Method to cancel any executing queries.
      * If the underlying datastore doesn't support cancellation of queries this will
      * throw JDOUnsupportedOptionException.
+     * If the cancellation fails (e.g in the underlying datastore) then this will throw
+     * a JDOException.
      * @since 2.3
      */
-    void cancel();
+    void cancelAll();
+
+    /**
+     * Method to cancel an executing query in the specified thread.
+     * If the underlying datastore doesn't support cancellation of queries this will
+     * throw JDOUnsupportedOptionException.
+     * If the cancellation fails (e.g in the underlying datastore) then this will throw
+     * a JDOException.
+     * @since 2.3
+     */
+    void cancel(Thread thread);
 }



Mime
View raw message