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 2019/03/21 11:10:00 UTC
[jira] [Created] (CAY-2555) Use explicit ArcId in
GraphChangeHandler methods
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)