Christian
-----Message d'origine-----
De : mybati...@googlegroups.com [mailto:mybati...@googlegroups.com] De la part de Rajiv Nair
Envoyé : December-13-10 9:11 AM
À : mybatis-user
Objet : ResultHandler with SQL Map XML files?
For "List<SomeStuff> selectSomeStuff(String parameter,ResultHandler handler)", I don't think it's possible since it would be seen as a parameter to pass to the query.
The @ResultHandler could be a good option, but in such a case I cannot see how a List could be returned. The mapper would absolutely need to return the ResultHandler to make any sense since the ResultHandler doesn't return any value.
This could be seen as a improvement. But since I am not sure enough that it's the way to go, I recommend to stick with "sqlSession.select("query", null, resultHandler);" for now.
Christian
-----Message d'origine-----
De : mybati...@googlegroups.com [mailto:mybati...@googlegroups.com] De la part de Rajiv Nair
Envoyé : December-14-10 3:48 AM
À : mybatis-user
Objet : Re: ResultHandler with SQL Map XML files?