- All Superinterfaces:
Entity,MapAccessor
The Relationship interface describes the characteristics of a relationship from a Neo4j graph.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionId of the node where this relationship ends.longDeprecated.booleanTest if this relationship has the given typeId of the node where this relationship starts.longDeprecated.superseded bystartNodeElementId()type()Return the type of this relationship.Methods inherited from interface org.neo4j.driver.types.MapAccessor
asMap, asMap, containsKey, get, keys, size, values, values
-
Method Details
-
startNodeId
Deprecated.superseded bystartNodeElementId()Id of the node where this relationship starts.Please note that depending on server configuration numeric id might not be available and accessing it will result in
IllegalStateException.- Returns:
- the node id
-
startNodeElementId
String startNodeElementId()Id of the node where this relationship starts.- Returns:
- the node id
-
endNodeId
Deprecated.superseded byendNodeElementId()Id of the node where this relationship ends.Please note that depending on server configuration numeric id might not be available and accessing it will result in
IllegalStateException.- Returns:
- the node id
-
endNodeElementId
String endNodeElementId()Id of the node where this relationship ends.- Returns:
- the node id
-
type
String type()Return the type of this relationship.- Returns:
- the type name
-
hasType
Test if this relationship has the given type- Parameters:
relationshipType- the give relationship type- Returns:
trueif this relationship has the given relationship type otherwisefalse
-
endNodeElementId()