public class DerivedCypherRepositoryQuery extends Object
RepositoryQuery implementation that derives a Cypher query from the GraphQueryMethod's method name.| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
protected Neo4jTemplate |
template |
| Constructor and Description |
|---|
DerivedCypherRepositoryQuery(Neo4jMappingContext mappingContext,
GraphQueryMethod queryMethod,
Neo4jTemplate template)
Creates a new
DerivedCypherRepositoryQuery from the given MappingContext,
GraphQueryMethod and Neo4jTemplate. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createPage(Iterable<?> result,
Pageable pageable,
Long count,
boolean isPageQuery) |
protected String |
createQueryWithPagingAndSorting(ParameterAccessor accessor)
|
protected Object |
dispatchQuery(String queryString,
Map<String,Object> params,
ParameterAccessor accessor) |
Object |
execute(Object[] parameters) |
protected CypherQueryEngine |
getQueryEngine() |
GraphQueryMethod |
getQueryMethod() |
protected Neo4jTemplate |
getTemplate() |
Map<Parameter,Object> |
resolveParameters(Map<Parameter,Object> parameters) |
protected Map<String,Object> |
resolveParams(ParameterAccessor accessor) |
public static final org.slf4j.Logger log
protected final Neo4jTemplate template
public DerivedCypherRepositoryQuery(Neo4jMappingContext mappingContext, GraphQueryMethod queryMethod, Neo4jTemplate template)
DerivedCypherRepositoryQuery from the given MappingContext,
GraphQueryMethod and Neo4jTemplate.mappingContext - must not be null.queryMethod - must not be null.template - must not be null.public Map<Parameter,Object> resolveParameters(Map<Parameter,Object> parameters)
resolveParameters in interface ParameterResolverprotected String createQueryWithPagingAndSorting(ParameterAccessor accessor)
accessor - parametersprotected CypherQueryEngine getQueryEngine()
protected Neo4jTemplate getTemplate()
public Object execute(Object[] parameters)
execute in interface RepositoryQueryprotected Map<String,Object> resolveParams(ParameterAccessor accessor)
protected Object dispatchQuery(String queryString, Map<String,Object> params, ParameterAccessor accessor)
public GraphQueryMethod getQueryMethod()
getQueryMethod in interface RepositoryQueryCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.