Hi,
attached you find some changes of the api20 project. It adds method isDetached to the StateManager interface and add since tags to two PM methods.
Regards Michael
--
Michael Bouschen [EMAIL PROTECTED] Engineering GmbH
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin
Index: src/java/javax/jdo/spi/StateManager.java
===================================================================
--- src/java/javax/jdo/spi/StateManager.java (revision 201765)
+++ src/java/javax/jdo/spi/StateManager.java (working copy)
@@ -119,6 +119,17 @@
* in the current transaction.
*/
boolean isDeleted(PersistenceCapable pc);
+
+ /** Tests whether this object has been detached.
+ *
+ * Instances that have been detached return <code>true</code>.
+ *
+ *<P>Transient instances return <code>false</code>.
+ *<P>
+ * @see PersistenceManager#detachCopy(Object pc)
+ * @param pc the calling <code>PersistenceCapable</code> instance
+ * @return <code>true</code> if this instance was detached.
+ boolean isDetached(PersistenceCapable pc);
/** Return the <code>PersistenceManager</code> that owns this instance.
* @param pc the calling <code>PersistenceCapable</code> instance
Index: src/java/javax/jdo/PersistenceManager.java
===================================================================
--- src/java/javax/jdo/PersistenceManager.java (revision 201765)
+++ src/java/javax/jdo/PersistenceManager.java (working copy)
@@ -224,6 +224,7 @@
* @param cls the <code>Class</code> of candidate instances
* @param queryName the name of the query to look up in metadata
* @return the new <code>Query</code>
+ * @since 2.0
*/
Query newNamedQuery (Class cls, String queryName);
@@ -323,6 +324,7 @@
* equivalent to <code>getObjectById(oid, true);
* @param oid The object id of the object to load
* @return the corresponding persistent instance
+ * @since 2.0
*/
Object getObjectById (Object oid);
@@ -691,7 +693,8 @@
* <code>PersistenceManager</code>, the default is the cache should be ignored for queries.
* @return the ignoreCache setting.
*/
- boolean getIgnoreCache();
+ boolean getIgnoreCache();
+
/**
* Detach the specified object from the <code>PersistenceManager</code>.
* @param pc the instance to detach