beginTransaction method

void beginTransaction()

Starts a transaction on the geodatabase.

This method starts a new transaction on the geodatabase. The transaction fails to begin if another transaction is already active. A geodatabase cannot be synchronized while a transaction is active.

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 beginTransaction() {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_Geodatabase_beginTransaction(_handle, errorHandler);
  });
}