net.mlw.vlh.adapter.jdbc.spring
Class SpringDaoValueListAdapter

java.lang.Object
  extended bynet.mlw.vlh.adapter.AbstractValueListAdapter
      extended bynet.mlw.vlh.adapter.jdbc.AbstractJdbcAdapter
          extended bynet.mlw.vlh.adapter.jdbc.spring.SpringDaoValueListAdapter
All Implemented Interfaces:
ValueListAdapter

public class SpringDaoValueListAdapter
extends AbstractJdbcAdapter

net.mlw.vlh.adapter.jdbc.spring.SpringDaoValueListAdapter

Version:
$Revision: 1.2 $ $Date: 2005/10/17 11:42:36 $
Author:
Matthew L. Wilson

Field Summary
 
Fields inherited from interface net.mlw.vlh.ValueListAdapter
DO_FILTER, DO_FOCUS, DO_NOTHING, DO_PAGE, DO_SORT
 
Constructor Summary
SpringDaoValueListAdapter()
           
 
Method Summary
 org.springframework.jdbc.core.RowMapper getRowMapper()
           
 List processResultSet(String name, ResultSet result, int numberPerPage, ValueListInfo info)
          This method takes the result and puts the VOs in the List.
 void setRowMapper(org.springframework.jdbc.core.RowMapper rowMapper)
           
 
Methods inherited from class net.mlw.vlh.adapter.jdbc.AbstractJdbcAdapter
getConnectionCreator, getDataSource, getSql, getSqlPagingSupport, getStatementBuilder, getValidator, getValueList, isShowSql, setConnectionCreator, setDataSource, setShowSql, setSql, setSqlPagingSupport, setStatementBuilder, setValidator
 
Methods inherited from class net.mlw.vlh.adapter.AbstractValueListAdapter
getAdapterType, getDefaultNumberPerPage, getDefaultSortColumn, getDefaultSortDirectionInteger, setAdapterType, setDefaultNumberPerPage, setDefaultSortColumn, setDefaultSortDirection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDaoValueListAdapter

public SpringDaoValueListAdapter()
Method Detail

processResultSet

public List processResultSet(String name,
                             ResultSet result,
                             int numberPerPage,
                             ValueListInfo info)
                      throws SQLException
Description copied from class: AbstractJdbcAdapter
This method takes the result and puts the VOs in the List.

Specified by:
processResultSet in class AbstractJdbcAdapter
Parameters:
result - The ResultSet to interate through.
info - is ussually constant during this process, you can use it for passing additional parameters from controler. (Like in DefaultWrapperAdapter)
Returns:
The List of VOs.
Throws:
SQLException
See Also:
AbstractJdbcAdapter.processResultSet(java.lang.String, java.sql.ResultSet, int, net.mlw.vlh.ValueListInfo)

getRowMapper

public org.springframework.jdbc.core.RowMapper getRowMapper()
Returns:
Returns the rowMapper.

setRowMapper

public void setRowMapper(org.springframework.jdbc.core.RowMapper rowMapper)
Parameters:
rowMapper - The rowMapper to set.


Copyright © 2003-2006 mlavilson. All Rights Reserved.