Topic: Should I expose the lockRecord and unlock methods to clients of the server program
The DBAccess interface specifies the lockRecord and the unlock methods, do I, or don�t I expose these methods to clients.
Choice: Should I expose the lockRecord and unlock methods to clients of the server program
It clearly states the following:
quote:
________________________________________
SERVER
Required Interface
Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:
________________________________________
This means that for accessing my data, server-side ! I must have a class called "Data.java" in package "suncertify.db", NOTHING is mentioned about having to expose this interface to the clients !!!
Also using this design improves code clarity.
Since the assignment DOES state:
quote:
________________________________________
Use of functionality provided by the core
Java classes will be prefereed to your own implementation of that functionality
________________________________________
and ALSO:
quote:
________________________________________
A clear design, such as will be readily understood by junior programmers, will be preferred to a complex one
________________________________________
So, I currently have a solution in which I dont offer these methods to my clients.
Will sun treat this as an immediate failure or not ???
I would VERY much like to know before handing in my assignment.
Thx in advance