Spring Data Document

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

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by org.springframework.data.mongodb.repository.MongoRepositoryFactoryBean.MongoRepositoryFactory
Enclosing class:
MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

public static class MongoRepositoryFactoryBean.MongoRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport

Repository to create MongoRepository instances.

Author:
Oliver Gierke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
MongoRepositoryFactoryBean.MongoRepositoryFactory(MongoTemplate template)
          Creates a new MongoRepositoryFactoryBean.MongoRepositoryFactory with the given MongoTemplate and MappingContext.
 
Method Summary
<T,ID extends Serializable>
MongoEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass)
           
protected  org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
           
protected  Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
           
protected  Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
           
protected  void validate(org.springframework.data.repository.core.RepositoryMetadata metadata)
           
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getRepository, getRepository, setNamedQueries, setQueryLookupStrategyKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoRepositoryFactoryBean.MongoRepositoryFactory

public MongoRepositoryFactoryBean.MongoRepositoryFactory(MongoTemplate template)
Creates a new MongoRepositoryFactoryBean.MongoRepositoryFactory with the given MongoTemplate and MappingContext.

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

getRepositoryBaseClass

protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
Specified by:
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getTargetRepository

protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
Specified by:
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getQueryLookupStrategy

protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
Overrides:
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport

validate

protected void validate(org.springframework.data.repository.core.RepositoryMetadata metadata)
Overrides:
validate in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getEntityInformation

public <T,ID extends Serializable> MongoEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
Specified by:
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport

Spring Data Document

Copyright © 2011. All Rights Reserved.