File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
iBatis question with using queryForList
Joined: Jan 30, 2009
Mar 28, 2009 11:42:04
I am pretty new to iBatis .Please help me
public List queryForList(String statementName, Object parameterObject) throws SQLException
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
Joined: Feb 05, 2001
Mar 29, 2009 09:18:11
For multiple parameters you pass in a Map. The Map has each parameter with their names.
Perfect World Programming, LLC
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: iBatis question with using queryForList
Which Method use and how to store data in List after get the data
better option JdbcTemplate.queryForList(query)
iBatis object relationships
Persistence: Calling Stored Procedures from iBATIS
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015