|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.object.RdbmsOperation
org.springframework.jdbc.object.SqlOperation
org.springframework.jdbc.object.SqlQuery
org.springframework.jdbc.object.GenericSqlQuery
public class GenericSqlQuery
| Field Summary |
|---|
| Fields inherited from class org.springframework.jdbc.object.RdbmsOperation |
|---|
logger |
| Constructor Summary | |
|---|---|
GenericSqlQuery()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Ensures compilation if used in a bean factory. |
protected RowMapper |
newRowMapper(java.lang.Object[] parameters,
java.util.Map context)
Subclasses must implement this method to extract an object per row, to be returned by the List. |
void |
setRowMapperClass(java.lang.Class rowMapperClass)
|
| Methods inherited from class org.springframework.jdbc.object.SqlQuery |
|---|
execute, 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, getRowsExpected, setRowsExpected |
| Methods inherited from class org.springframework.jdbc.object.SqlOperation |
|---|
compileInternal, getParsedSql, newPreparedStatementCreator, newPreparedStatementCreator, newPreparedStatementSetter, onCompileInternal |
| Methods inherited from class org.springframework.jdbc.object.RdbmsOperation |
|---|
allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setParameters, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericSqlQuery()
| Method Detail |
|---|
public void setRowMapperClass(java.lang.Class rowMapperClass)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationExceptionpublic void afterPropertiesSet()
RdbmsOperation
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RdbmsOperation
protected RowMapper newRowMapper(java.lang.Object[] parameters,
java.util.Map context)
SqlQueryList.
newRowMapper in class SqlQueryparameters - 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.SqlQuery.execute(java.lang.Object[], java.util.Map)
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||