CosmosRepositoryFactory Class
- java.
lang. Object - org.
springframework. data. repository. core. support. RepositoryFactorySupport - com.
azure. spring. data. cosmos. repository. support. CosmosRepositoryFactory
- com.
- org.
public class CosmosRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Factory class for cosmos repository contains application context and operations information
Constructor Summary
Constructor | Description |
---|---|
CosmosRepositoryFactory(CosmosOperations cosmosOperations) |
Initialization |
Method Summary
Modifier and Type | Method and Description |
---|---|
org.springframework.data.repository.core.EntityInformation<T,ID> | <T,ID>getEntityInformation(Class<T> domainType) |
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> | getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected Class<?> | getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object | getTargetRepository(RepositoryInformation information) |
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.repository.core.support.RepositoryFactorySupport
Constructor Details
CosmosRepositoryFactory
public CosmosRepositoryFactory(CosmosOperations cosmosOperations)
Initialization
Parameters:
Method Details
<T,ID>getEntityInformation
public EntityInformation
Overrides:
CosmosRepositoryFactory.<T,ID>getEntityInformation(Class<T> domainType)Parameters:
getQueryLookupStrategy
protected Optional
Overrides:
CosmosRepositoryFactory.getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)Parameters:
getRepositoryBaseClass
protected Class getRepositoryBaseClass(RepositoryMetadata metadata)
Overrides:
CosmosRepositoryFactory.getRepositoryBaseClass(RepositoryMetadata metadata)Parameters:
getTargetRepository
protected Object getTargetRepository(RepositoryInformation information)
Overrides:
CosmosRepositoryFactory.getTargetRepository(RepositoryInformation information)Parameters:
Applies to
Azure SDK for Java