How to rollback a JDBC transaction?
Answers
Answered by
0
transaction is a logical unit of work. To complete a logical unit of work, several actions may need to be taken against a database.
Transactional support allows applications to ensure the following:
All the steps to complete a logical unit of work are followed.
When one of the steps to the unit of work files fails, all the work done as part of that logical unit of work can be undone and the database can return to its previous state before the transaction began.
Transactions are used to provide data integrity, correct application semantics, and a consistent view of data during concurrent access. All Java™ Database Connectivity (JDBC) compliant drivers must support transactions.
Transactional support allows applications to ensure the following:
All the steps to complete a logical unit of work are followed.
When one of the steps to the unit of work files fails, all the work done as part of that logical unit of work can be undone and the database can return to its previous state before the transaction began.
Transactions are used to provide data integrity, correct application semantics, and a consistent view of data during concurrent access. All Java™ Database Connectivity (JDBC) compliant drivers must support transactions.
Similar questions