SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
hi Mingwei:
In my project, by looking at all records in the given database, I identified that the primary key were contractor name and location together.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Another exception issue in DB was DuplicateKeyException. I wrote
a class called DuplicateKeyException, but I never throw it. After
all, nothing anywhere defined a primary key, so I let it alone. I
documented that it is neither thrown nor used.
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Anton Golovin ([email protected]) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
SCJP 1.4
Regards, Richard
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Consider Paul's rocket mass heater. |