Forums Register Login

NX (Contractors).. DBAccess, Data, and DataAdapter Dilemma

+Pie Number of slices to send: Send
Hi Everyone,
I just started the new assignment (Contractors), before that I completed the indispensable Max's book.
The Dilemma I'm facing at the moment is a Sun's requirement thing. The requirements say:
"Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface..."
does this mean that the class that handles the DB I/O must be Data.java?
Or , as Max advises, we can declare a DB I/O calss that handles the I/O without impliementing the DBAccess Interface?.
Between trying an elegant solution and sticking to the requirements, there is a fine thin red line. You cross it and you fail automatically.
+Pie Number of slices to send: Send
IMO, this means the class that handles at least the IO in the interface must be in the Data class.
ms
+Pie Number of slices to send: Send
Hi Majid
Welcome to JavaRanch.
Your requirements do not state that all IO must be done through the Data class. You could have another class doing IO which Data calls as required.
If you do this, you just have to make sure that the Data class is the class that the rest of your application calls to access the database - they must not call (or even know about) your other class which is doing the low level work.
Regards, Andrew
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 431 times.
Similar Threads
COMPILER
Axis POST method error
please send me the answer
why can't we instantiate abstract class
Output of this code?!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:40:47.