- All Superinterfaces:
Entity
,MapAccessor
The Relationship interface describes the characteristics of a relationship from a Neo4j graph.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionThe id of the node where this relationship ends.long
Deprecated.boolean
Test if this relationship has the given typeThe id of the node where this relationship starts.long
Deprecated.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()
The 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()The id of the node where this relationship starts.- Returns:
- the node id
-
endNodeId
Deprecated.superseded byendNodeElementId()
The 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()The 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:
true
if this relationship has the given relationship type otherwisefalse
-
endNodeElementId()