T - Repository type, HazelcastRepositoryS - Domain object classID - Domain object key, super expects Serializablepublic class HazelcastRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean<T,S,ID>
Extend KeyValueRepositoryFactoryBean purely to be able to return HazelcastRepositoryFactory from
createRepositoryFactory(KeyValueOperations, Class, Class) method.
This is necessary as the default implementation does not implement querying in a manner consistent with Hazelcast.
More details of this are in HazelcastRepositoryFactory.
This class is only called as repositories are needed. Rather than try to optimise called methods, allow to delegate
to super to ease future changes.
The end goal of this bean is for HazelcastPartTreeQuery to be used for query preparation.
| Constructor and Description |
|---|
HazelcastRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Default Spring Data KeyValue constructor
KeyValueRepositoryFactoryBean
Creates a new HazelcastRepositoryFactoryBean for the given repository interface. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory |
createRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations operations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
Return a
HazelcastRepositoryFactory. |
afterPropertiesSet, createRepositoryFactory, setKeyValueOperations, setMappingContext, setQueryCreator, setQueryTypeaddRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic HazelcastRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Default Spring Data KeyValue constructor KeyValueRepositoryFactoryBean
Creates a new HazelcastRepositoryFactoryBean for the given repository interface.
repositoryInterface - must not be null.protected org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory createRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations operations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
Return a HazelcastRepositoryFactory.
super would return KeyValueRepositoryFactory which in turn builds KeyValueRepository
instances, and these have a private method that implement querying in a manner that does not fit with Hazelcast.
More details are in HazelcastRepositoryFactory.
createRepositoryFactory in class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>KeyValueOperations - Query - CreatorRepositoryQueryType, - not usedHazelcastRepositoryFactory that creates HazelcastRepository instances.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.