Class DynamicJpaRepositoryFactory

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.jpa.repository.support.JpaRepositoryFactory
com.joutvhu.dynamic.jpa.support.DynamicJpaRepositoryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

public class DynamicJpaRepositoryFactory extends org.springframework.data.jpa.repository.support.JpaRepositoryFactory
JPA specific generic repository factory.
Since:
2.x.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicJpaRepositoryFactory(jakarta.persistence.EntityManager entityManager)
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Optional<org.springframework.data.repository.query.QueryLookupStrategy>
    getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
     
    void
    setEscapeCharacter(org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
     
    void
    setQueryMethodFactory(org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory)
     
    void
    setQueryRewriterProvider(org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider)
     

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

    getEntityInformation, getProjectionFactory, getRepositoryBaseClass, getRepositoryFragments, getRepositoryFragments, getTargetRepository, getTargetRepository, setBeanClassLoader, setBeanFactory, setEntityPathResolver

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

    addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate

    Methods inherited from class java.lang.Object

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

    • DynamicJpaRepositoryFactory

      public DynamicJpaRepositoryFactory(jakarta.persistence.EntityManager entityManager)
      Parameters:
      entityManager - must not be null
  • Method Details

    • setEscapeCharacter

      public void setEscapeCharacter(org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
      Overrides:
      setEscapeCharacter in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • setQueryMethodFactory

      public void setQueryMethodFactory(org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory)
      Overrides:
      setQueryMethodFactory in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • setQueryRewriterProvider

      public void setQueryRewriterProvider(org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider)
      Overrides:
      setQueryRewriterProvider in class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
    • getQueryLookupStrategy

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