public class GemfireRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
RepositoryFactorySupport implementation creating repository proxies
for Gemfire.| Constructor and Description |
|---|
GemfireRepositoryFactory(Iterable<org.apache.geode.cache.Region<?,?>> regions,
org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
Constructs a new instance of
GemfireRepositoryFactory initialized with the given collection
of configured Regions and the MappingContext. |
| Modifier and Type | Method and Description |
|---|---|
<T,ID> GemfireEntityInformation<T,ID> |
getEntityInformation(Class<T> domainClass) |
protected org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> |
getMappingContext()
Returns a reference to the GemFire
MappingContext used to provide mapping meta-data
between entity types and the data store. |
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected Regions |
getRegions()
Returns a reference to the configured, application-defined
Regions. |
protected Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) |
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) |
protected <T extends org.springframework.data.repository.query.QueryMethod> |
newQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected GemfireTemplate |
newTemplate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
Constructs a new instance of
GemfireTemplate initialized with the identified Region
used to back all persistent, data access operations defined by the Repository. |
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validatepublic GemfireRepositoryFactory(@NonNull Iterable<org.apache.geode.cache.Region<?,?>> regions, @NonNull org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
GemfireRepositoryFactory initialized with the given collection
of configured Regions and the MappingContext.regions - Iterable collection of configured Regions used by this application;
must not be null.mappingContext - MappingContext used to map entities to the underlying data store,
must not be null.IllegalArgumentException - if either Regions or the MappingContext is null.GemfireMappingContext,
Regions,
MappingContextprotected org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> getMappingContext()
MappingContext used to provide mapping meta-data
between entity types and the data store.MappingContext.GemfireMappingContext,
MappingContextprotected Regions getRegions()
Regions.Regions.Regionspublic <T,ID> GemfireEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected GemfireTemplate newTemplate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
GemfireTemplate initialized with the identified Region
used to back all persistent, data access operations defined by the Repository.repositoryMetadata - RepositoryMetadata containing meta-data about the Repository.GemfireTemplate initialized with the identified Region.resolvePersistentEntity(Class),
resolveRegion(RepositoryMetadata, GemfirePersistentEntity),
validate(RepositoryMetadata, GemfirePersistentEntity, Region),
RepositoryMetadata,
GemfireTemplate,
Regionprotected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected <T extends org.springframework.data.repository.query.QueryMethod> T newQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.