public class JdbcQueryMethod extends QueryMethod
QueryMethod implementation that implements a method by executing the query from a Query annotation on
that method. Binds method arguments to named parameters in the SQL statement.| Constructor and Description |
|---|
JdbcQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory factory,
NamedQueries namedQueries,
MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
protected RelationalParameters |
createParameters(Method method) |
RelationalEntityMetadata<?> |
getEntityInformation() |
String |
getNamedQueryName() |
RelationalParameters |
getParameters() |
boolean |
hasAnnotatedQuery() |
boolean |
hasAnnotatedQueryName() |
boolean |
hasLockMode() |
boolean |
isModifyingQuery()
Returns whether the query method is a modifying one.
|
getDomainClass, getName, getResultProcessor, getReturnedObjectType, isCollectionQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic JdbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, NamedQueries namedQueries, MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext)
protected RelationalParameters createParameters(Method method)
createParameters in class QueryMethodpublic RelationalEntityMetadata<?> getEntityInformation()
getEntityInformation in class QueryMethodpublic RelationalParameters getParameters()
getParameters in class QueryMethodpublic boolean hasAnnotatedQueryName()
@Query(name=…).public String getNamedQueryName()
getNamedQueryName in class QueryMethodpublic boolean isModifyingQuery()
isModifyingQuery in class QueryMethodtrue.public boolean hasAnnotatedQuery()
true if the method has an annotated query.public boolean hasLockMode()
Lock annotation present or not.Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.