docs: public int edit(int iOpenMode) throws DBException, RemoteException
      {
          Record record = this.getMainRecord();
          int iOldOpenMode = record.getOpenMode();
          try   {
              Utility.getLogger().info("EJB Edit");
              synchronized (this.getTask())
              {
                  record.setOpenMode((iOldOpenMode & ~DBConstants.LOCK_TYPE_MASK) | (iOpenMode & DBConstants.LOCK_TYPE_MASK));  // Use client's lock data
                  return record.edit();
              }
          } catch (DBException ex)    {
              throw ex;
          } catch (Exception ex)  {
              ex.printStackTrace();
              throw new DBException(ex.getMessage());
          } finally {
              record.setOpenMode(iOldOpenMode);
          }
      }