posted 16 years ago
It depends the meaning you give to the record key.
One option is to consider the record key to be the record number. The
DuplicateKeyException is never thrown in that case (record numbers are all
differents).
Another option is to consider a subset of the record data as the key. For
example, contractor name + contractor location. But in that case, the update
method should throw the same exception.
This is really a matter of design choice.
Gilles
[ March 05, 2008: Message edited by: Gilles Marceau ]
SCJP 1.5<br />SCJD 1.6<br />SCBCD in progress...