Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 30841 invoked from network); 26 Jun 2005 20:55:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2005 20:55:36 -0000 Received: (qmail 14306 invoked by uid 500); 26 Jun 2005 20:55:35 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 14292 invoked by uid 99); 26 Jun 2005 20:55:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2005 13:55:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.154.194.149] (HELO miraculix.spree.de) (62.154.194.149) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2005 13:55:35 -0700 Received: from [172.16.2.80] (vpn-server [192.168.16.104]) by miraculix.spree.de (8.11.6/8.11.6) with ESMTP id j5QKtTv06974 for ; Sun, 26 Jun 2005 22:55:29 +0200 Message-ID: <42BF163D.2040701@spree.de> Date: Sun, 26 Jun 2005 22:55:25 +0200 From: Michael Bouschen Organization: Tech@Spree Engineering User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Another api20 change Content-Type: multipart/mixed; boundary="------------050805000500070708010300" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------050805000500070708010300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Tech@Spree Engineering GmbH mailto:mbo.tech@spree.de http://www.tech.spree.de/ Tel.:++49/30/235 520-33 Buelowstr. 66 Fax.:++49/30/2175 2012 D-10783 Berlin --------------050805000500070708010300 Content-Type: text/plain; name="mbo-api20-changes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mbo-api20-changes.patch" 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 true. + * + *

Transient instances return false. + *

+ * @see PersistenceManager#detachCopy(Object pc) + * @param pc the calling PersistenceCapable instance + * @return true if this instance was detached. + boolean isDetached(PersistenceCapable pc); /** Return the PersistenceManager that owns this instance. * @param pc the calling PersistenceCapable 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 Class of candidate instances * @param queryName the name of the query to look up in metadata * @return the new Query + * @since 2.0 */ Query newNamedQuery (Class cls, String queryName); @@ -323,6 +324,7 @@ * equivalent to 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 @@ * PersistenceManager, the default is the cache should be ignored for queries. * @return the ignoreCache setting. */ - boolean getIgnoreCache(); + boolean getIgnoreCache(); + /** * Detach the specified object from the PersistenceManager. * @param pc the instance to detach --------------050805000500070708010300--