Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface ExposesRelationships<T extends RelationshipPattern & ExposesPatternLengthAccessors<?>>
- Type Parameters:
T- The type of the resultingRelationshipPattern.
- All Known Subinterfaces:
Node,Relationship,RelationshipPattern
- All Known Implementing Classes:
NodeBase,RelationshipBase,RelationshipChain
@API(status=STABLE,
since="1.0")
public interface ExposesRelationships<T extends RelationshipPattern & ExposesPatternLengthAccessors<?>>
A marker interface for things that expose methods to create new relationships to other elements.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionrelationshipBetween(Node other, String... types) Starts building an undirected relationship between thisnodeand theother.relationshipFrom(Node other, String... types) Starts building an incoming relationship starting at theothernode.relationshipTo(Node other, String... types) Starts building an outgoing relationship to theothernode.
-
Method Details
-
relationshipTo
Starts building an outgoing relationship to theothernode.- Parameters:
other- The other end of the outgoing relationshiptypes- The types to match- Returns:
- An ongoing relationship definition, that can be used to specify the type
-
relationshipFrom
Starts building an incoming relationship starting at theothernode.- Parameters:
other- The source of the incoming relationshiptypes- The types to match- Returns:
- An ongoing relationship definition, that can be used to specify the type
-
relationshipBetween
Starts building an undirected relationship between thisnodeand theother.- Parameters:
other- The other end of the relationshiptypes- The types to match- Returns:
- An ongoing relationship definition, that can be used to specify the type
-