• Post Reply Bookmark Topic Watch Topic
  • New Topic

iBatis question with using queryForList

 
RaviNada Kiran
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!