Package org.neo4j.ogm.session.request
Class FilteredQueryBuilder
java.lang.Object
org.neo4j.ogm.session.request.FilteredQueryBuilder
All statements that take a
Filters
parameter delegate the generation of the appropriate
Cypher to this class
The FilteredQueryBuilder, as its name suggests, returns instances of FilteredQuery
- Author:
- Vince Bickers, Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilteredQuery
buildNodeQuery
(String nodeLabel, Iterable<Filter> filterList) Create aFilteredQuery
which matches nodes filtered by one or more property expressionsstatic FilteredQuery
buildRelationshipQuery
(String relationshipType, Iterable<Filter> filterList) Create aFilteredQuery
which matches edges filtered by one or more property expressions
-
Constructor Details
-
FilteredQueryBuilder
public FilteredQueryBuilder()
-
-
Method Details
-
buildNodeQuery
Create aFilteredQuery
which matches nodes filtered by one or more property expressions- Parameters:
nodeLabel
- the label of the node to matchfilterList
- a list ofFilter
objects defining the property filter expressions- Returns:
- a
FilteredQuery
whose statement() method contains the appropriate Cypher
-
buildRelationshipQuery
public static FilteredQuery buildRelationshipQuery(String relationshipType, Iterable<Filter> filterList) Create aFilteredQuery
which matches edges filtered by one or more property expressions- Parameters:
relationshipType
- the type of the edge to matchfilterList
- a list ofFilter
objects defining the property filter expressions- Returns:
- a
FilteredQuery
whose statement() method contains the appropriate Cypher
-