Class StringBasedJdbcQuery
java.lang.Object
org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
org.springframework.data.jdbc.repository.query.StringBasedJdbcQuery
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
AbstractJdbcQuery.ConvertingRowMapper<T>, AbstractJdbcQuery.RowMapperFactory
-
Constructor Summary
ConstructorsConstructorDescriptionStringBasedJdbcQuery
(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, AbstractJdbcQuery.RowMapperFactory rowMapperFactory, JdbcConverter converter) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andAbstractJdbcQuery.RowMapperFactory
.StringBasedJdbcQuery
(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, RowMapper<?> defaultRowMapper, JdbcConverter converter) Creates a newStringBasedJdbcQuery
for the givenJdbcQueryMethod
,RelationalMappingContext
andRowMapper
. -
Method Summary
Methods inherited from class org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
getQueryExecution, resolveTypeToRead
-
Constructor Details
-
StringBasedJdbcQuery
public StringBasedJdbcQuery(JdbcQueryMethod queryMethod, NamedParameterJdbcOperations operations, @Nullable RowMapper<?> defaultRowMapper, JdbcConverter converter) 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) 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
-
getQueryMethod
- Specified by:
getQueryMethod
in interfaceRepositoryQuery
- Overrides:
getQueryMethod
in classAbstractJdbcQuery
-
setBeanFactory
-