... a data file that contains essential information for the company, but because the data must be manipulated ... the new system must reimplement the database code from scratch without altering the data file format.
SCJP, SCJD, SCWCD, SCBCD
The original data file can be replaced by another data file.
The data file format in a new datafile however remains the same.
The schema description section in a new data file can change.
Looking for better solution...<br />SCJP1.4
Originally posted by Darya Akbari:
Would these be right interpretations :
The original data file can be replaced by another data file.
The data file format in a new data file however remains the same.
The schema description section in a new data file can change.
SCJP 1.4, SCJD
SCJP, SCJD, SCWCD, SCBCD
Looking for better solution...<br />SCJP1.4
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Darya Akbari:
However your conclusion that the schema description is separately specified in the assignment sounds reasonable. It really wouldn't be necessary because the schema description is already specified through the data file format. So why should they mentioned it twice?
[QB]By the way Frans, is it possible that you are a native german speaker ?
You're close, but in fact I am a native Dutch speaker.
Frans.
SCJP 1.4, SCJD
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
SCJP 1.4<br />SCJD 1.4<br />SCWCD 1.4<br />SWBCD (Preparing)
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Darya Akbari:
Talking in the terms of the Adapter Pattern, would the following assumptions be correct?DB interface as my Target interface data access class Data as my Adapter class. the data file as class Database as my Adaptee class
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Since we are talking about patterns - have you considered whether your locking code really belongs in the Data class? Since you are moving the data access methods into an Adaptee class, you might want to move the locking code into a class that is specifically designed for locking. In which case, your Data class might also be a Fa�ade .
SCJP, SCJD, SCWCD, SCBCD
The client of Data must get the cookie when it calls the lock method, then use it in the calls to update and unlock.How can I hide the lockCookie from the clients eye? Or is the client of Data supposed to handle lockCookie?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog