commitTransaction method

void commitTransaction()

Commits the edits in the transaction to the geodatabase.

Commits the edits in the current transaction to the geodatabase. This will also end the transaction. An error will be thrown if a transaction has not been started on the geodatabase.

Transactions can be started and stopped on any thread. Any edits that take place after a call to Geodatabase.beginTransaction but before a call to either Geodatabase.commitTransaction or Geodatabase.rollbackTransaction will be considered part of that transaction, no matter what thread made the edit.

Implementation

void commitTransaction() {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_Geodatabase_commitTransaction(_handle, errorHandler);
  });
}