File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes differentbetween batchUpdating and transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "differentbetween batchUpdating and transaction" Watch "differentbetween batchUpdating and transaction" New topic

differentbetween batchUpdating and transaction

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
what is the differentbetween batchUpdating and transaction?
both execute the one or more sql statements
Jan Cumps

Joined: Dec 20, 2006
Posts: 2491

Rough explanation:
Batch update: you send a set of updates to the server in group in stead of one by one.

Transaction: a set of queries that logically belong together. The changes are only visible to other users when you commit the transaction. They are all reverted to the situation before the transaction started if you rollback.

OCUP UML fundamental and ITIL foundation
youtube channel
Consider Paul's rocket mass heater.
subject: differentbetween batchUpdating and transaction
Similar Threads
WA #1.....word association
Delete Query problem: Failure to Commit HQL Delete Transaction
Cannot insert values into a table
Nested Transaction Model
Transaction Problem