Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 23995 invoked from network); 26 Nov 2007 23:52:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 23:52:04 -0000 Received: (qmail 11513 invoked by uid 500); 26 Nov 2007 23:51:52 -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 11502 invoked by uid 99); 26 Nov 2007 23:51:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 15:51:52 -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; Mon, 26 Nov 2007 23:51:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4293C71422B for ; Mon, 26 Nov 2007 15:51:44 -0800 (PST) Message-ID: <1490442.1196121104269.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 15:51:44 -0800 (PST) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (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:comment-tabpanel#action_12545651 ] Craig Russell commented on JDO-548: ----------------------------------- After looking at this in more detail, I don't think we can use type in the signature due to capture conversions and least upper bounds issues. Here's what I've been able to get to work: Set getManagedObjects(); Set getManagedObjects(EnumSet states); Set getManagedObjects(Class... classes); SetSet getManagedObjects(EnumSet states, Class... classes); With this, we need to define the behavior if states and/or classes is empty or null: If states is empty (states.size() == 0) or null, instances in all states are returned. If classes is empty (classes.size() == 0) or null, managed instances of all types are returned. > 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.