You should do that after iBATIS converts it to a Map or Bean IMHO... perhaps using XStream or something similar.
But if you really want to do this, extend the Configuration class, and then override the following method: public ResultSetHandler newResultSetHandler(Executor executor, MappedStatement mappedStatement, RowBounds rowBounds, ParameterHandler parameterHandler, ResultHandler resultHandler, BoundSql boundSql); You'll have to use the pure Java configuration approach, not the XML configuration. You will enter a very dark and scary world trying to implement your own ResultSetHandler though. This is by far the most complex function that iBATIS performs. Clinton On Mon, Feb 1, 2010 at 6:02 PM, costab <k...@nym.hush.com> wrote: > > Sorry, just to be more clear I want my map to convert the ResultSet object > to > xml. > > > costab wrote: > > > > I am a newbie to ibatis and I want to figure out where iBatis would fit > to > > solve my requirements. > > > > Is it possible in iBatis 3.0 (or 2.x) to provide my own ResultSet > handler? > > I read the documentation and it is seems that I would have to use a > plugin > > to do that. Are there any samples on how to do it? Can I specify what > > plug-in I want to use for specific select elements? For some queries I > > want to leave to iBatis to do the mapping for others I want to specify my > > own handler. > > > > > > > > > > > > -- > View this message in context: > http://old.nabble.com/Custom-ResultSet-handler-tp27412455p27414093.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > >