Spring Data MongoDB

org.springframework.data.mongodb.repository.support
Class MongoRepositoryFactory

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by org.springframework.data.mongodb.repository.support.MongoRepositoryFactory

public class MongoRepositoryFactory
extends RepositoryFactorySupport

Factory to create MongoRepository instances.

Author:
Oliver Gierke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
MongoRepositoryFactory(MongoOperations mongoOperations)
          Creates a new MongoRepositoryFactory with the given MongoOperations.
 
Method Summary
<T,ID extends Serializable>
MongoEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass)
           
protected  QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
           
protected  Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
           
protected  Object getTargetRepository(RepositoryMetadata metadata)
           
 
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

MongoRepositoryFactory

public MongoRepositoryFactory(MongoOperations mongoOperations)
Creates a new MongoRepositoryFactory with the given MongoOperations.

Parameters:
mongoOperations - must not be null
Method Detail

getRepositoryBaseClass

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

getTargetRepository

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

getQueryLookupStrategy

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

getEntityInformation

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

Spring Data MongoDB

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