File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes iBatis question with using queryForList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "iBatis question with using queryForList" Watch "iBatis question with using queryForList" New topic

iBatis question with using queryForList

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528

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.

If you want something you never had do something which you had never done
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

For multiple parameters you pass in a Map. The Map has each parameter with their names.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: iBatis question with using queryForList
Similar Threads
iBatis query
Which Method use and how to store data in List after get the data
iBatis object relationships
Persistence: Calling Stored Procedures from iBATIS
better option JdbcTemplate.queryForList(query)