Class DynamicJpaQueryLookupStrategy

java.lang.Object
com.joutvhu.dynamic.jpa.query.DynamicJpaQueryLookupStrategy
All Implemented Interfaces:
org.springframework.data.repository.query.QueryLookupStrategy

public class DynamicJpaQueryLookupStrategy extends Object implements org.springframework.data.repository.query.QueryLookupStrategy
QueryLookupStrategy that tries to detect a dynamic query declared via DynamicQuery annotation.
Since:
2.x.1
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.repository.query.QueryLookupStrategy

    org.springframework.data.repository.query.QueryLookupStrategy.Key
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicJpaQueryLookupStrategy(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory, org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.data.repository.query.QueryLookupStrategy
    create(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory, org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape)
     
    org.springframework.data.repository.query.RepositoryQuery
    resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries)
     

    Methods inherited from class java.lang.Object

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

    • DynamicJpaQueryLookupStrategy

      public DynamicJpaQueryLookupStrategy(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory, @Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape)
  • Method Details

    • resolveQuery

      public org.springframework.data.repository.query.RepositoryQuery resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries)
      Specified by:
      resolveQuery in interface org.springframework.data.repository.query.QueryLookupStrategy
    • create

      public static org.springframework.data.repository.query.QueryLookupStrategy create(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.query.JpaQueryMethodFactory queryMethodFactory, @Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.QueryRewriterProvider queryRewriterProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape)