The ACID Test

Transactional operations are usually judged by whether they meet the ACID test, which is a simple set of four criteria that describes the desired properties of a transaction. These properties are atomicity, consistency, isolation, and durability.

Atomicity

Atomicity means that all operations in the transaction succeed or they all fail. As you have already seen, if only part of a transaction can succeed, it becomes extremely difficult to maintain data integrity.

Consistency

No matter what happens, during the transaction, the data is still in a consistent state. Some aspects of consistency are dependent on the program itself and not specifically the transac tion coordinator or the database. For example, if a transaction could allow ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.