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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotatedQuery()
Returns the annotated query if it exists.
|
Class<?> |
getRowMapperClass()
Returns the class to be used as
RowMapper |
boolean |
isModifyingQuery()
Returns whether the query method is a modifying one.
|
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic JdbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory)
@Nullable public String getAnnotatedQuery()
null.@Nullable public Class<?> getRowMapperClass()
RowMappernull.public boolean isModifyingQuery()
isModifyingQuery in class QueryMethodtrue.Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.