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