ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sumanta Ghosh <sumant...@tcs.com>
Subject IBATIS Batch Support
Date Thu, 27 Jul 2006 10:20:51 GMT

Does IBATIS have Batch support for preparedstatements e.g. suppose I have got
4 statements, 2 inserts and 2 update. How should I call batch?
Option 1: 
         sqlMap.startBatch();
         all statements
         sqlMap.executeBatch()
Option 2:
         sqlMap.startBtach()
         all inserts
         sqlMap.executeBatch()
         sqlMap.startBtach()
         all updates
         sqlMap.executeBatch()
In my idea for option 1 you cannot use preparedstatement, have to use
statements.
Am I Correct? please confirm. 
-- 
View this message in context: http://www.nabble.com/IBATIS-Batch-Support-tf2008779.html#a5518529
Sent from the iBATIS - User - Java forum at Nabble.com.


Mime
View raw message