Class JpaMappableRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​I>,​S,​I extends Serializable>

  • 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,​I>

    public class JpaMappableRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​I>,​S,​I extends Serializable>
    extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,​S,​I>
    Customized version of JpaRepositoryFactoryBean to support special filtering of repository query method results.
    Author:
    Jeff Fischer
    See Also:
    JpaMappableRepositoryFactory
    • Field Summary

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

        OBJECT_TYPE_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory​(javax.persistence.EntityManager em)  
      void setBehaviorUtil​(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil)  
      void setFilterRulesCriteriaBuilder​(JpaFiltersCriteriaBuilder filterRulesCriteriaBuilder)  
      void setJpaProperties​(JpaProperties properties)  
      void setMappingContext​(org.springframework.data.mapping.context.MappingContext<?,​?> mappingContext)  
      void setRepositoryEntityTypeManager​(com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)  
      void setRsqlVisitorHolder​(RSQLVisitorHolder<?> rsqlVisitorHolder)  
      • Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean

        doCreateRepositoryFactory, setEntityManager, setEntityPathResolver, setEscapeCharacter, setQueryMethodFactory
      • Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport

        createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
      • Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport

        getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
    • Constructor Detail

      • JpaMappableRepositoryFactoryBean

        public JpaMappableRepositoryFactoryBean​(Class<? extends T> repositoryInterface)
    • Method Detail

      • setBehaviorUtil

        @Autowired
        public void setBehaviorUtil​(@NonNull
                                    com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil)
      • setJpaProperties

        @Autowired
        public void setJpaProperties​(@NonNull
                                     JpaProperties properties)
      • setRepositoryEntityTypeManager

        @Autowired
        public void setRepositoryEntityTypeManager​(@NonNull
                                                   com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
      • setFilterRulesCriteriaBuilder

        @Autowired
        public void setFilterRulesCriteriaBuilder​(JpaFiltersCriteriaBuilder filterRulesCriteriaBuilder)
      • setRsqlVisitorHolder

        @Autowired(required=false)
        public void setRsqlVisitorHolder​(RSQLVisitorHolder<?> rsqlVisitorHolder)
      • createRepositoryFactory

        protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory​(@NonNull
                                                                                                                    javax.persistence.EntityManager em)
        Overrides:
        createRepositoryFactory in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​I>,​S,​I extends Serializable>
      • setMappingContext

        public void setMappingContext​(org.springframework.data.mapping.context.MappingContext<?,​?> mappingContext)
        Overrides:
        setMappingContext in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​I>,​S,​I extends Serializable>
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​I>,​S,​I extends Serializable>