org.springframework.osgi.samples.petclinic.jdbc
Class JdbcClinic.PetsQuery

java.lang.Object
  extended by org.springframework.jdbc.object.RdbmsOperation
      extended by org.springframework.jdbc.object.SqlOperation
          extended by org.springframework.jdbc.object.SqlQuery
              extended by org.springframework.jdbc.object.MappingSqlQueryWithParameters
                  extended by org.springframework.jdbc.object.MappingSqlQuery
                      extended by org.springframework.osgi.samples.petclinic.jdbc.JdbcClinic.PetsQuery
All Implemented Interfaces:
InitializingBean
Enclosing class:
JdbcClinic

protected class JdbcClinic.PetsQuery
extends MappingSqlQuery

Abstract base class for all Pet Query Objects.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.jdbc.object.MappingSqlQueryWithParameters
MappingSqlQueryWithParameters.RowMapperImpl
 
Field Summary
 
Fields inherited from class org.springframework.jdbc.object.RdbmsOperation
logger
 
Constructor Summary
protected JdbcClinic.PetsQuery(DataSource ds)
          Create a new instance of PetsQuery.
 
Method Summary
protected  Object mapRow(ResultSet rs, int rownum)
           
 
Methods inherited from class org.springframework.jdbc.object.MappingSqlQuery
mapRow
 
Methods inherited from class org.springframework.jdbc.object.MappingSqlQueryWithParameters
newRowMapper
 
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
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, 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

JdbcClinic.PetsQuery

protected JdbcClinic.PetsQuery(DataSource ds)
Create a new instance of PetsQuery.

Parameters:
ds - the DataSource to use for the query
sql - SQL string to use for the query
Method Detail

mapRow

protected Object mapRow(ResultSet rs,
                        int rownum)
                 throws SQLException
Specified by:
mapRow in class MappingSqlQuery
Throws:
SQLException


Copyright © 2006-2007 Spring Framework. All Rights Reserved.