Class JpaQueryMethod
java.lang.Object
org.springframework.data.repository.query.QueryMethod
org.springframework.data.jpa.repository.query.JpaQueryMethod
JPA specific extension of
QueryMethod
.- Author:
- Oliver Gierke, Thomas Darimont, Christoph Strobl, Nicolas Cirigliano, Mark Paluch, Сергей Цыпанов, Réda Housni Alaoui
-
Constructor Summary
ModifierConstructorDescriptionprotected
JpaQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory factory, QueryExtractor extractor) Creates aJpaQueryMethod
. -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaParameters
createParameters
(Method method) boolean
boolean
Returns whether the finder is a modifying one.boolean
Return true if the method contains aProcedure
annotation.Methods inherited from class org.springframework.data.repository.query.QueryMethod
getDomainClass, getName, getResultProcessor, getReturnedObjectType, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toString
-
Constructor Details
-
JpaQueryMethod
protected JpaQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, QueryExtractor extractor) Creates aJpaQueryMethod
.- Parameters:
method
- must not be nullmetadata
- must not be nullfactory
- must not be nullextractor
- must not be null
-
-
Method Details
-
getEntityInformation
- Overrides:
getEntityInformation
in classQueryMethod
-
isModifyingQuery
public boolean isModifyingQuery()Returns whether the finder is a modifying one.- Overrides:
isModifyingQuery
in classQueryMethod
- Returns:
-
getNamedQueryName
- Overrides:
getNamedQueryName
in classQueryMethod
-
createParameters
- Overrides:
createParameters
in classQueryMethod
-
getParameters
- Overrides:
getParameters
in classQueryMethod
-
isCollectionQuery
public boolean isCollectionQuery()- Overrides:
isCollectionQuery
in classQueryMethod
-
isProcedureQuery
public boolean isProcedureQuery()Return true if the method contains aProcedure
annotation.- Returns:
-