Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 40242 invoked from network); 10 Nov 2007 16:44:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2007 16:44:12 -0000 Received: (qmail 32711 invoked by uid 500); 10 Nov 2007 16:43:59 -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 32700 invoked by uid 99); 10 Nov 2007 16:43:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2007 08:43:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2007 16:44:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EB74A714240 for ; Sat, 10 Nov 2007 08:43:50 -0800 (PST) Message-ID: <3447713.1194713030962.JavaMail.jira@brutus> Date: Sat, 10 Nov 2007 08:43:50 -0800 (PST) From: "Andy Jefferson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction In-Reply-To: <20780970.1194452751130.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Jefferson updated JDO-548: ------------------------------- Fix Version/s: JDO 2 maintenance release 1 Proposed JDO2 spec (end of 12.6.7) Collection getManagedObjects(); Collection getManagedObjects(ObjectState... states); These methods provide access to the objects enlisted in the current transaction of the PersistenceManager. The second method returns just those objects that are in the required object states. > PM.getManagedObjects() : access to the objects enlisted in a transaction > ------------------------------------------------------------------------ > > Key: JDO-548 > URL: https://issues.apache.org/jira/browse/JDO-548 > Project: JDO > Issue Type: New Feature > Components: api2, api2-legacy, specification > Reporter: Andy Jefferson > Fix For: JDO 2 maintenance release 1 > > Attachments: api2-legacy.managedobjects.patch, api2.managedobjects.patch > > > It would be desirable to provide access to the objects enlisted in the transaction of a PersistenceManager. It is proposed that this be via the following methods on javax.jdo.PersistenceManager. > api2 > Collection getManagedObjects(); // Return all enlisted objects > Collection getManagedObjects(ObjectState ... states); // Return enlisted objects in the specified states > api2-legacy > Collection getManagedObjects(); // Return all enlisted objects > The return type could just as easily be Object[]. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.