File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "To all beta testers" Watch "To all beta testers" New topic
Author

To all beta testers

Ruby Wong
Greenhorn

Joined: Aug 29, 2002
Posts: 5
Hi,
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 who2contact@sun.com 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.


SCJP2
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

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.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To all beta testers