Class CassandraRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.cassandra.repository.support.CassandraRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>

public class CassandraRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID> extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean to create CassandraRepository instances.
Author:
Alex Shvid, John Blum, Oliver Gierke, Mark Paluch
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CassandraRepositoryFactoryBean(Class<? extends T> repositoryInterface)
    Create a new CassandraRepositoryFactoryBean for the given repository interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected org.springframework.data.repository.core.support.RepositoryFactorySupport
     
    void
    Configures the CassandraTemplate used for Cassandra data access operations.

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

    addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments

    Methods inherited from class java.lang.Object

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

    • CassandraRepositoryFactoryBean

      public CassandraRepositoryFactoryBean(Class<? extends T> repositoryInterface)
      Create a new CassandraRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • createRepositoryFactory

      protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
      Specified by:
      createRepositoryFactory in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
    • setCassandraTemplate

      public void setCassandraTemplate(CassandraTemplate cassandraTemplate)
      Configures the CassandraTemplate used for Cassandra data access operations.
      Parameters:
      cassandraTemplate - CassandraTemplate used to perform CRUD, Query and general data access operations on Apache Cassandra.
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>