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 Summary
Modifier and TypeMethodDescriptionfindAllByType
(String type, Collection<ID> ids, int depth) construct a query to fetch all objects with the specified idsfindByType
(String type, int depth) construct queries to fetch all objects with the specified label or relationship typefindByType
(String type, Filters filters, int depth) construct queries to fetch all objects with the specified label that match the specified filtersconstruct a query to fetch a single object with the specified idfindOneByType
(String label, ID id, int depth) construct a query to fetch a single object with the specified id of a specific type
-
Method Details
-
findOne
construct a query to fetch a single object with the specified id- Parameters:
id
- the id of the object to finddepth
- the depth to traverse for any related objects- Returns:
- a
PagingAndSortingQuery
-
findOneByType
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 typeid
- the id of the object to finddepth
- the depth to traverse for any related objects- Returns:
- a
PagingAndSortingQuery
-
findAllByType
construct a query to fetch all objects with the specified ids- Parameters:
type
- the label attached to the object, or the relationship typeids
- the ids of the objects to finddepth
- the depth to traverse for any related objects- Returns:
- a
PagingAndSortingQuery
-
findByType
construct queries to fetch all objects with the specified label or relationship type- Parameters:
type
- the label attached to the object, or the relationship typedepth
- the depth to traverse for related objects- Returns:
- a
PagingAndSortingQuery
-
findByType
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 onfilters
- parameters to filter ondepth
- the depth to traverse for related objects- Returns:
- a
PagingAndSortingQuery
-