Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-667

Extend PersistenceManageFactory to return all known entity classes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 3 (3.0)
    • JDO 3.1-rc1
    • api, specification, tck
    • None

    Description

      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?

      Attachments

        1. JDO-667-tck.patch
          4 kB
          Andy Jefferson
        2. JDO-667-api.patch
          1.0 kB
          Andy Jefferson

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            clr Craig L Russell
            nlmarco Marco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment