< Prev
Next >



Transaction Management



Transaction Management is to manage the transaction operations in a way that maintains the consistency and integrity of data within the database. A few examples of transaction management involve managing database transaction operations such as -

Transaction Management can be simply explained by performing the next few steps -






Basic elements of a transaction


Every transaction has properties that allow us to configure it within our application. Before we understand ways to manage transaction operations using Spring Framework, we should understand the important properties associated with each transaction. Some of the transaction properties are - propagation, isolation, read-only, roll back for exception, timeout .


Using the rollback-for property of transaction, we can specify a single or multiple exception classes. When any of these exceptions is thrown, the associated transaction is going to rolled back(without affecting the database consistency and integrity).




Ways to perform transaction management


There are two ways to perform transaction management -

Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2