Spring Data Neo4j

org.springframework.data.neo4j.repository
Class GraphRepositoryFactory

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by org.springframework.data.neo4j.repository.GraphRepositoryFactory

public class GraphRepositoryFactory
extends RepositoryFactorySupport

Since:
28.03.11
Author:
mh

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
GraphRepositoryFactory(Neo4jTemplate template, Neo4jMappingContext mappingContext)
          Creates a new GraphRepositoryFactory from the given Neo4jTemplate and MappingContext.
 
Method Summary
<T,ID extends Serializable>
EntityInformation<T,ID>
getEntityInformation(Class<T> type)
           
protected  QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
           
protected  Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
           
protected  Object getTargetRepository(RepositoryMetadata metadata)
           
protected  Object getTargetRepository(RepositoryMetadata metadata, Neo4jTemplate template)
           
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setNamedQueries, setQueryLookupStrategyKey, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphRepositoryFactory

public GraphRepositoryFactory(Neo4jTemplate template,
                              Neo4jMappingContext mappingContext)
Creates a new GraphRepositoryFactory from the given Neo4jTemplate and MappingContext.

Parameters:
template - must not be null.
mappingContext - must not be null.
Method Detail

getTargetRepository

protected Object getTargetRepository(RepositoryMetadata metadata)
Specified by:
getTargetRepository in class RepositoryFactorySupport

getTargetRepository

protected Object getTargetRepository(RepositoryMetadata metadata,
                                     Neo4jTemplate template)

getRepositoryBaseClass

protected Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
Specified by:
getRepositoryBaseClass in class RepositoryFactorySupport

getEntityInformation

public <T,ID extends Serializable> EntityInformation<T,ID> getEntityInformation(Class<T> type)
Specified by:
getEntityInformation in class RepositoryFactorySupport

getQueryLookupStrategy

protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
Overrides:
getQueryLookupStrategy in class RepositoryFactorySupport

Spring Data Neo4j

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.