You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by c....@ads.it on 2006/11/24 15:17:01 UTC

Re: Single column select !




larry.meadors@gmail.com scritti il 23/11/2006 15:17:37

> <select id="gah" resultclass="int">
> select blah as value from sometable
> </select>

Thanks, Larry. It works.
The following java code exerts successfully that SQL Map

   List<Integer> lList = null;
   try
   {
       lList = (List<Integer>) lSqlMapClient.queryForList( "gah", null );
   }
   catch ( SQLException pException )
   {
       pException.printStackTrace();
       throw pException;
   }
   ...