Package org.neo4j.cdc.client.model
Class RelationshipEvent
- java.lang.Object
-
- org.neo4j.cdc.client.model.EntityEvent<RelationshipState>
-
- org.neo4j.cdc.client.model.RelationshipEvent
-
- All Implemented Interfaces:
Event
public class RelationshipEvent extends EntityEvent<RelationshipState>
Describes a change event related to a relationship.
-
-
Constructor Summary
Constructors Constructor Description RelationshipEvent(String elementId, String type, Node start, Node end, List<Map<String,Object>> keys, EntityOperation operation, RelationshipState before, RelationshipState after)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static RelationshipEventfromMap(Map<?,?> map)NodegetEnd()End node of the relationship.List<Map<String,Object>>getKeys()The keys identifying the changed entity.NodegetStart()Start node of the relationship.StringgetType()Type of the relationship.inthashCode()StringtoString()-
Methods inherited from class org.neo4j.cdc.client.model.EntityEvent
getAfter, getBefore, getElementId, getEventType, getOperation
-
-
-
-
Constructor Detail
-
RelationshipEvent
public RelationshipEvent(String elementId, String type, Node start, Node end, List<Map<String,Object>> keys, EntityOperation operation, RelationshipState before, RelationshipState after)
-
-
Method Detail
-
getStart
public Node getStart()
Start node of the relationship.- Returns:
- start node
-
getEnd
public Node getEnd()
End node of the relationship.- Returns:
- end node
-
getType
public String getType()
Type of the relationship.- Returns:
- relationship type
-
getKeys
public List<Map<String,Object>> getKeys()
The keys identifying the changed entity. This requires key constraints defined on the changed relationships.- Returns:
- list of key properties
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classEntityEvent<RelationshipState>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntityEvent<RelationshipState>
-
fromMap
public static RelationshipEvent fromMap(Map<?,?> map)
-
-