When most database programmers refer to a transaction, they are referring to an ACID transaction. These transactions (logical unit of work) are designed for short-lived decisions usually lasting under a few seconds.
These transactions identify a logical unit of work that is either performed in complete or not at all. That is, either a COMMIT or a ROLLBACK is performed on the operations. This enables the data to maintain a state of consistency.
ACID is an acronym:
ACID Transactions are described in the GXA via the WS-Transaction specification. WS-Transaction refers to ACID transactions as, “atomic transactions”.