public class JpaQueryMethod
extends org.springframework.data.repository.query.QueryMethod
QueryMethod
.Modifier | Constructor and Description |
---|---|
protected |
JpaQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory factory,
QueryExtractor extractor)
Creates a
JpaQueryMethod . |
Modifier and Type | Method and Description |
---|---|
protected JpaParameters |
createParameters(Method method) |
JpaEntityMetadata<?> |
getEntityInformation() |
String |
getNamedQueryName() |
JpaParameters |
getParameters() |
boolean |
isCollectionQuery() |
boolean |
isModifyingQuery()
Returns whether the finder is a modifying one.
|
boolean |
isProcedureQuery()
Return true if the method contains a
Procedure annotation. |
protected JpaQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, QueryExtractor extractor)
JpaQueryMethod
.method
- must not be nullmetadata
- must not be nullfactory
- must not be nullextractor
- must not be nullpublic JpaEntityMetadata<?> getEntityInformation()
getEntityInformation
in class org.springframework.data.repository.query.QueryMethod
public boolean isModifyingQuery()
isModifyingQuery
in class org.springframework.data.repository.query.QueryMethod
public String getNamedQueryName()
getNamedQueryName
in class org.springframework.data.repository.query.QueryMethod
protected JpaParameters createParameters(Method method)
createParameters
in class org.springframework.data.repository.query.QueryMethod
public JpaParameters getParameters()
getParameters
in class org.springframework.data.repository.query.QueryMethod
public boolean isCollectionQuery()
isCollectionQuery
in class org.springframework.data.repository.query.QueryMethod
public boolean isProcedureQuery()
Procedure
annotation.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.