@Deprecated public class PatternRelationship extends AbstractPatternObject<Relationship>
Relationship.| Modifier and Type | Method and Description |
|---|---|
Direction |
getDirectionFrom(PatternNode fromNode)
Deprecated.
Get the direction in which relationships are discovered using this
relationship pattern from the specified node.
|
PatternNode |
getFirstNode()
Deprecated.
Get the first pattern node that this pattern relationship relates.
|
PatternNode |
getOtherNode(PatternNode node)
Deprecated.
Get the
PatternNode that this pattern relationship relates, that
is not the specified node. |
PatternNode |
getSecondNode()
Deprecated.
Get the second pattern node that this pattern relationship relates.
|
RelationshipType |
getType()
Deprecated.
Get the
RelationshipType a relationship must have in order to
match this pattern relationship. |
boolean |
isOptional()
Deprecated.
Does this pattern relationship represent a relationship that has to exist
in the subgraph to consider the subgraph a match of the pattern, or is it
an optional relationship.
|
String |
toString()
Deprecated.
|
addPropertyConstraint, getAssociation, getLabel, getPropertyConstraints, setAssociation, setLabelpublic PatternNode getOtherNode(PatternNode node)
PatternNode that this pattern relationship relates, that
is not the specified node.node - one of the PatternNodes this pattern relationship
relates.public PatternNode getFirstNode()
public PatternNode getSecondNode()
public boolean isOptional()
true if this pattern relationship represents an
optional relationship, false if it represents a
required relationship.public RelationshipType getType()
RelationshipType a relationship must have in order to
match this pattern relationship. Will return null if a
relationship with any RelationshipType will match.RelationshipType of this relationship pattern.public Direction getDirectionFrom(PatternNode fromNode)
outgoing, incoming,
or both.fromNode - the pattern node to find the direction of this pattern
relationship from.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.