Package com.joutvhu.dynamic.jpa.query
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
ConstructorsConstructorDescriptionDynamicJpaQueryLookupStrategy(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 TypeMethodDescriptionstatic org.springframework.data.repository.query.QueryLookupStrategycreate(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.RepositoryQueryresolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries)
-
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:
resolveQueryin interfaceorg.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)
-