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 an...@apache.org on 2008/06/27 07:46:14 UTC

svn commit: r672119 - in /db/jdo/trunk: api2-legacy/src/java/javax/jdo/PersistenceManagerFactory.java api2/src/java/javax/jdo/PersistenceManagerFactory.java

Author: andyj
Date: Thu Jun 26 22:46:14 2008
New Revision: 672119

URL: http://svn.apache.org/viewvc?rev=672119&view=rev
Log:
JDO-597 setReadOnly, getReadOnly methods for the PMF

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

Modified: db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManagerFactory.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManagerFactory.java?rev=672119&r1=672118&r2=672119&view=diff
==============================================================================
--- db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManagerFactory.java (original)
+++ db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManagerFactory.java Thu Jun 26 22:46:14 2008
@@ -465,6 +465,26 @@
      */
     String getTransactionType();
 
+    /** Gets the value for read-only for this PMF.
+     * Indicates whether the datastore is readonly or writable.
+     * @see #setReadOnly(boolean)
+     * @since 2.2
+     * @return the readOnly setting.
+     */
+    boolean getReadOnly();
+
+    /** Sets the value for whether the datastore is to be considered
+     * read-only.
+     *
+     * <P>ReadOnly set to <code>false</code> specifies that no updates
+     * can be performed to the datastore, and if updates are attempted
+     * a JDOReadOnlyException is thrown.
+     *
+     * @see #getReadOnly()
+     * @since 2.2
+     */
+    void setReadOnly(boolean flag);
+
     /** Return non-configurable properties of this 
      * <code>PersistenceManagerFactory</code>.
      * Properties with keys <code>VendorName</code> and 

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=672119&r1=672118&r2=672119&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java Thu Jun 26 22:46:14 2008
@@ -465,6 +465,26 @@
      */
     String getTransactionType();
 
+    /** Gets the value for read-only for this PMF.
+     * Indicates whether the datastore is read-only or writable.
+     * @see #setReadOnly(boolean)
+     * @since 2.2
+     * @return the readOnly setting.
+     */
+    boolean getReadOnly();
+
+    /** Sets the value for whether the datastore is to be considered
+     * read-only.
+     *
+     * <P>ReadOnly set to <code>false</code> specifies that no updates
+     * can be performed to the datastore, and if updates are attempted
+     * a JDOReadOnlyException is thrown.
+     *
+     * @see #getReadOnly()
+     * @since 2.2
+     */
+    void setReadOnly(boolean flag);
+
     /** Return non-configurable properties of this 
      * <code>PersistenceManagerFactory</code>.
      * Properties with keys <code>VendorName</code> and