public class MappedRelationship extends Object implements Mappable
startNodeId - relationshipId - relationshipType - endNodeId
The relationshipId is recorded for relationship entities, and not for simple relationships.
The relationship direction is always OUTGOING from the startNodeId to the endNodeId.
The startNodeType and endNodeType represent the class type of the entities on either end of the relationship, and may be a relationship entity class.| Constructor and Description |
|---|
MappedRelationship(long startNodeId,
String relationshipType,
long endNodeId,
Long relationshipId,
Class startNodeType,
Class endNodeType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getEndNodeId() |
Class |
getEndNodeType() |
Long |
getRelationshipId() |
String |
getRelationshipType() |
long |
getStartNodeId() |
Class |
getStartNodeType() |
int |
hashCode() |
String |
toString() |
public long getStartNodeId()
getStartNodeId in interface Mappablepublic String getRelationshipType()
getRelationshipType in interface Mappablepublic long getEndNodeId()
getEndNodeId in interface Mappablepublic Long getRelationshipId()
public Class getEndNodeType()
getEndNodeType in interface Mappablepublic Class getStartNodeType()
getStartNodeType in interface MappableCopyright © 2015–2020 Neo Technology, Inc.. All rights reserved.