Class RedisEnhancedRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
com.redis.om.spring.repository.support.RedisEnhancedRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware
public class RedisEnhancedRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
-
Constructor Summary
ConstructorsConstructorDescriptionRedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperations.RedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?, ?>> queryCreator, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperationsandAbstractQueryCreator-type.RedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?, ?>> queryCreator, Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperationsandAbstractQueryCreator-type. -
Method Summary
Modifier and TypeMethodDescription<T,ID> org.springframework.data.repository.core.EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) 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 Class<?>getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) protected ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
-
Constructor Details
-
RedisEnhancedRepositoryFactory
public RedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperations.- Parameters:
keyValueOperations- must not be null.redisOperations- must not be null.rmo- must not be null.indexer- must not be null.
-
RedisEnhancedRepositoryFactory
public RedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?, ?>> queryCreator, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperationsandAbstractQueryCreator-type.- Parameters:
keyValueOperations- must not be null.redisOperations- must not be null.rmo- must not be null.indexer- must not be null.queryCreator- must not be null.
-
RedisEnhancedRepositoryFactory
public RedisEnhancedRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, org.springframework.data.redis.core.RedisOperations<?, ?> redisOperations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?, ?>> queryCreator, Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType, RedisOMProperties properties) Creates a newKeyValueRepositoryFactoryfor the givenKeyValueOperationsandAbstractQueryCreator-type.- Parameters:
keyValueOperations- must not be null.redisOperations- must not be null.rmo- must not be null.indexer- must not be null.queryCreator- must not be null.repositoryQueryType- must not be null.
-
-
Method Details
-
getEntityInformation
public <T,ID> org.springframework.data.repository.core.EntityInformation<T,ID> getEntityInformation(Class<T> domainClass) - Specified by:
getEntityInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) - Specified by:
getTargetRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Specified by:
getRepositoryBaseClassin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategyin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-