My assignment specifies that the createRecord method throws a DuplicateKeyException but doesn't say how it's generated. I can think of 2 scenarios:
1) the contractor name and location fields together form a primary key for the file, and you're trying to add a duplicate primary key, or
2) you go to create the record but just before you do, some other
thread creates a record in the spot you were going to use.
Does anyone else see this differently, and how did you deal with #2 above?
ms