net.mlw.vlh.adapter.ibatis.sqlmaps
Class Ibatis20Adapter

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.orm.ibatis.support.SqlMapClientDaoSupport
          extended bynet.mlw.vlh.adapter.ibatis.sqlmaps.Ibatis20Adapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ValueListAdapter

public class Ibatis20Adapter
extends org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
implements ValueListAdapter

This adapter wraps the functionality of iBATIS SQL Maps. "iBATIS SQL Maps provides a very simple and flexible means of moving data between your Java objects and a relational database. Use the full power of real SQL without a single line of JDBC code!" -http://www.ibatis.com/common/sqlmaps.html

Version:
$Revision: 1.4 $ $Date: 2004/12/14 20:15:25 $
Author:
Matthew L. Wilson

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Fields inherited from interface net.mlw.vlh.ValueListAdapter
DO_FILTER, DO_FOCUS, DO_NOTHING, DO_PAGE, DO_SORT
 
Constructor Summary
Ibatis20Adapter()
           
 
Method Summary
 int getAdapterType()
          This method tells the Service what still needs to be done on the Collection before returning the data.
 ValueList getValueList(String name, ValueListInfo info)
          Gets a ValueList
 
Methods inherited from class org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
checkDaoConfig, getDataSource, getSqlMapClient, getSqlMapClientTemplate, setDataSource, setSqlMapClient, setSqlMapClientTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ibatis20Adapter

public Ibatis20Adapter()
Method Detail

getAdapterType

public int getAdapterType()
Description copied from interface: ValueListAdapter
This method tells the Service what still needs to be done on the Collection before returning the data.

Specified by:
getAdapterType in interface ValueListAdapter
Returns:
A bitwise or combination of DO_NOTHING, DO_SORT, DO_PAGE and DO_FILTER. For example:
           public int getAdapterType()
           {
             return DO_SORT | DO_PAGE;
           }
         

getValueList

public ValueList getValueList(String name,
                              ValueListInfo info)
Description copied from interface: ValueListAdapter
Gets a ValueList

Specified by:
getValueList in interface ValueListAdapter
Parameters:
info - The ValueList information
name - The name of the ValueList
Returns:
The ValueList
See Also:
ValueListAdapter.getValueList(java.lang.String, net.mlw.vlh.ValueListInfo)


Copyright © 2003-2006 mlavilson. All Rights Reserved.