Package org.neo4j.cypherdsl.core
Interface ExposesRelationships<T extends RelationshipPattern>
-
- Type Parameters:
T
- The type of the resultingRelationshipPattern
.
- All Known Subinterfaces:
Node
,Relationship
,RelationshipPattern
- All Known Implementing Classes:
NodeBase
,RelationshipBase
,RelationshipChain
@API(status=EXPERIMENTAL, since="1.0") public interface ExposesRelationships<T extends RelationshipPattern>
A marker interface for things that expose methods to create new relationships to other elements.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
relationshipBetween(Node other, java.lang.String... types)
Starts building an undirected relationship between thisnode
and theother
.T
relationshipFrom(Node other, java.lang.String... types)
Starts building an incoming relationship starting at theother
node
.T
relationshipTo(Node other, java.lang.String... types)
Starts building an outgoing relationship to theother
node
.
-
-
-
Method Detail
-
relationshipTo
T relationshipTo(Node other, java.lang.String... types)
Starts building an outgoing relationship to theother
node
.- 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
T relationshipFrom(Node other, java.lang.String... types)
Starts building an incoming relationship starting at theother
node
.- 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
T relationshipBetween(Node other, java.lang.String... types)
Starts building an undirected relationship between thisnode
and 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
-
-