Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2760

ObjectContext.userProperties need a way to clear properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0-M1
    • None
    • None

    Description

      I use ObjectContext.userProperties as a way of communicating state between DataChannel filters. Though it has some limitations that make it painful. The biggest one is that there's no way to remove a property stored. Even replacing the value with null doesn't work (setUserProperty("p", null) throws an exception).

      Let's implement the following API:

      ObjectContext.removeUserProperty(String)
      ObjectContext.clearUserProperties()
      

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m