Persist the same record by different user [closed]

1

I've seen what it's like, but I do not remember how it does and not a key word for me to search.

Suppose different users edit the same record, when the last user persists the information in the database, I want to show a message that this record has already been changed by another user.

Does anyone know how or a keyword to search?

    
asked by anonymous 30.08.2017 / 14:20

1 answer

0
  • Atomicity - The operations of a transaction will only be persisted (COMMIT) if they all execute successfully. If any failures occur, all transaction operations will be canceled (ROLLBACK).
  • Consistency - Transactions must respect the bank's integrity rules, such as primary keys, foreign keys, and so on, with only valid data persisting.
  • Isolation - A transaction can not be interfered with by concurrent transactions.
  • Durability - When a transaction is committed (COMMIT) the data will be persisted in the database, and can be retrieved.

I believe this is what I need. If someone, someday look, maybe help.

    
30.08.2017 / 16:28