[ 
https://issues.apache.org/jira/browse/JDO-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474840#comment-13474840
 ] 

Craig L Russell commented on JDO-667:
-------------------------------------

The following was added to Chapter 11:

11.11 Managed Classes
Users may obtain a collection of classes that are being managed by the 
PersistenceManagerFactory. These classes include those that have been 
referenced by any PersistenceManager instances obtained from this 
PersistenceManagerFactory, using methods such as getExtent, newQuery, 
newInstance, and makePersistent. Other classes that were loaded by the 
implementation based on policy or implementation-specific features might also 
be returned.
The permission getMetadata must be granted to the caller or a SecurityException 
is thrown. 
Collection<Class> getManagedClasses();
                
> Extend PersistenceManageFactory to return all known entity classes
> ------------------------------------------------------------------
>
>                 Key: JDO-667
>                 URL: https://issues.apache.org/jira/browse/JDO-667
>             Project: JDO
>          Issue Type: New Feature
>          Components: api, specification, tck
>    Affects Versions: JDO 3 (3.0)
>            Reporter: Marco
>            Assignee: Craig L Russell
>             Fix For: JDO 3 maintenance release 1 (3.1)
>
>         Attachments: JDO-667-api.patch, JDO-667-tck.patch
>
>
> JDO 3 now has the ability to declare meta-data programmatically. Part of this 
> feature is the ability to ask the PersistenceManagerFactory via the method 
> getMetadata(java.lang.String) for the meta-data of one single class. But 
> there is no way to list all known classes.
> I therefore kindly ask for a new method in PersistenceManagerFactory like 
> this:
> Collection<String> getClassesWithMetadata();
> Btw., this is Andy's suggestion posted here: 
> http://www.datanucleus.org/servlet/forum/viewthread_thread,6379#33224
> I'd greatly appreciate, if this method became a part of JDO 3.1.
> Edit 1: I just saw the various overloaded methods getManagedObjects(...) in 
> PersistenceManager - maybe the alternative method name "getManagedClasses()" 
> would be more consistent?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to