Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


search: keywords: ['java', 'otransaction', 'commit']

OTransaction - commit()

Commits the transaction to the database.

Beginning Transactions

OrientDB supports the use of transactions to isolate database operations and roll back or save changes once the task is complete. Using this method, you can commit a transaction. To roll it back later, see the rollback() method. To initiate it, see begin() method.

Syntax

void OTransaction().commit()

void OTransaction().commit)(boolean force)
ArgumentTypeDescription
forcebooleanDefines whether to force the commit