Class StringBasedJdbcQuery
java.lang.Object
org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
org.springframework.data.jdbc.repository.query.StringBasedJdbcQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
A query to be executed based on a repository method, it's annotated SQL query and the arguments provided to the
method.
- Since:
- 2.0
- Author:
- Jens Schauder, Kazuki Shimizu, Oliver Gierke, Maciej Walkowiak, Mark Paluch, Hebert Coelho, Chirag Tailor, Christopher Klein, Mikhail Polivakha
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
AbstractJdbcQuery.ConvertingRowMapper<T>, AbstractJdbcQuery.RowMapperFactory
-
Constructor Summary
ConstructorDescriptionStringBasedJdbcQuery
(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, AbstractJdbcQuery.RowMapperFactory rowMapperFactory, JdbcConverter converter, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andAbstractJdbcQuery.RowMapperFactory
.StringBasedJdbcQuery
(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, RowMapper<?> defaultRowMapper, JdbcConverter converter, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andRowMapper
. -
Method Summary
Methods inherited from class org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
createModifyingQueryExecutor, createReadingQueryExecution, getQueryExecution, getQueryMethod, resolveTypeToRead
-
Constructor Details
-
StringBasedJdbcQuery
public StringBasedJdbcQuery(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, @Nullable RowMapper<?> defaultRowMapper, JdbcConverter converter, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andRowMapper
.- Parameters:
queryMethod
- must not be null.operations
- must not be null.defaultRowMapper
- can be null (only in case of a modifying query).
-
StringBasedJdbcQuery
public StringBasedJdbcQuery(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, AbstractJdbcQuery.RowMapperFactory rowMapperFactory, JdbcConverter converter, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andAbstractJdbcQuery.RowMapperFactory
.- Parameters:
queryMethod
- must not be null.operations
- must not be null.rowMapperFactory
- must not be null.- Since:
- 2.3
-
-
Method Details
-
execute
-
setBeanFactory
-