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

public class CypherQuery extends Object implements org.neo4j.ogm.request.Statement
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 Details

  • Constructor Details

    • CypherQuery

      public CypherQuery(String cypher, Map<String,?> parameters)
      Constructs a new CypherQuery based on the given Cypher query string and query parameters.
      Parameters:
      cypher - The parameterised Cypher query string
      parameters - The name-value pairs that satisfy the parameters in the given query
  • Method Details

    • getStatement

      public String getStatement()
      Specified by:
      getStatement in interface org.neo4j.ogm.request.Statement
    • getParameters

      public Map<String,Object> getParameters()
      Specified by:
      getParameters in interface org.neo4j.ogm.request.Statement
    • getResultDataContents

      public String[] getResultDataContents()
      Specified by:
      getResultDataContents in interface org.neo4j.ogm.request.Statement
    • isIncludeStats

      public boolean isIncludeStats()
      Specified by:
      isIncludeStats in interface org.neo4j.ogm.request.Statement
    • optimisticLockingConfig

      public Optional<org.neo4j.ogm.request.OptimisticLockingConfig> optimisticLockingConfig()
      Specified by:
      optimisticLockingConfig in interface org.neo4j.ogm.request.Statement