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] [Created] (CAY-2555) Use explicit ArcId in GraphChangeHandler methods
Date Thu, 21 Mar 2019 11:10:00 GMT
Nikita Timofeev created CAY-2555:
------------------------------------

             Summary: 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
             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