Hi there.
I am a little bit unsettled: In the B&S assignment I got that not so nice interface with a lot of
String[] arrays in it. Naturally I don't like untyped information, so I am going to eliminate them as soon as I get them.
Solution:
My (dirty) interface --> Adapter(Design
Pattern) --> nice Interface (without String[] arrays) --> DB
Now the reason for my unsettled feelings: Sun defines in my assignment "Your data access class must called "Data.java", must be in a package called "suncertify.db", and must implementt following interface:"
In my clean design (I guess) my Implementation of the specified interface would be my adapter (I could call the Adapter Data.java). Normally I wouldn't even think about that, but I don't want to fail in any automatic tests, Sun is going to run after my uploading.
Has anyone had similar thoughts before me and had no problem during validation?? I would like to keep my design clean, but I am not sure how strict sun is going to evaluate all the 'MUSTs' in the assignment.
Any tips?
Best Regrads,
R
PS: I am not talking about an adapter, so that the client don't see the lock/unlock methods. I am talking about the upper tier to the used DB.