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

Level 2 Caching ability to restrict what classes/fields are cahed

    XMLWordPrintableJSON

Details

    Description

      Having more control over what goes into an L2 cache is desirable for some systems. Currently JDO(2) provides no control other than the pin/unpin/evict methods on the DataStoreCache. One way of providing more control would be to allow specification via metadata (XML/annotations) for classes/fields.

      1. Add a "cacheable" attribute to class/field XML elements with default value of "true".
      2. Add a "cacheable" property to @PersistenceCapable/@Persistent with default value of true.
      3. Add a new annotation @Cacheable applicable to class/field/property

      The user can then define particular classes to never be L2 cached, and also particular fields to never be L2 cached.

      Attachments

        1. jdo-599.patch
          1 kB
          Craig L Russell
        2. api2-legacy_schema.patch
          93 kB
          Andy Jefferson
        3. api2_schema.patch
          93 kB
          Andy Jefferson
        4. api2_annotations.patch
          3 kB
          Andy Jefferson

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: