Interface QueryStatements<ID extends Serializable>

All Known Implementing Classes:
NodeQueryStatements, RelationshipQueryStatements

public interface QueryStatements<ID extends Serializable>
Author:
Vince Bickers, Luanne Misquitta, Mark Angrish
  • Method Details

    • findOne

      PagingAndSortingQuery findOne(ID id, int depth)
      construct a query to fetch a single object with the specified id
      Parameters:
      id - the id of the object to find
      depth - the depth to traverse for any related objects
      Returns:
      a PagingAndSortingQuery
    • findOneByType

      PagingAndSortingQuery findOneByType(String label, ID id, int depth)
      construct a query to fetch a single object with the specified id of a specific type
      Parameters:
      label - the label attached to the object or relationship type
      id - the id of the object to find
      depth - the depth to traverse for any related objects
      Returns:
      a PagingAndSortingQuery
    • findAllByType

      PagingAndSortingQuery findAllByType(String type, Collection<ID> ids, int depth)
      construct a query to fetch all objects with the specified ids
      Parameters:
      type - the label attached to the object, or the relationship type
      ids - the ids of the objects to find
      depth - the depth to traverse for any related objects
      Returns:
      a PagingAndSortingQuery
    • findByType

      PagingAndSortingQuery findByType(String type, int depth)
      construct queries to fetch all objects with the specified label or relationship type
      Parameters:
      type - the label attached to the object, or the relationship type
      depth - the depth to traverse for related objects
      Returns:
      a PagingAndSortingQuery
    • findByType

      PagingAndSortingQuery findByType(String type, Filters filters, int depth)
      construct queries to fetch all objects with the specified label that match the specified filters
      Parameters:
      type - the label value or relationship type to filter on
      filters - parameters to filter on
      depth - the depth to traverse for related objects
      Returns:
      a PagingAndSortingQuery