public class

GenericSqlQuery

extends SqlQuery<T>
java.lang.Object
   ↳ org.springframework.jdbc.object.RdbmsOperation
     ↳ org.springframework.jdbc.object.SqlOperation
       ↳ org.springframework.jdbc.object.SqlQuery<T>
         ↳ org.springframework.jdbc.object.GenericSqlQuery

Summary

[Expand]
Inherited Fields
From class org.springframework.jdbc.object.RdbmsOperation
Public Constructors
GenericSqlQuery()
Public Methods
void afterPropertiesSet()
Ensures compilation if used in a bean factory.
void setRowMapperClass(Class rowMapperClass)
Protected Methods
RowMapper newRowMapper(Object[] parameters, Map context)
Subclasses must implement this method to extract an object per row, to be returned by the execute method as an aggregated List.
[Expand]
Inherited Methods
From class org.springframework.jdbc.object.SqlQuery
From class org.springframework.jdbc.object.SqlOperation
From class org.springframework.jdbc.object.RdbmsOperation
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public GenericSqlQuery ()

Public Methods

public void afterPropertiesSet ()

Ensures compilation if used in a bean factory.

public void setRowMapperClass (Class rowMapperClass)

Protected Methods

protected RowMapper newRowMapper (Object[] parameters, Map context)

Subclasses must implement this method to extract an object per row, to be returned by the execute method as an aggregated List.

Parameters
parameters the parameters to the execute() method, in case subclass is interested; may be null if there were no parameters.
context contextual information passed to the mapRow callback method. The JDBC operation itself doesn't rely on this parameter, but it can be useful for creating the objects of the result list.