Interface Relationship
- 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.longDeprecated.booleanTest if this relationship has the given typeThe id of the node where this relationship starts.longDeprecated.superseded bystartNodeElementId()type()Return the type of this relationship.Methods inherited from interface Entity
elementId, idModifier and TypeMethodDescriptionA unique id for this Entity.longid()Deprecated.superseded byEntity.elementId()Methods inherited from interface MapAccessor
asMap, asMap, containsKey, get, keys, size, values, valuesModifier and TypeMethodDescriptionasMap()Return the underlying map as a map of string keys and values converted usingValue.asObject().Return the underlying map as a map of string keys and values converted using the supplied function.booleancontainsKey(String key) Check if the list of keys contains the given keyRetrieve the value of the property with the given keykeys()Retrieve the keys of the underlying mapintsize()Retrieve the number of entries in this mapvalues()Retrieve all values of the underlying collection<T> Iterable<T> Map and retrieve all values of the underlying collection
-
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
-
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
-
type
-
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()