public class JdbcQueryMethod
extends org.springframework.data.repository.query.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,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.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, toString
public JdbcQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
@Nullable public String getAnnotatedQuery()
null
.@Nullable public Class<?> getRowMapperClass()
RowMapper
null
.public boolean isModifyingQuery()
isModifyingQuery
in class org.springframework.data.repository.query.QueryMethod
true
.Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.