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>

Type Parameters

T
S
ID

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()
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

org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.addRepositoryFactoryCustomizer org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.createDefaultQueryMethodEvaluationContextProvider org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.createRepositoryFactory org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getEntityInformation org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObject org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObjectType org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getPersistentEntity org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getQueryMethods org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getRepositoryInformation org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.isSingleton org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setApplicationEventPublisher org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setBeanClassLoader org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setBeanFactory org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setCustomImplementation org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setEvaluationContextProvider org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setLazyInit org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setMappingContext(org.springframework.data.mapping.context.MappingContext< org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setNamedQueries org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setQueryLookupStrategyKey org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setRepositoryBaseClass(java.lang.Class< org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setRepositoryFragments

Constructor Details

CosmosRepositoryFactoryBean

public CosmosRepositoryFactoryBean(Class repositoryInterface)

Creates a new RepositoryFactoryBeanSupport for the given repository interface.

Parameters:

repositoryInterface - must not be null.

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()

Returns:

the factory instance

setCosmosOperations

public void setCosmosOperations(CosmosOperations operations)

Set cosmos operation

Parameters:

operations - for cosmos operations

setMappingContext

protected void setMappingContext(MappingContext mappingContext)

Overrides:

CosmosRepositoryFactoryBean<T,S,ID>.setMappingContext(MappingContext<?,?> mappingContext)

Parameters:

mappingContext

Applies to