Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To all beta testers

 
Ruby Wong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Tybon Wu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic