Package org.neo4j.cypherdsl.core
Interface RelationshipPattern
-
- All Superinterfaces:
ExposesRelationships<RelationshipChain>
,PatternElement
,Visitable
- All Known Subinterfaces:
Relationship
- All Known Implementing Classes:
RelationshipBase
,RelationshipChain
@API(status=EXPERIMENTAL, since="1.0") public interface RelationshipPattern extends PatternElement, ExposesRelationships<RelationshipChain>
A shared, public interface forrelationships
andchains of relationships
. This interface reassembles the RelationshipPattern.This interface can be used synonymous with the concept of a Path Pattern.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Condition
asCondition()
Transform this pattern into a condition.ExposesRelationships<RelationshipChain>
named(java.lang.String name)
Turns the pattern into a named chain of relationships.-
Methods inherited from interface org.neo4j.cypherdsl.core.ExposesRelationships
relationshipBetween, relationshipFrom, relationshipTo
-
-
-
-
Method Detail
-
named
ExposesRelationships<RelationshipChain> named(java.lang.String name)
Turns the pattern into a named chain of relationships.- Parameters:
name
- The name to be used.- Returns:
- A named relationship that can be chained with more relationship definitions.
-
asCondition
Condition asCondition()
Transform this pattern into a condition. All names of the patterns must be known upfront in the final statement, as PatternExpressions are not allowed to introduce new variables.- Returns:
- A condition based on this pattern.
- Since:
- 2021.0.0
-
-