Spring Data Neo4j

org.springframework.data.neo4j.repository.query
Class CypherQuery

java.lang.Object
  extended by org.springframework.data.neo4j.repository.query.CypherQuery

public class CypherQuery
extends Object


Constructor Summary
CypherQuery(Neo4jPersistentEntity<?> entity, Neo4jTemplate template)
           
 
Method Summary
 void addPart(Part part, PersistentPropertyPath<Neo4jPersistentProperty> path)
           
 PartInfo getPartInfo(int parameterIndex)
           
 Map<Parameter,Object> resolveParameters(Map<Parameter,Object> parameters)
           
 String toQueryString()
          Returns a Cypher query without adding any sort or pagination.
 String toQueryString(Pageable pageable)
          Returns a Cypher query restricting the result to the given Pageable and applying the Sort contained in it.
 String toQueryString(Sort sort)
          Returns a Cypher query adding the given Sort.
 String toString()
           
 org.springframework.data.neo4j.repository.query.CypherQueryDefinition withSort(Sort sorts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CypherQuery

public CypherQuery(Neo4jPersistentEntity<?> entity,
                   Neo4jTemplate template)
Method Detail

addPart

public void addPart(Part part,
                    PersistentPropertyPath<Neo4jPersistentProperty> path)

withSort

public org.springframework.data.neo4j.repository.query.CypherQueryDefinition withSort(Sort sorts)

getPartInfo

public PartInfo getPartInfo(int parameterIndex)

resolveParameters

public Map<Parameter,Object> resolveParameters(Map<Parameter,Object> parameters)

toQueryString

public String toQueryString()
Returns a Cypher query without adding any sort or pagination.

Returns:

toQueryString

public String toQueryString(Sort sort)
Returns a Cypher query adding the given Sort.

Returns:

toQueryString

public String toQueryString(Pageable pageable)
Returns a Cypher query restricting the result to the given Pageable and applying the Sort contained in it.

Returns:

toString

public String toString()
Overrides:
toString in class Object

Spring Data Neo4j

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.