One of the requirement says "It must allow the user to book a selected record, updating the database file accordingly".
But this specification never says anything about the create/delete methods as provided by the DBMain.java. Does it mean I don't need to implement any code for create/delete?
Also, another specification"The program must allow the user to specify the location of the database in both standalone and network mode and persist the db configuration details in suncertify.properties file. The application must read the properties file to determine the location of the db and display the data from the db."
So, does it mean every time I finish the GUI, the db file location, port number and etc information should be stored in the properties file. And every time I start the GUI again, the properties file must be read?
As I searched, create/delete methods are not required for some test takers. I may want to put these tasks as the last tasks. If these two methods work fine, that is fine. If these two methods are not working fine, I may not lose any point because it is not required.
Does it what the following quotes mean?
If things didn't change, a feature of deleation is not mandatory to be implemented (at least it wasn't in the old Sun days), but you must implement the delete method in your class that implements the interface that was provided to you. In fact, I'd advise you not to offer such a thing in your GUI if it isn't mandatory, because you won't be given extra points for doing things that are not required, and worse, you may lose points.
I agree with Roel. It is indeed risky to have an empty implementation.
For me too, requirements were similar (no necessity for create and delete operations, but given interface was containing those methods).
So, I wrote a descent working code for those methods, but did not expose those methods via RMI or did not provide any buttons on GUI. So, only way to invoke those methods was to write another class and call the methods.
Of course, I mentioned all these things in choices.txt
If create/delete methods don't work correctly (as described by the comments in the given interface), you'll definitely lose points (but you may pass the certification). If you decide to not implement these methods (e.g. throw new UnsupportedOperationException("delete not yet supported")) you might risk failure.