You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2007/11/07 17:25:51 UTC

[jira] Created: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

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


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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson updated JDO-548:
-------------------------------

    Attachment: api2-legacy.managedobjects.patch
                api2.managedobjects.patch

Patches for api2, and api2-legacy to add getManagedObjects() methods as per proposal

> 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
>         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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545282 ] 

Andy Jefferson commented on JDO-548:
------------------------------------

Patches applied to api2, and api2-legacy.

> 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
>            Assignee: 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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545656 ] 

Craig Russell commented on JDO-548:
-----------------------------------

If we want to cater for the most common cases, we could add these methods:
<T> Set<T> getManagedObjects(EnumSet<ObjectState> states, Class<T> clazz); 
<T> Set<T> getManagedObjects(Class<T> clazz); 

This avoids the capture conversion and least upper bounds issues and avoids a compile time warning: [unchecked] unchecked conversion in the simple case where one class is asked for. But it bloats the API.

My suggestion after all this is to add to the API just these four methods:
Set getManagedObjects(); 
Set getManagedObjects(EnumSet<ObjectState> states); 
Set getManagedObjects(Class... classes); 
Set getManagedObjects(EnumSet<ObjectState> states, Class... classes); 


> 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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@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)

<proposed>
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.
</proposed>

> 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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545581 ] 

Craig Russell commented on JDO-548:
-----------------------------------

After looking at the details of the specification, I'd like to amend the proposed interface to return a Set as well as to change the way the ObjectState is passed. 

The reason to return a Set is that there cannot be duplicates, and the semantics of Set do this well. 

The reason to return a Set<T> is for ease of use in case the classes contain a common superclass. This is 

The reason to take EnumSet as a parameter is that it is trivial to have the user do it and there is no trivial way for the implementation. Since the states parameter needs to efficiently filter results, it's most effective to use states.contains(candidate). 

Here's the proposed text for the specification (focus for now on the Java 5 version):

Set getManagedObjects();
Set getManagedObjects(EnumSet<ObjectState> states);
<T> Set<T> getManagedObjects(Class<T>... classes);
<T> Set<T>Set getManagedObjects(EnumSet<ObjectState> states, Class<T>... classes);

These methods return a set of managed instances that pass the criteria of states and classes. Managed instances for a specific instance of PersistenceManager are defined as those that return the PersistenceManager instance in response to JDOHelper.getPersistenceManager(). Instances are returned in the set that are both in one of the life cycle states identified in the EnumSet, and are assignable to any one or more of the Class instances in the classes parameter, including abstract classes and interfaces whether persistence-capable or not. 

For example, this returns all managed instances of type Employee, FullTimeEmployee, and PartTimeEmployee that are persistent new but not deleted:
Set<Employee> newEmployees = pm.getManagedObjects(EnumSet.of(ObjectState.PERSISTENT_NEW), Employee.class);

The Set returned might be lazily instantiated by the implementation. Operations performed after the getManagedObjects call that affect the set of instances managed by a PersistenceManager might affect the iteration of the result of the method call. For example, the effect of evict, makePersistent, or commit might or might not be reflected in the iteration of the result. As long as an Iterator on the result returns true to hasNext(), the result might change. To guarantee stability of the result, the result can be iterated until Iterator.hasNext() returns false.

This method can be used at any time, including during life cycle callbacks, life cycle event notifications, and Synchronization callbacks. A new set of managed instances is returned for each method call.


> 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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson updated JDO-548:
-------------------------------

    Attachment: api2-legacy.managedobjects.patch
                api2.managedobjects.patch

Updated patches to include
Collection getManagedObjects(Class... classes) (api2)
Collection getManagedObjects(Class[] classes) (api2-legacy)

> 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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson updated JDO-548:
-------------------------------

    Attachment:     (was: api2.managedobjects.patch)

> 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
>
>
> 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.


[jira] Resolved: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson resolved JDO-548.
--------------------------------

    Resolution: Fixed
      Assignee: Andy Jefferson

Signature files updated to add these methods
    Sending        jdo/trunk/tck2/src/conf/jdo-2_1-signatures.txt
    Transmitting file data ...
    Committed revision 604826.

> 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
>            Assignee: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: api2-legacy.managedobjects.patch, api2.managedobjects.patch, jdo-548.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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548553 ] 

Andy Jefferson commented on JDO-548:
------------------------------------

Looks ok to me.

> 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, jdo-548.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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548835 ] 

Craig Russell commented on JDO-548:
-----------------------------------

Committed changes to api2 and api2-legacy.

Still need to update signature files to accommodate the new signatures.

> 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, jdo-548.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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Matthew T. Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541572 ] 

Matthew T. Adams commented on JDO-548:
--------------------------------------

Could we include getManagedObject(Class...) as well?  It would return any managed objects assignable from the given class or interface.  Seems like low hanging fruit...

> 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.


[jira] Commented: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Craig Russell (JIRA)" <ji...@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 <T> 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<ObjectState> states); 
Set getManagedObjects(Class... classes); 
SetSet getManagedObjects(EnumSet<ObjectState> 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.


[jira] Assigned: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson reassigned JDO-548:
----------------------------------

    Assignee:     (was: Andy Jefferson)

Only remaining part is to update the spec with a description of the methods. Proposed text included earlier in the JIRA

> 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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Russell updated JDO-548:
------------------------------

    Attachment: jdo-548.patch

Please review this patch. I haven't updated the signatures yet; this is just the api change.

> 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, jdo-548.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.


[jira] Assigned: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson reassigned JDO-548:
----------------------------------

    Assignee: Andy Jefferson

> 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
>            Assignee: 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.


[jira] Updated: (JDO-548) PM.getManagedObjects() : access to the objects enlisted in a transaction

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson updated JDO-548:
-------------------------------

    Attachment:     (was: api2-legacy.managedobjects.patch)

> 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
>
>
> 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.