This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
in my instruction: // Modifies the fields of a record. The new value for field n // appears in data[n]. Throws SecurityException // if the record is locked with a cookie other than lockCookie. public void update(int recNo, String data, long lockCookie) throws RecordNotFoundException, SecurityException;
One way - assume that one or more "fields" of your records make up a "key". An update would then not change the key, but just the other "fields" in that record. If you need to change the key - then that would be a create (or first delete, then create).