org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean.MongoRepositoryFactory
java.lang.Object
org.springframework.data.repository.support.RepositoryFactorySupport
org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean.MongoRepositoryFactory
- Enclosing class:
- MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends java.io.Serializable>
public static class MongoRepositoryFactoryBean.MongoRepositoryFactory
- extends org.springframework.data.repository.support.RepositoryFactorySupport
Repository to create MongoRepository
instances.
- Author:
- Oliver Gierke
Nested classes/interfaces inherited from class org.springframework.data.repository.support.RepositoryFactorySupport |
org.springframework.data.repository.support.RepositoryFactorySupport.QueryExecuterMethodInterceptor |
Method Summary |
|
getEntityInformation(java.lang.Class<T> domainClass)
|
protected org.springframework.data.repository.query.QueryLookupStrategy |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
|
protected java.lang.Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.support.RepositoryMetadata metadata)
|
protected java.lang.Object |
getTargetRepository(org.springframework.data.repository.support.RepositoryMetadata metadata)
|
protected void |
validate(org.springframework.data.repository.support.RepositoryMetadata metadata)
|
Methods inherited from class org.springframework.data.repository.support.RepositoryFactorySupport |
addQueryCreationListener, addRepositoryProxyPostProcessor, getRepository, getRepository, setQueryLookupStrategyKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoRepositoryFactoryBean.MongoRepositoryFactory
public MongoRepositoryFactoryBean.MongoRepositoryFactory(MongoTemplate template)
- Creates a new
MongoRepositoryFactoryBean.MongoRepositoryFactory
with the given MongoTemplate
and MappingContext
.
- Parameters:
template
- must not be nullmappingContext
-
getRepositoryBaseClass
protected java.lang.Class<?> getRepositoryBaseClass(org.springframework.data.repository.support.RepositoryMetadata metadata)
- Specified by:
getRepositoryBaseClass
in class org.springframework.data.repository.support.RepositoryFactorySupport
getTargetRepository
protected java.lang.Object getTargetRepository(org.springframework.data.repository.support.RepositoryMetadata metadata)
- Specified by:
getTargetRepository
in class org.springframework.data.repository.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.support.RepositoryFactorySupport
validate
protected void validate(org.springframework.data.repository.support.RepositoryMetadata metadata)
- Overrides:
validate
in class org.springframework.data.repository.support.RepositoryFactorySupport
getEntityInformation
public <T,ID extends java.io.Serializable> MongoEntityInformation<T,ID> getEntityInformation(java.lang.Class<T> domainClass)
- Specified by:
getEntityInformation
in class org.springframework.data.repository.support.RepositoryFactorySupport
Copyright © 2011. All Rights Reserved.