java.lang.Object
org.springframework.jdbc.object.RdbmsOperation
org.springframework.jdbc.object.SqlOperation
org.springframework.jdbc.object.SqlQuery<T>
org.springframework.jdbc.object.GenericSqlQuery<T>
- Type Parameters:
- T- the result type
- All Implemented Interfaces:
- InitializingBean
- 
Field SummaryFields inherited from class RdbmsOperationlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidEnsures compilation if used in a bean factory.Subclasses must implement this method to extract an object per row, to be returned by theexecutemethod as an aggregatedList.voidsetRowMapper(RowMapper<T> rowMapper) Set a specificRowMapperinstance to use for this query.voidsetRowMapperClass(Class<? extends RowMapper> rowMapperClass) Methods inherited from class SqlQueryexecute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeByNamedParam, executeByNamedParam, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObjectByNamedParam, findObjectByNamedParam, stream, stream, stream, stream, streamByNamedParam, streamByNamedParamMethods inherited from class SqlOperationcompileInternal, getParsedSql, newPreparedStatementCreator, newPreparedStatementCreator, newPreparedStatementSetter, onCompileInternalMethods inherited from class RdbmsOperationallowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, resolveSql, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setParameters, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters
- 
Constructor Details- 
GenericSqlQuerypublic GenericSqlQuery()
 
- 
- 
Method Details- 
setRowMapper
- 
setRowMapperClass
- 
afterPropertiesSetpublic void afterPropertiesSet()Description copied from class:RdbmsOperationEnsures compilation if used in a bean factory.- Specified by:
- afterPropertiesSetin interface- InitializingBean
- Overrides:
- afterPropertiesSetin class- RdbmsOperation
 
- 
newRowMapperprotected RowMapper<T> newRowMapper(@Nullable Object @Nullable [] parameters, @Nullable Map<?, ?> context) Description copied from class:SqlQuerySubclasses must implement this method to extract an object per row, to be returned by theexecutemethod as an aggregatedList.- Specified by:
- newRowMapperin class- SqlQuery<T extends @Nullable Object>
- Parameters:
- parameters- the parameters to the- execute()method, in case subclass is interested; may be- nullif there were no parameters.
- context- the contextual information passed to the- mapRowcallback method. The JDBC operation itself doesn't rely on this parameter, but it can be useful for creating the objects of the result list.
- See Also:
 
 
-