你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosRepositoryFactoryBean<T,S,ID> Class
- java.
lang. Object - org.
springframework. data. repository. core. support. RepositoryFactoryBeanSupport - com.
azure. spring. data. cosmos. repository. support. CosmosRepositoryFactoryBean<T,S,ID>
- com.
- org.
Type Parameters
- T
the type of the repository.
- S
the domain type the repository manages.
- ID
the type of the id of the entity the repository manages.
public class CosmosRepositoryFactoryBean<T,S,ID>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
Adapter for Springs FactoryBean interface to allow easy setup of cosmos repository factories via Spring configuration.
Constructor Summary
Constructor | Description |
---|---|
CosmosRepositoryFactoryBean(Class<? extends T> repositoryInterface) |
Creates a new RepositoryFactoryBeanSupport for the given repository interface. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | afterPropertiesSet() |
protected final org.springframework.data.repository.core.support.RepositoryFactorySupport | createRepositoryFactory() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
getFactoryInstance()
Return the factory instance. |
void |
setCosmosOperations(CosmosOperations operations)
Set cosmos operation |
protected void | setMappingContext(MappingContext<?,?> mappingContext) |
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
Constructor Details
CosmosRepositoryFactoryBean
public CosmosRepositoryFactoryBean(Class repositoryInterface)
Creates a new RepositoryFactoryBeanSupport for the given repository interface.
Parameters:
Method Details
afterPropertiesSet
public void afterPropertiesSet()
Overrides:
CosmosRepositoryFactoryBean<T,S,ID>.afterPropertiesSet()createRepositoryFactory
protected final RepositoryFactorySupport createRepositoryFactory()
Overrides:
CosmosRepositoryFactoryBean<T,S,ID>.createRepositoryFactory()getFactoryInstance
protected RepositoryFactorySupport getFactoryInstance()
Return the factory instance.
Returns:
setCosmosOperations
public void setCosmosOperations(CosmosOperations operations)
Set cosmos operation
Parameters:
setMappingContext
protected void setMappingContext(MappingContext mappingContext)
Overrides:
CosmosRepositoryFactoryBean<T,S,ID>.setMappingContext(MappingContext<?,?> mappingContext)Parameters: