cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2341) Smarter indexOf() in IncrementalFaultList implementations
Date Fri, 28 Jul 2017 10:47:00 GMT

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

Nikita Timofeev updated CAY-2341:
---------------------------------
    Description: 
One case where current implementation of {{IncrementalFaultList}} (as well as {{RemoteIncrementalList}})
can be improved is getting {{indexOf}} element in that list.  
In current implementation {{indexOf}} is not really useful, as it will try to find only full
{{Persistent}} object via {{equals()}}, rejecting non {{Persistent}} argument and not resolving
anything, so it is impossible to check presence of an object if it in unresolved part of the
list.

Improved implementation can be more intelligent and find either {{Persistent}} or it's {{ObjectId}},
thus allowing to check object presence in partially resolved FaultList. Similarly {{DataRow}}
based version can be improved.

  was:
One case where current implementation of {{IncrementalFaultList}} can be improved is getting
{{indexOf}} element in that list.  
In current implementation {{indexOf}} is not really useful, as it will try to find only full
{{Persistent}} object via {{equals()}}, rejecting non {{Persistent}} argument and not resolving
anything, so it is impossible to check presence of an object if it in unresolved part of the
list.

Improved implementation can be more intelligent and find either {{Persistent}} or it's {{ObjectId}},
thus allowing to check object presence in partially resolved FaultList. Similarly {{DataRow}}
based version can be improved.


> Smarter indexOf() in IncrementalFaultList implementations
> ---------------------------------------------------------
>
>                 Key: CAY-2341
>                 URL: https://issues.apache.org/jira/browse/CAY-2341
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library, ROP
>            Reporter: Nikita Timofeev
>            Priority: Minor
>
> One case where current implementation of {{IncrementalFaultList}} (as well as {{RemoteIncrementalList}})
can be improved is getting {{indexOf}} element in that list.  
> In current implementation {{indexOf}} is not really useful, as it will try to find only
full {{Persistent}} object via {{equals()}}, rejecting non {{Persistent}} argument and not
resolving anything, so it is impossible to check presence of an object if it in unresolved
part of the list.
> Improved implementation can be more intelligent and find either {{Persistent}} or it's
{{ObjectId}}, thus allowing to check object presence in partially resolved FaultList. Similarly
{{DataRow}} based version can be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message