org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean.MongoRepositoryFactory
java.lang.Object
RepositoryFactorySupport
org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean.MongoRepositoryFactory
- Enclosing class:
- MongoRepositoryFactoryBean<T extends MongoRepository<S,ID>,S,ID extends java.io.Serializable>
public static class MongoRepositoryFactoryBean.MongoRepositoryFactory
- extends RepositoryFactorySupport
Repository to create MongoRepository
instances.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERY_DSL_PRESENT
private static final boolean QUERY_DSL_PRESENT
template
private final MongoTemplate template
entityInformationCreator
private final MongoRepositoryFactoryBean.EntityInformationCreator entityInformationCreator
MongoRepositoryFactoryBean.MongoRepositoryFactory
public MongoRepositoryFactoryBean.MongoRepositoryFactory(MongoTemplate template,
MappingContext mappingContext)
- Creates a new
MongoRepositoryFactoryBean.MongoRepositoryFactory
with the given MongoTemplate
and MappingContext
.
- Parameters:
template
- must not be nullmappingContext
-
getRepositoryBaseClass
protected java.lang.Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getTargetRepository
protected java.lang.Object getTargetRepository(RepositoryMetadata metadata)
isQueryDslRepository
private static boolean isQueryDslRepository(java.lang.Class<?> repositoryInterface)
getQueryLookupStrategy
protected QueryLookupStrategy getQueryLookupStrategy(Key key)
validate
protected void validate(RepositoryMetadata metadata)
getEntityInformation
public <T,ID extends java.io.Serializable> MongoEntityInformation<T,ID> getEntityInformation(java.lang.Class<T> domainClass)