Roel De Nijs wrote:Hi jasn hofy,
First of all, a warm welcome to CodeRanch!
jasn hofy wrote:For CSRs, that means they will only help user book/unbook hotels, so I think we should not provide create and delete functionalities on UI level, but we should implement these on DB layer.
Pl let me know if my understanding is correct or not.
You are spot-on!
My GUI had only two buttons: one to search for hotel rooms and another one to book the selected hotel room.
Hope it helps!
Kind regards,
Roel
Thanks a lot for your prompt and useful reply, Roel. really appreciate that. I have another question about Denny's DVD, in the book, it says
'Since there is only one physical file on disk, it is tempting to consider making the DvdFileAccess class a singleton—coding the class in such a way that only one instance of DvdFileAccess can exist at any given time. However, a lot of work can be performed in
parallel if multiple clients are working on a multiple-CPU system, for example, converting between a DVD value object and the bytes on file, or searching through the data file.'
does that mean different client can't work in parallel on a multiple-CPU system in DvdFileAccess class if it is implemented as singleton? I didn't get that. If only one instance DvdFileAccess exist, different CPU can't call its method at the same time?