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(org.springframework.data.repository.query.parser.Part part, org.springframework.data.mapping.context.PersistentPropertyPath<Neo4jPersistentProperty> path)
           
 PartInfo getPartInfo(int parameterIndex)
           
 Map<org.springframework.data.repository.query.Parameter,Object> resolveParameters(Map<org.springframework.data.repository.query.Parameter,Object> parameters)
           
 String toQueryString()
          Returns a Cypher query without adding any sort or pagination.
 String toQueryString(org.springframework.data.domain.Pageable pageable)
          Returns a Cypher query restricting the result to the given Pageable and applying the Sort contained in it.
 String toQueryString(org.springframework.data.domain.Sort sort)
          Returns a Cypher query adding the given Sort.
 String toString()
           
 org.springframework.data.neo4j.repository.query.CypherQueryDefinition withSort(org.springframework.data.domain.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(org.springframework.data.repository.query.parser.Part part,
                    org.springframework.data.mapping.context.PersistentPropertyPath<Neo4jPersistentProperty> path)

withSort

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

getPartInfo

public PartInfo getPartInfo(int parameterIndex)

resolveParameters

public Map<org.springframework.data.repository.query.Parameter,Object> resolveParameters(Map<org.springframework.data.repository.query.Parameter,Object> parameters)

toQueryString

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

Returns:

toQueryString

public String toQueryString(org.springframework.data.domain.Sort sort)
Returns a Cypher query adding the given Sort.

Returns:

toQueryString

public String toQueryString(org.springframework.data.domain.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 © 2013 SpringSource. All Rights Reserved.