public class GemfireRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport implementation creating repository proxies
for Gemfire.| Constructor and Description |
|---|
GemfireRepositoryFactory(Iterable<org.apache.geode.cache.Region<?,?>> regions,
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 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<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected Regions |
getRegions()
Returns a reference to the configured, application-defined
Regions. |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object |
getTargetRepository(RepositoryInformation repositoryInformation) |
protected <T extends QueryMethod> |
newQueryMethod(Method method,
RepositoryMetadata repositoryMetadata,
ProjectionFactory projectionFactory,
QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected GemfireTemplate |
newTemplate(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 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 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 RepositoryFactorySupportprotected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getRepositoryBaseClass in class RepositoryFactorySupportprotected Object getTargetRepository(RepositoryInformation repositoryInformation)
getTargetRepository in class RepositoryFactorySupportprotected GemfireTemplate newTemplate(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<QueryLookupStrategy> getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy in class RepositoryFactorySupportprotected <T extends QueryMethod> T newQueryMethod(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory projectionFactory, QueryMethodEvaluationContextProvider evaluationContextProvider)
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.