Cayenne
  1. Cayenne
  2. CAY-611

Support object invalidation in the ObjectContext interface

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: Core Library
    • Labels:
      None

      Description

      One omission in the 1.2 ObjectContext interface is a lack of "invalidate" functionality. Need to add it in 3.0. To communicate invalidate request via DataChannel we will need a special query (InvalidateQuery) that may either carry a list of ObjectIds or simply say "invalidate all"... We may or may not add a special method to the ObjectContext itself.

        Activity

        Hide
        Andrus Adamchik added a comment -

        CAY-632 should address this issue. Not sure if we should add an extra method that internally uses RefreshQuery. Probably we can mirror what JPA EntityManager API - add a "refresh" method for invalidating a single object... Drawback of that is that users will opt for this method to invalidate collections, which is much less efficient then doing it in bulk (ala DataContext.invalidateObjects).

        Show
        Andrus Adamchik added a comment - CAY-632 should address this issue. Not sure if we should add an extra method that internally uses RefreshQuery. Probably we can mirror what JPA EntityManager API - add a "refresh" method for invalidating a single object... Drawback of that is that users will opt for this method to invalidate collections, which is much less efficient then doing it in bulk (ala DataContext.invalidateObjects).
        Hide
        Andrus Adamchik added a comment -

        closing this for now - invalidation can be done via RefreshQuery... won't add any new methods to ObjectContext

        Show
        Andrus Adamchik added a comment - closing this for now - invalidation can be done via RefreshQuery... won't add any new methods to ObjectContext

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrus Adamchik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development