1 21 package net.mlw.vlh.adapter.ibatis.sqlmaps; 22 23 import java.util.ArrayList ; 24 25 import net.mlw.vlh.DefaultListBackedValueList; 26 import net.mlw.vlh.ValueList; 27 import net.mlw.vlh.ValueListAdapter; 28 import net.mlw.vlh.ValueListInfo; 29 30 import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; 31 32 42 public class Ibatis20Adapter extends SqlMapClientDaoSupport implements ValueListAdapter 43 { 44 public int getAdapterType() 45 { 46 return DO_NOTHING; 47 } 48 49 52 public ValueList getValueList(String name, ValueListInfo info) 53 { 54 try 55 { 56 getSqlMapClientTemplate().queryForList("getPlayersByLastName", "Wil%"); 58 60 return new DefaultListBackedValueList(new ArrayList (), info); 61 } 62 catch (Exception e) 63 { 64 throw new RuntimeException (e); 65 } 66 } 67 } | Popular Tags |