Class RedisDocumentRepositoryFactory

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory
com.redis.om.spring.repository.support.RedisDocumentRepositoryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

public class RedisDocumentRepositoryFactory extends org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
    Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and AbstractQueryCreator-type.
    RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
    Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and AbstractQueryCreator-type.
    RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
    Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and RedisModulesOperations.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Object
    getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
     

    Methods inherited from class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory

    getEntityInformation, getRepositoryFragments, getRepositoryFragments

    Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport

    addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisDocumentRepositoryFactory

      public RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
      Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and RedisModulesOperations.
      Parameters:
      keyValueOperations - must not be null.
      rmo - must not be null.
      keyspaceToIndexMap - must not be null.
      mappingContext - must not be null.
      gson - must not be null.
    • RedisDocumentRepositoryFactory

      public RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
      Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and AbstractQueryCreator-type.
      Parameters:
      keyValueOperations - must not be null.
      rmo - must not be null.
      keyspaceToIndexMap - must not be null.
      queryCreator - must not be null.
      mappingContext - must not be null.
      gson - must not be null.
    • RedisDocumentRepositoryFactory

      public RedisDocumentRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
      Creates a new KeyValueRepositoryFactory for the given KeyValueOperations and AbstractQueryCreator-type.
      Parameters:
      keyValueOperations - must not be null.
      rmo - must not be null.
      keyspaceToIndexMap - must not be null.
      queryCreator - must not be null.
      repositoryQueryType - must not be null.
      mappingContext - must not be null.
      gson - must not be null.
  • Method Details

    • getTargetRepository

      protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
      Overrides:
      getTargetRepository in class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory
    • getRepositoryBaseClass

      protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
      Overrides:
      getRepositoryBaseClass in class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory
    • 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:
      getQueryLookupStrategy in class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory