begin() try { work on several in memory data structures commit() } catch { rollback() }
[1] https://en.wikipedia.org/wiki/Transactional_memory