Previous Topic

Book Contents

Book Index

Next Topic

Committing Transactions

To save all objects in the transaction, call one of the two following methods, which differ in the way whether the transaction stays open for further work after committing or not.

ApiTransaction.doCommit()

Commits all operations performed in the transaction. It means that the changes are physically saved to the database and the transaction itself is closed. Until then, the operations you performed remain cached in the memory of your computer. doCommit releases all locks set by the transaction.

ApiTransaction.doCommitResume()

Same as previous, it also releases all locks set by the transaction and all changes are saved but unlike the previous method, the transaction remains open and you can continue working with this transaction.

See Also

Working in Transactions

Creating Transactions

Registering Objects to Transactions

Working with Objects in Transactions

Getting Transactions

Undoing Changes and Aborting Transactions

Propagating Changes

Calling Workflows on Certain Events