This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

addBatch()

 
pavan mane
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am using addBatch() & executeBatch(), i want to identify which execution among the batch has failed! is it possible? please explain.
Note :
I am using Oracle10g db and ojdbc14.jar
[ May 15, 2007: Message edited by: pavan mane ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by pavan mane:
i want to identify which execution among the batch has failed! is it possible?

It depends on what you mean by fail. If you mean failed to update anything, you can look at the result of executeBatch. It returns a count of updated rows for each statement. If you mean an actual SQLException, then no - there isn't a way to find out which statement caused it.
 
pavan mane
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Jeanne!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic