org.springframework.data.neo4j.repository.query
Class DerivedCypherRepositoryQuery
java.lang.Object
org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuery
- All Implemented Interfaces:
- org.springframework.data.repository.query.RepositoryQuery
public class DerivedCypherRepositoryQuery
- extends Object
- implements org.springframework.data.repository.query.RepositoryQuery
RepositoryQuery
implementation that derives a Cypher query from the GraphRepositoryFactory.GraphQueryMethod
's method name.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerivedCypherRepositoryQuery
public DerivedCypherRepositoryQuery(org.springframework.data.mapping.context.MappingContext<? extends Neo4jPersistentEntity<?>,Neo4jPersistentProperty> context,
GraphRepositoryFactory.GraphQueryMethod method,
Neo4jTemplate database)
- Creates a new
DerivedCypherRepositoryQuery
from the given MappingContext
,
GraphRepositoryFactory.GraphQueryMethod
and Neo4jTemplate
.
- Parameters:
context
- must not be null.method
- must not be null.database
- must not be null.
execute
public Object execute(Object[] parameters)
- Specified by:
execute
in interface org.springframework.data.repository.query.RepositoryQuery
getQueryMethod
public org.springframework.data.repository.query.QueryMethod getQueryMethod()
- Specified by:
getQueryMethod
in interface org.springframework.data.repository.query.RepositoryQuery
Copyright © 2011 SpringSource. All Rights Reserved.