Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Who is the locking user ?

 
ulvi ugur
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
My assignment says
Database schema
.....
.....
The id value (an 8 digit number) of the customer who has booked this. Note that this application, you should assume that customer and CSR know their ids. The system you are writing does not interact with these numbers, rather simply records them.. If this field is all blanks, the record is available for sale.

Now, coming to signature of the server about lock method.
public void lock(int recNo) throws RecordNotFoundException;
So it doesn't have a parameter for the user id, how do you send this ?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulvi,
The lock() method is just to lock the record - not to update it.
To update the record, you will call a method called update() [who thinks up these names ]. You will use the update() method to store the id value in the record.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic