code: public void doAdd(Rec record) throws DBException
      {
          super.doAdd(record);
          if (m_arrayCache != null)
              if (m_iEndOfFileIndex != NO_INDEX)
          {
              m_iEndOfFileIndex++;
              m_arrayCache.set(m_iEndOfFileIndex, this.getDataSource());  // Show the current record as deleted.
          }
      }
docs: Add this record to this table.
  Add this record to the table and set the current edit mode to NONE.
  @param record The record to add.
  @throws Exception