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, toString
public JdbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, NamedQueries namedQueries, MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext)
protected RelationalParameters createParameters(Method method)
createParameters
in class QueryMethod
public RelationalEntityMetadata<?> getEntityInformation()
getEntityInformation
in class QueryMethod
public RelationalParameters getParameters()
getParameters
in class QueryMethod
public boolean hasAnnotatedQueryName()
@Query(name=…)
.public String getNamedQueryName()
getNamedQueryName
in class QueryMethod
public boolean isModifyingQuery()
isModifyingQuery
in class QueryMethod
true
.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.