Class BlazePersistenceRepositoryFactory

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.jpa.repository.support.JpaRepositoryFactory
com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

public class BlazePersistenceRepositoryFactory extends org.springframework.data.jpa.repository.support.JpaRepositoryFactory
Partly copied from JpaRepositoryFactory to retain functionality but mostly original.
Since:
1.2.0
Author:
Moritz Becker, Christian Beikov
  • Nested Class Summary

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

    org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlazePersistenceRepositoryFactory(javax.persistence.EntityManager entityManager, com.blazebit.persistence.CriteriaBuilderFactory cbf, EntityViewManager evm)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRepositoryProxyPostProcessor(org.springframework.data.repository.core.support.RepositoryProxyPostProcessor processor)
     
     
    protected org.springframework.data.repository.query.QueryLookupStrategy
    getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider)
     
    List<org.springframework.data.repository.query.QueryMethod>
     
    <T> T
    getRepository(Class<T> repositoryInterface, Object customImplementation)
     
    protected Class<?>
    getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
     
    protected org.springframework.data.repository.core.RepositoryInformation
    getRepositoryInformation(org.springframework.data.repository.core.RepositoryMetadata metadata, Class<?> customImplementationClass)
     
    protected org.springframework.data.repository.core.RepositoryMetadata
    getRepositoryMetadata(Class<?> repositoryInterface)
     
    protected Object
    getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information)
     
    protected void
    validate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
     

    Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactory

    getEntityInformation, getProjectionFactory, getTargetRepository, setBeanClassLoader, setEscapeCharacter

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

    addQueryCreationListener, getQueryLookupStrategy, getRepository, getTargetRepositoryViaReflection, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass

    Methods inherited from class java.lang.Object

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

    • BlazePersistenceRepositoryFactory

      public BlazePersistenceRepositoryFactory(javax.persistence.EntityManager entityManager, com.blazebit.persistence.CriteriaBuilderFactory cbf, EntityViewManager evm)
  • Method Details

    • addRepositoryProxyPostProcessor

      public void addRepositoryProxyPostProcessor(org.springframework.data.repository.core.support.RepositoryProxyPostProcessor processor)
      Overrides:
      addRepositoryProxyPostProcessor in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getCrudMethodMetadata

      protected EntityViewAwareCrudMethodMetadata getCrudMethodMetadata()
    • getRepositoryMetadata

      protected org.springframework.data.repository.core.RepositoryMetadata getRepositoryMetadata(Class<?> repositoryInterface)
      Overrides:
      getRepositoryMetadata in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getRepositoryInformation

      protected org.springframework.data.repository.core.RepositoryInformation getRepositoryInformation(org.springframework.data.repository.core.RepositoryMetadata metadata, Class<?> customImplementationClass)
      Overrides:
      getRepositoryInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • validate

      protected void validate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
      Overrides:
      validate in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getTargetRepository

      protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information)
      Overrides:
      getTargetRepository in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • getRepositoryBaseClass

      protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
      Overrides:
      getRepositoryBaseClass in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • getRepository

      public <T> T getRepository(Class<T> repositoryInterface, Object customImplementation)
      Overrides:
      getRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getQueryLookupStrategy

      protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider)
      Overrides:
      getQueryLookupStrategy in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • getQueryMethods

      public List<org.springframework.data.repository.query.QueryMethod> getQueryMethods()
      Overrides:
      getQueryMethods in class org.springframework.data.repository.core.support.RepositoryFactorySupport