ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c.ze...@ads.it
Subject Re: Single column select !
Date Fri, 24 Nov 2006 14:17:01 GMT




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;
   }
   ...
Mime
View raw message