ODatabaseDocument - commit()
This method saves changes made in a transaction onto the database.
OrientDB supports the use of ACID transactions. This allows you to isolate database operations into units of work that you can commit or rollback later, depending on whether later conditions are met. Using this method you can commit a transaction. To initiate a transaction or revert the changes, see
In the event of error, such as the transaction encountering a conflict, this method raises an
This method returns the database instance itself, providing a fluent interface. This is useful when calling multiple methods in a chain.