Originally posted by Mike Ng:
The magic cookie identifies a file as a valid database file. For example, if your database file starts with the cookie '0x000A000B', you should check when you open a file to make sure it has this cookie to be sure that the file is valid.
I am not sure if everyone has the same magic cookie. I just open my file and print out the hex value and code it in my application so that it won't open any file without that value.
As for the customer Id, normally when you book a reservation, you will need all those customer info such as name, address,... For this assignment, you only need to input the customer Id.
Btw, I am working on URLyBird but it has the same requirement for the customer Id.
Originally posted by Mike Ng:
I think Sun makes you confuse.
magic cookie -> identify a valid database file
lock cookie -> this is an Id your database server generates every time it locks a record. It is a running counter. The server gives to the client who locks the record so that only that client can work with the record.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |