Class FilteredQueryBuilder

java.lang.Object
org.neo4j.ogm.session.request.FilteredQueryBuilder

public class FilteredQueryBuilder extends Object
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 Details

    • FilteredQueryBuilder

      public FilteredQueryBuilder()
  • Method Details

    • buildNodeQuery

      public static FilteredQuery buildNodeQuery(String nodeLabel, Iterable<Filter> filterList)
      Create a FilteredQuery which matches nodes filtered by one or more property expressions
      Parameters:
      nodeLabel - the label of the node to match
      filterList - a list of Filter 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 a FilteredQuery which matches edges filtered by one or more property expressions
      Parameters:
      relationshipType - the type of the edge to match
      filterList - a list of Filter objects defining the property filter expressions
      Returns:
      a FilteredQuery whose statement() method contains the appropriate Cypher