ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Olsen <chrisbryanol...@gmail.com>
Subject Ibatis 3 Annotaion - Get # Rows updated
Date Thu, 10 Dec 2009 16:51:16 GMT

Using the V3 Annotations and session.GetMapper trying to figure out if there
is a way to figure out how many rows were updated.  I have seen some other
posts that reference a way using some of the other methods but I can not
find any docs for the Annotations methods or docs for the API's.  Any
pointers greatly appreciated. 
 
  Thanks - Chris Olsen

Sample code:
        try {
            session = sqlMapper.openSession();
            final ScriptMapper mapper =
session.getMapper(ScriptMapper.class);
            mapper.updateScript(script);
            session.commit();
        } catch(IbatisException ex) {
            logger.log(Level.WARNING, "Unable to update script entry: " +
script.getId(), ex);
        }
        finally {
            if (session != null ) {
                session.close();
            }
        }
-- 
View this message in context: http://old.nabble.com/Ibatis-3-Annotaion---Get---Rows-updated-tp26730660p26730660.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message