你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosRepositoryFactory Class
- java.lang.Object
- org.springframework.data.repository.core.support.RepositoryFactorySupport
- com.azure.spring.data.cosmos.repository.support.CosmosRepositoryFactory
public class CosmosRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Factory class for cosmos repository contains application context and operations information
Constructor Summary
Method Summary
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.<R>getTargetRepositoryViaReflection(java.lang.Class<
org.springframework.data.repository.core.support.RepositoryFactorySupport.<R>getTargetRepositoryViaReflection
org.springframework.data.repository.core.support.RepositoryFactorySupport.<R>instantiateClass(java.lang.Class<
org.springframework.data.repository.core.support.RepositoryFactorySupport.<T,ID>getEntityInformation
org.springframework.data.repository.core.support.RepositoryFactorySupport.<T>getRepository
org.springframework.data.repository.core.support.RepositoryFactorySupport.<T>getRepository
org.springframework.data.repository.core.support.RepositoryFactorySupport.<T>getRepository
org.springframework.data.repository.core.support.RepositoryFactorySupport.addInvocationListener
org.springframework.data.repository.core.support.RepositoryFactorySupport.addQueryCreationListener(org.springframework.data.repository.core.support.QueryCreationListener<
org.springframework.data.repository.core.support.RepositoryFactorySupport.addRepositoryProxyPostProcessor
org.springframework.data.repository.core.support.RepositoryFactorySupport.getEnvironment
org.springframework.data.repository.core.support.RepositoryFactorySupport.getProjectionFactory
org.springframework.data.repository.core.support.RepositoryFactorySupport.getProjectionFactory
org.springframework.data.repository.core.support.RepositoryFactorySupport.getQueryLookupStrategy
org.springframework.data.repository.core.support.RepositoryFactorySupport.getQueryLookupStrategy
org.springframework.data.repository.core.support.RepositoryFactorySupport.getQueryMethods
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryBaseClass
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryFragments
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryInformation
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryMetadata(java.lang.Class<
org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository
org.springframework.data.repository.core.support.RepositoryFactorySupport.setBeanClassLoader
org.springframework.data.repository.core.support.RepositoryFactorySupport.setBeanFactory
org.springframework.data.repository.core.support.RepositoryFactorySupport.setEnvironment
org.springframework.data.repository.core.support.RepositoryFactorySupport.setEvaluationContextProvider
org.springframework.data.repository.core.support.RepositoryFactorySupport.setEvaluationContextProvider
org.springframework.data.repository.core.support.RepositoryFactorySupport.setExposeMetadata
org.springframework.data.repository.core.support.RepositoryFactorySupport.setNamedQueries
org.springframework.data.repository.core.support.RepositoryFactorySupport.setQueryLookupStrategyKey
org.springframework.data.repository.core.support.RepositoryFactorySupport.setRepositoryBaseClass(java.lang.Class<
org.springframework.data.repository.core.support.RepositoryFactorySupport.validate
Constructor Details
CosmosRepositoryFactory
public CosmosRepositoryFactory(CosmosOperations cosmosOperations)
Initialization
Parameters:
cosmosOperations
- for cosmosDb operations
Method Details
<T,ID>getEntityInformation
public EntityInformation getEntityInformation(Class domainType)
Overrides:
CosmosRepositoryFactory.<T,ID>getEntityInformation(Class<T> domainType)
Parameters:
domainType
getQueryLookupStrategy
protected Optional getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
Overrides:
CosmosRepositoryFactory.getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
Parameters:
key
evaluationContextProvider
getRepositoryBaseClass
protected Class getRepositoryBaseClass(RepositoryMetadata metadata)
Overrides:
CosmosRepositoryFactory.getRepositoryBaseClass(RepositoryMetadata metadata)
Parameters:
metadata
getTargetRepository
protected Object getTargetRepository(RepositoryInformation information)
Overrides:
CosmosRepositoryFactory.getTargetRepository(RepositoryInformation information)
Parameters:
information
Applies to