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

MetaData specification API

    XMLWordPrintableJSON

Details

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

    Description

      We can specify MetaData via XML or annotations. The only way missing is via an API. I propose mirroring the XML structure with interfaces of the form

      public interface MetaData
      {
      addExtension(String key, String value);
      removeExtension(String key, String value);
      ...
      }

      public interface FileMetaData
      {
      addPackage(PackageMetaData pmd);
      ...
      }

      public interface PackageMetaData
      {
      addClass(ClassMetaData cmd)
      ...
      }

      public interface ClassMetaData
      {
      addField(FieldMetaData fmd)
      ...
      }

      public interface FieldMetaData
      {
      setInheritance(InheritanceMetaData inhmd)
      ...
      }

      and so on.

      We would then require a method on the PMF to register the metadata.

      If there are no objections to such a feature I'll propose a patch to try to provide all current JDO2 capabilities.

      Attachments

        1. type-2.patch
          5 kB
          Matthew T. Adams
        2. type.patch
          14 kB
          Matthew T. Adams
        3. lower-case-d-in-metadata.patch
          2 kB
          Matthew T. Adams
        4. jdometadata-6.patch
          2 kB
          Andy Jefferson
        5. BooleanProperties.patch
          1 kB
          Michael Bouschen

        Activity

          People

            clr Craig L Russell
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: