Hi,
Question 1:
===========
My GUI requirement states that:
"It must allow user to book a selected record, updating the database file accordingly"
But it did not mention "unreserve" the record, does that mean we just let the user book but cannot un-book the hotel?
Question 2:
===========
Also, in the interface, I have the following methods, are my assumptions correct and meet the requirements:
public
String[] read(...) - no GUI implementation
public void update(...) - associate GUI with "book" button, can this be translated to updating the "owner" field with customer name? which implies that the user can only modify the "owner" field in the record? or all fields in the record?
public void delete(...) - no GUI implementation
public int[] find(...) - associate GUI with "search" button, assume hotel with empty "owner" is available.
public int create(...) - no GUI implementation
public long lock(...) - no GUI implementation, but used when other methods are called.
public lon unlock(...) - no GUI implementation, but used when other methods are called.
Question 3:
===========
If lock() is called and JVM crashes, we assume all records are lock free when we restart the application, right? I see other people are using complicated methods to generate the cookie, if I just use an int and increment the value from my server, my cookie should be unique enough, why do they need to use Math.random() or other techniques to generate the number?
thanks a lot!!!
[ March 08, 2004: Message edited by: Chee-Chan Keng ]