O'Reilly logo

Learning Modular Java Programming by Tejaswini Mandar Jog

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transaction management

There are many times when in an application we need to fire multiple queries of add, update, remove, or all of them as a batch. In a batch of statements where multiple queries get fired against a database as a unit, all the queries should be successful or none of them. This is called transaction management. Transaction management is helpful in maintaining data consistency. In transaction management, it is not necessary that the queries should be fired against different tables in a database.

The following are the properties of a transaction:

  • Atomicity: When firing multiple queries, either all of them should be committed or none of them. This property makes sure that whatever operations are performed on the database and whenever ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required