Class CassandraRepositoryFactory

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.cassandra.repository.support.CassandraRepositoryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

public class CassandraRepositoryFactory extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Factory to create CassandraRepository instances.
Author:
Alex Shvid, Matthew T. Adams, Thomas Darimont, Mark Paluch, John Blum
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new CassandraRepositoryFactory with the given CassandraOperations.
  • Method Summary

    Modifier and Type
    Method
    Description
    getEntityInformation(Class<T> domainClass)
     
    protected org.springframework.data.projection.ProjectionFactory
    getProjectionFactory(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory)
     
    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 information)
     

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

    addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, 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

  • Method Details

    • getProjectionFactory

      protected org.springframework.data.projection.ProjectionFactory getProjectionFactory(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory)
      Overrides:
      getProjectionFactory in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getRepositoryBaseClass

      protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
      Specified by:
      getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getTargetRepository

      protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information)
      Specified by:
      getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getEntityInformation

      public <T, ID> CassandraEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
      Specified by:
      getEntityInformation in class org.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:
      getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport