File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes To all beta testers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "To all beta testers" Watch "To all beta testers" New topic

To all beta testers

Ruby Wong

Joined: Aug 29, 2002
Posts: 5
There is a problem in interface DBMain. The first parameter (key) in the find(String key, boolean lock) method is not defined. I thought it represents the name of the subcontractor.
What do you think?

P.S. I have written to and will post the reply here.
[ September 04, 2002: Message edited by: Ruby Wong ]

--<br />Ruby
Tybon Wu
Ranch Hand

Joined: Jun 18, 2002
Posts: 84
I also think it means the subcontractor name, because that's the only field in the database schema that can be used as a key.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Yes it probably represents the contractor field, but the variable name key is more generic so that the interface can work with other database tables.
It is correct then to have String key as the parameter, actually it is preferred.
If you were to change ti to contractor it would work for a table like the one in the FBN assignment, or any other table except for ones where the primary key field is called contractor.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: To all beta testers
It's not a secret anymore!