public class DynamicJpaQueryLookupStrategy
extends java.lang.Object
implements org.springframework.data.repository.query.QueryLookupStrategy
QueryLookupStrategy that tries to detect a dynamic query declared via DynamicQuery annotation.| Constructor and Description |
|---|
DynamicJpaQueryLookupStrategy(javax.persistence.EntityManager entityManager,
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.EscapeCharacter escape) |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.data.repository.query.QueryLookupStrategy |
create(javax.persistence.EntityManager entityManager,
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.EscapeCharacter escape) |
org.springframework.data.repository.query.RepositoryQuery |
resolveQuery(java.lang.reflect.Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory factory,
org.springframework.data.repository.core.NamedQueries namedQueries) |
public DynamicJpaQueryLookupStrategy(javax.persistence.EntityManager entityManager,
@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.EscapeCharacter escape)
public org.springframework.data.repository.query.RepositoryQuery resolveQuery(java.lang.reflect.Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory factory,
org.springframework.data.repository.core.NamedQueries namedQueries)
resolveQuery in interface org.springframework.data.repository.query.QueryLookupStrategypublic static org.springframework.data.repository.query.QueryLookupStrategy create(javax.persistence.EntityManager entityManager,
@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.EscapeCharacter escape)