As far as I can see, the update and create method in the DB interface are never used. Do I have to fill the implementation with working code ?
What if the room was already booked by another client inbetween ?
Do I have to display a message to the user, that his selection was already booked while he made his decision ?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Linus Friedrich:
So, if a booking procedure is just a matter of update the record and set the given customer number, where is the lock and unlock method for ?
In this case it should be sufficient to "synchronize" the update method, isn't it.
Do I miss something ???
Originally posted by Linus Friedrich:
So, if a booking procedure is just a matter of update the record and set the given customer number, where is the lock and unlock method for ?
In this case it should be sufficient to "synchronize" the update method, isn't it.
Do I miss something ???
By the way: My apologize about my display name, I wasn't aware of that. I changed it now from M. Groening to Linus Friedrich.
-------------------------------<br />OCP 9i <br />SCJP/SCJD/SCWCD(92%)/SCDJWS<br />XML(IBM Test 141)<br />Who is the next?SCBCD<br />SCBCD/CCNA/CCNP/PMP<br />not sure
Originally posted by dennis du:
--------------------------------------------------------
Is it exceptable to change the interface by declaring exceptions?
i.e.
This
public String [] read(int recNo) throws RecordNotFoundException;
to this
public String [] read(int recNo) throws RecordNotFoundException, RemoteException;
--------------------
I don't think this change is ok. So I write a new Interface for
client ,for RMI server.
For the DB class , I just implement it to Data class.
Maybe the request just want some olg system can access the new application through the interface,So you should not change this DB interface.
dennis