Originally posted by frank sun:
Thanks, you make me clear a lot,
but, should I add one function to let the applicaion to fill in the date which he want to reserve.
regards!
frank
when you validate the booking ensure that the date is within 48 hours of system date.
OR, you could simply not provide any dates that are out of range,
Originally posted by shan chen:
Hi, Ta Ri Ki Sun,
what do you mean "system date"? One date in my db file is 2004/08/19, then what is the correct time range of
1. within 48 hours of system date?
or
2. within 48 hours of the start of room occupancy?
thanks,
shan
They take bookings only within 48 hours of the start of room occupancy
Originally posted by frank sun:
Thanks, so we do not care the date at all, right?
10 questions more:
1.Is it necessary to consider the new hotel adding/delete/update?
2.Do we need to consider canceling the book?
3.After the guest leave the hotel, do we need to consider updating the record?
4.The field 'size' , in the literal meaning is max occupancy of the room, but it is the hotel's max occupancy, right?
5.When the size of certain hotel is reached, the booking for that hotel should failed, right?
6.Do I need to provide the lock/unlock function when running in the standalone mode(3 modes totally, server,client,standalone)
7.What the field 'recordnumber ' mean? there are no any column defined in the db.db file.
8.Should I define 2 classes, one implements the Serialzable, it's for the remote access; the other one does not implements the Serializable, it's for the standalone mode, Right?
9.Do I need to read out the magic cookie number from the db.db file by myself at first, and then take it as the criteria to check whether the db.db file is correct or not?
10.Quoted from the db.db file format description: '1 byte flag. 00 implies valid record, 0xFF implies deleted record'; does it mean that we do only need to mark the to-be deleted record as '0xFF', we do not delete actually, right? and I am confused when should we use the Delete function, which pre-defined in the interface?
Expecting for your help!
Appreciation!
Frank
Originally posted by frank sun:
There in the instruction, it says
'In standalone mode,must not involve the serialization of any objects when communicating between the GUI and database elements.'
Does it mean I have to create 2 classes to meet the network and non-network modes?
Comments,please!
Frank
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Originally posted by frank sun:
That sounds so great, so I just don't have to create 2 classes, one implements seriazable, the other does not, and in the local mode, I must not call the seriazable method.
Thanks!
Frank
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Originally posted by Barry Gaunt:
Thank you Ta Ri Ki Sun for clarifying that for me. By the way, what do your friends call you? Ta? Ta-Ri? Ta-Ri-Ki? Sorry, I am unfamiliar with non-european naming convention.
-Barry
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I can't beleive you just said that. Now I need to calm down with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|