Class JpaMappableRepositoryFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

    public class JpaMappableRepositoryFactory
    extends org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    Customized version of JpaRepositoryFactory to support an automatic repository fragment that includes RSQL find method support.
    Author:
    Jeff Fischer
    See Also:
    MappableRsqlFilterExecutor
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport

        org.springframework.data.repository.core.support.RepositoryFactorySupport.ImplementationMethodExecutionInterceptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean RSQL_PRESENT  
    • Constructor Summary

      Constructors 
      Constructor Description
      JpaMappableRepositoryFactory​(javax.persistence.EntityManager em, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, RSQLVisitorHolder<?> rsqlVisitorHolder, JpaFiltersCriteriaBuilder catalogFiltersCriteriaBuilder, JpaProperties properties, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T,​ID>
      org.springframework.data.jpa.repository.support.JpaEntityInformation<T,​ID>
      getEntityInformation​(Class<T> domainClass)  
      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 org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments getRepositoryFragments​(org.springframework.data.repository.core.RepositoryMetadata metadata)  
      • Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactory

        getProjectionFactory, getRepositoryBaseClass, getTargetRepository, getTargetRepository, setBeanClassLoader, setEntityPathResolver, setEscapeCharacter, setQueryMethodFactory
      • Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport

        addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
    • Field Detail

      • RSQL_PRESENT

        public static final boolean RSQL_PRESENT
    • Constructor Detail

      • JpaMappableRepositoryFactory

        public JpaMappableRepositoryFactory​(javax.persistence.EntityManager em,
                                            com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil,
                                            @Nullable
                                            RSQLVisitorHolder<?> rsqlVisitorHolder,
                                            JpaFiltersCriteriaBuilder catalogFiltersCriteriaBuilder,
                                            JpaProperties properties,
                                            com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
    • Method Detail

      • getQueryLookupStrategy

        @NonNull
        protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy​(@Nullable
                                                                                                                 org.springframework.data.repository.query.QueryLookupStrategy.Key key,
                                                                                                                 @NonNull
                                                                                                                 org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
        Overrides:
        getQueryLookupStrategy in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
      • getRepositoryFragments

        protected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments getRepositoryFragments​(org.springframework.data.repository.core.RepositoryMetadata metadata)
        Overrides:
        getRepositoryFragments in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
      • getEntityInformation

        @NonNull
        public <T,​ID> org.springframework.data.jpa.repository.support.JpaEntityInformation<T,​ID> getEntityInformation​(@NonNull
                                                                                                                                  Class<T> domainClass)
        Overrides:
        getEntityInformation in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory