Class TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy

  • All Implemented Interfaces:
    org.springframework.data.repository.query.QueryLookupStrategy
    Enclosing class:
    TrackableJpaQueryLookupStrategy

    public static class TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy
    extends TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
    QueryLookupStrategy that tries to detect a declared query declared via Query annotation followed by a JPA named query lookup.
    Author:
    Oliver Gierke, Thomas Darimont
    • 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
      DeclaredQueryLookupStrategy​(javax.persistence.EntityManager em, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
      Creates a new JpaQueryLookupStrategy.DeclaredQueryLookupStrategy.
    • Constructor Detail

      • DeclaredQueryLookupStrategy

        public DeclaredQueryLookupStrategy​(javax.persistence.EntityManager em,
                                           org.springframework.data.jpa.provider.QueryExtractor extractor,
                                           org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
        Creates a new JpaQueryLookupStrategy.DeclaredQueryLookupStrategy.
        Parameters:
        em -
        extractor -
        evaluationContextProvider -
    • Method Detail

      • resolveQuery

        protected org.springframework.data.repository.query.RepositoryQuery resolveQuery​(org.springframework.data.jpa.repository.query.JpaQueryMethod method,
                                                                                         javax.persistence.EntityManager em,
                                                                                         org.springframework.data.repository.core.NamedQueries namedQueries,
                                                                                         org.springframework.data.repository.core.RepositoryMetadata metadata)
        Specified by:
        resolveQuery in class TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy