Returns the number of transactions nested in the current instance.
OrientDB does not support nested transactions. Instead, further calls to
begin() are applied to the current transaction, which keeps track of the call stack to let the final
commit() commit the transaction. Using this method, you can see how many transactions have been set on this
This method returns an
int, which represents the number of nested transactions.