docs: public int doEdit() throws DBException
      {
          Record record = this.getRecord();
          if (record.getKeyArea(0) != null)
          {   // Record was set up using a cached copy, restore the primary key so you can update it!
              KeyArea keyArea = record.getKeyArea(0); // Primary index
              keyArea.setupKeyBuffer(null, DBConstants.TEMP_KEY_AREA);        // Save keys for possible update/delete
          }
          if (this.lockOnDBTrxType(null, DBConstants.LOCK_TYPE, true))
              return this.lockCurrentRecord();
          else
              return DBConstants.NORMAL_RETURN;
      }