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 TrelationshipBetween(Node other, java.lang.String... types)Starts building an undirected relationship between thisnodeand theother.TrelationshipFrom(Node other, java.lang.String... types)Starts building an incoming relationship starting at theothernode.TrelationshipTo(Node other, java.lang.String... types)Starts building an outgoing relationship to theothernode.
-
-
-
Method Detail
-
relationshipTo
T relationshipTo(Node other, java.lang.String... types)
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
T relationshipFrom(Node other, java.lang.String... types)
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
T relationshipBetween(Node other, java.lang.String... types)
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
-
-