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

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactoryBean<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 BlazePersistenceRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable> extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
Since:
1.2.0
Author:
Moritz Becker
  • Constructor Details

    • BlazePersistenceRepositoryFactoryBean

      protected BlazePersistenceRepositoryFactoryBean()
    • BlazePersistenceRepositoryFactoryBean

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

    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<T extends org.springframework.data.repository.Repository<S,ID>>
      Overrides:
      isSingleton in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
    • setEntityManager

      public void setEntityManager(javax.persistence.EntityManager entityManager)
      The EntityManager to be used.
      Parameters:
      entityManager - the entityManager to set
    • setMappingContext

      public void setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext)
      Overrides:
      setMappingContext in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
    • doCreateRepositoryFactory

      protected BlazePersistenceRepositoryFactory doCreateRepositoryFactory()
      Specified by:
      doCreateRepositoryFactory in class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
    • createRepositoryFactory

      protected BlazePersistenceRepositoryFactory createRepositoryFactory(javax.persistence.EntityManager entityManager)
      Returns a RepositoryFactorySupport.
      Parameters:
      entityManager -
      Returns:
    • 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 extends Serializable>
    • setEscapeCharacter

      public void setEscapeCharacter(char escapeCharacter)
    • getEscapeCharacter

      public char getEscapeCharacter()