org.springframework.data.neo4j.repository.query
Class CypherQuery
java.lang.Object
org.springframework.data.neo4j.repository.query.CypherQuery
public class CypherQuery
- extends Object
CypherQuery
public CypherQuery(Neo4jPersistentEntity<?> entity,
Neo4jTemplate template)
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
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.