Package org.neo4j.ogm.cypher.query
Class CypherQuery
java.lang.Object
org.neo4j.ogm.cypher.query.CypherQuery
- All Implemented Interfaces:
org.neo4j.ogm.request.Statement
- Direct Known Subclasses:
DefaultGraphModelRequest
,DefaultGraphRowListModelRequest
,DefaultRestModelRequest
,DefaultRowModelRequest
Simple encapsulation of a Cypher query and its parameters
Note, this object will be transformed directly to JSON so don't add anything here that is
not part of the HTTP Transactional endpoint syntax
- Author:
- Vince Bickers, Luanne Misquitta
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCypherQuery
(String cypher, Map<String, ?> parameters) Constructs a newCypherQuery
based on the given Cypher query string and query parameters. -
Method Summary
-
Field Details
-
statement
-
parameters
-
-
Constructor Details
-
CypherQuery
Constructs a newCypherQuery
based on the given Cypher query string and query parameters.- Parameters:
cypher
- The parameterised Cypher query stringparameters
- The name-value pairs that satisfy the parameters in the given query
-
-
Method Details
-
getStatement
- Specified by:
getStatement
in interfaceorg.neo4j.ogm.request.Statement
-
getParameters
- Specified by:
getParameters
in interfaceorg.neo4j.ogm.request.Statement
-
getResultDataContents
- Specified by:
getResultDataContents
in interfaceorg.neo4j.ogm.request.Statement
-
isIncludeStats
public boolean isIncludeStats()- Specified by:
isIncludeStats
in interfaceorg.neo4j.ogm.request.Statement
-
optimisticLockingConfig
- Specified by:
optimisticLockingConfig
in interfaceorg.neo4j.ogm.request.Statement
-