code: public boolean isForUpdate() {
          mLock.lock();
          try {
              return (mClosed || mActive == null) ? false : mActive.isForUpdate();
          } finally {
              mLock.unlock();
          }
      }
docs: Returns true if an active transaction exists and it is for update.