You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2022/10/13 14:48:00 UTC

[jira] [Closed] (CAY-2760) ObjectContext.userProperties need a way to clear properties

     [ https://issues.apache.org/jira/browse/CAY-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Timofeev closed CAY-2760.
--------------------------------
    Resolution: Fixed

> ObjectContext.userProperties need a way to clear properties
> -----------------------------------------------------------
>
>                 Key: CAY-2760
>                 URL: https://issues.apache.org/jira/browse/CAY-2760
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Andrus Adamchik
>            Assignee: Nikita Timofeev
>            Priority: Minor
>             Fix For: 4.3.M1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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:
> {noformat}
> ObjectContext.removeUserProperty(String)
> ObjectContext.clearUserProperties()
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)