Class RelationshipQueryStatements<ID extends Serializable>
java.lang.Object
org.neo4j.ogm.session.request.strategy.impl.RelationshipQueryStatements<ID>
- All Implemented Interfaces:
QueryStatements<ID>
public class RelationshipQueryStatements<ID extends Serializable>
extends Object
implements QueryStatements<ID>
- Author:
- Luanne Misquitta, Michael J. Simons
-
Constructor Summary
ConstructorDescriptionRelationshipQueryStatements
(String primaryId, LoadClauseBuilder loadClauseBuilder) -
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 parameters, 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
-
Constructor Details
-
RelationshipQueryStatements
public RelationshipQueryStatements() -
RelationshipQueryStatements
-
-
Method Details
-
findOne
Description copied from interface:QueryStatements
construct a query to fetch a single object with the specified id- Specified by:
findOne
in interfaceQueryStatements<ID extends Serializable>
- Parameters:
id
- the id of the object to finddepth
- the depth to traverse for any related objects- Returns:
- a
PagingAndSortingQuery
-
findOneByType
Description copied from interface:QueryStatements
construct a query to fetch a single object with the specified id of a specific type- Specified by:
findOneByType
in interfaceQueryStatements<ID extends Serializable>
- 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
Description copied from interface:QueryStatements
construct a query to fetch all objects with the specified ids- Specified by:
findAllByType
in interfaceQueryStatements<ID extends Serializable>
- 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
Description copied from interface:QueryStatements
construct queries to fetch all objects with the specified label or relationship type- Specified by:
findByType
in interfaceQueryStatements<ID extends Serializable>
- Parameters:
type
- the label attached to the object, or the relationship typedepth
- the depth to traverse for related objects- Returns:
- a
PagingAndSortingQuery
-
findByType
Description copied from interface:QueryStatements
construct queries to fetch all objects with the specified label that match the specified filters- Specified by:
findByType
in interfaceQueryStatements<ID extends Serializable>
- Parameters:
type
- the label value or relationship type to filter onparameters
- parameters to filter ondepth
- the depth to traverse for related objects- Returns:
- a
PagingAndSortingQuery
-