SCJP
Originally posted by Walter Tang:
Hello everyone
For the non-networking mode, is there any relation between the local database and the remote database? in another words, when user interacts with local database, should the remote database be updated as well?
Thank you very much for your help
Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Originally posted by Anton Golovin:
The local and remote database should be one and the same.
SCJP
For the non-networking mode, is there any relation between the local database and the remote database?
when user interacts with local database, should the remote database be updated as well?
The local and remote database should be one and the same.
For the non-networking mode, is there any relation between the local database and the remote database?
when user interacts with local database, should the remote database be updated as well?
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
Walter,
No. Local and remote datbase files are seperate entities.
SCJP
Originally posted by Michal Charemza:
As far as I understand for my assignment, B&S, the local database and remote database are entirly separate. Your program merely chooses where to get the database from, either locally, or through the network. There should never be any need to do both. To answer your inition questions:
is that on the "local" mode of the program will only usually be run on the computer that usually runs in "server" mode, thus using the same database.
Michal.
SCJP
Originally posted by Hanna Habashy:
Walter,
No. Local and remote datbase files are seperate entities.
SCJP
Hi Hanna, I just have one more question on the magic value. Can I assume that all the database files have the same magic value. So even the assessor has different database file, I should be able to check if that is correct one by looking at its magic value. In my databaes file the value is 0013.(four bytes) Do you have the same value? Thank you ver much......
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
Walter,
You cannot assume that all db files has the same mgic cookie value. The purpose of the magic cookie value is to ensure you that the db file adhers to the given schema specifications. For example, if one try to open a .doc file, he should get an error, because the magic cookie value is not there.
Every time a user attempts to open a local file, it must be checked to see if it is a valid db file by comparing its magic cookie value to the one the server operates on. I believe the tester will attempts that, otherwise the magic cookie value will be useless.
My magic cookie value was different than 0013. I think every version of the specification has differnt value.
SCJP
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
Walter,
My specification says "4 byte numeric, magic cookie value. Identifies this as a data file" So, I read it as an interger. It was something like 513.
What did you mean by 0013.the leading zeros should not be there if you read as int. however, you should go back to your specification document.
SCJP
Originally posted by Hanna Habashy:
Walter,
My specification says "4 byte numeric, magic cookie value. Identifies this as a data file" So, I read it as an interger. It was something like 513.
What did you mean by 0013.the leading zeros should not be there if you read as int. however, you should go back to your specification document.
SCJP
Originally posted by Hanna Habashy:
You cannot assume that all db files has the same mgic cookie value.[...]
I think every version of the specification has differnt value.[/QB]
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 Andrew Monkhouse:
Hi Walter,
As Hanna said earlier:
I can confirm that. Different SCJD database files may have different internal structures - even to the point where one URLyBird database file may have a different internal structure than another URLyBird database file. So there are many different cookie values being used by the different candidates at the moment.
Since you have confirmed that your cookie is 0013, that is the only value you should ever accept.
Regards, Andrew
SCJP
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|