• Post Reply Bookmark Topic Watch Topic
  • New Topic

iBatis question with using queryForList  RSS feed

 
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am pretty new to iBatis .Please help me



The above method from SqlMapClient returns a List as indicated.

This allows to pass only single parameter .

Now if my search includes many parameters to be passed to the method , how can i pass multiple values ??

Please Help .Thanks in advance.
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For multiple parameters you pass in a Map. The Map has each parameter with their names.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!