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] [Closed] (CAY-2555) Use explicit ArcId in GraphChangeHandler methods
Date Thu, 21 Mar 2019 12:15:01 GMT

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

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

> Use explicit ArcId in GraphChangeHandler methods
> ------------------------------------------------
>
>                 Key: CAY-2555
>                 URL: https://issues.apache.org/jira/browse/CAY-2555
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.M1
>
>
> {{GraphChangeHandler}} uses plain {{Object}} as arc identifier:
> {code:java}
> ..
> void arcCreated(Object nodeId, Object targetNodeId, Object arcId);
> void arcDeleted(Object nodeId, Object targetNodeId, Object arcId);
> ..
> {code}
> We can introduce {{ArcId}} object instead that can hold forward and reverse arc names:
> {code:java}
> public class ArcId {
>     private final String forwardArc;
>     private final String reverseArc;
>     // ...
> }
> {code}
> This change should simplify code maintenance and refactoring.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message