org.springframework.data.mongodb.repository.support
Class MongoRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.mongodb.repository.support.MongoRepositoryFactory
public class MongoRepositoryFactory
- extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Factory to create MongoRepository
instances.
- Author:
- Oliver Gierke
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport |
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor |
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport |
addQueryCreationListener, addRepositoryProxyPostProcessor, getRepository, getRepository, setNamedQueries, setQueryLookupStrategyKey, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoRepositoryFactory
public MongoRepositoryFactory(MongoOperations mongoOperations)
- Creates a new
MongoRepositoryFactory
with the given MongoTemplate
and MappingContext
.
- Parameters:
template
- must not be nullmappingContext
-
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
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
Copyright © 2012. All Rights Reserved.