Hi everyone, I am working on the Bodgitt and Scarper Project and I�m at the point where I could use some of your kindly advice.
Mainly for the purposes of
testing my code I have implemented fully functioning methods for all methods listed in interface DB.
public
String[] read(int recNo) throws RecordNotFoundException;
public void update(int recNo, String[] data, long lockCookie)
throws RecordNotFoundException, SecurityException;
public void delete(int recNo, long lockCookie)
throws RecordNotFoundException, SecurityException;
public int[] find(String[] criteria);
public int create(String[] data) throws DuplicateKeyException;
public long lock(int recNo) throws RecordNotFoundException;
public long lock(int recNo) throws RecordNotFoundException;
I also have a lot of extras, such as sorting and filtering of data in the Jtable, data validation methods for updating and creation as well as other functions designed for user friendliness and making the application somewhat robust.
While my understanding is, at a bare minimum the functions for searching and booking along with the need for locking and unlocking are the only functions that truly need to be fully implemented.
My question is this, is it better to summit my project with all methods fully implemented or would it be wiser to only implement what is truly required. My fear is that there may be errors in the non required methods that would result in points be taken off.
Would it be acceptable to comment out the code in the non required methods and document that these methods may by serve the purposes of future functionality by uncommenting the code at some point in the future.
I would appreciate any comments you could pass along to me.
Thank you.
Phil