Spring Data Neo4j

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

java.lang.Object
  extended by 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

Constructor Summary
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.
 
Method Summary
 Object execute(Object[] parameters)
           
 org.springframework.data.repository.query.QueryMethod getQueryMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.