db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r767395 - in /db/jdo/trunk/api2/src/java/javax/jdo: Query.java Transaction.java
Date Wed, 22 Apr 2009 07:22:25 GMT
Author: andyj
Date: Wed Apr 22 07:22:25 2009
New Revision: 767395

URL: http://svn.apache.org/viewvc?rev=767395&view=rev
Log:
JDO-619 Patch for "serializeRead" applied

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

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=767395&r1=767394&r2=767395&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/Query.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/Query.java Wed Apr 22 07:22:25 2009
@@ -720,4 +720,21 @@
      * @since 2.3
      */
     void cancel();
+
+    /**
+     * If <code>true</code>, any objects returned by this query will add 
+     * a lock on all retrieved objects.
+     * <P>If <code>false</code> then retrieved objects will not be locked.
+     * If null then it is left to the implementation to decide over locking.
+     * @param serialize the value of the serializeRead property
+     * @since 2.3
+     */
+    void setSerializeRead(Boolean serialize);
+
+    /**
+     * Return the current value of the serializeRead property.
+     * @return the value of the serializeRead property
+     * @since 2.3
+     */
+    Boolean getSerializeRead();
 }

Modified: db/jdo/trunk/api2/src/java/javax/jdo/Transaction.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/Transaction.java?rev=767395&r1=767394&r2=767395&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/Transaction.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/Transaction.java Wed Apr 22 07:22:25 2009
@@ -38,9 +38,8 @@
  * environment. When used in a managed environment, transaction initiation 
  * and completion methods may only be used with bean-managed transaction 
  * semantics.
- * @version 2.2
+ * @version 2.3
  */
-
 public interface Transaction
 {
     /** Begin a transaction.  The type of transaction is determined by the
@@ -229,4 +228,21 @@
      * <code>Transaction</code> instance
      */
     PersistenceManager getPersistenceManager();
+    
+    /**
+     * If <code>true</code>, any read of objects in this transaction will add

+     * a lock on all retrieved objects. 
+     * <P>If <code>false</code> then retrieved objects will not be locked.
+     * If null then it is left to the implementation to decide over locking.
+     * @param serialize the value of the serializeRead property
+     * @since 2.3
+     */
+    void setSerializeRead(Boolean serialize);
+    
+    /**
+     * Return the current value of the serializeRead property.
+     * @return the value of the serializeRead property
+     * @since 2.3
+     */
+    Boolean getSerializeRead();
 }



Mime
View raw message