jQuery in Action, 2nd edition*
The moose likes Other Application Frameworks and the fly likes Batch Update using spring and ibatis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Batch Update using spring and ibatis" Watch "Batch Update using spring and ibatis" New topic
Author

Batch Update using spring and ibatis

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi. I tried using the following with ibatis
getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor)
throws SQLException {
executor.startBatch();
for (int i = 0; i < myList.size(); i++) {
executor.insert("mySQLNameSpace.updateTable", myList.get(i));
BatchResult e = null;
}
}

It is not working at all. Its giving me the following exception.
No statement named "updateTable". Any help
 
GeeCON Prague 2014
 
subject: Batch Update using spring and ibatis