Hi,
I have written a new interface named
DBReader that extends
DBAccess interface. My new interface
DBReader has defined few methods namely
connectDB(); deleteRecord(long recNo) throws RecordNotFoundException, SecurityException; public void updateRecord(final long recNo, final String[] data) throws RecordNotFoundException, SecurityException;
and my
Data class implements the
DBReader interface and indirectly implements
DBAccess . Now deleteRecord and updateRecord are overloaded methods in
Data class and clients must invoke the new methods in order to delete or update the record. I have chosen this strategy to build locking functionality at server side and fulfil my
Cookie requirement.
my update method in
Data class looks like the following
similarly i have delete method also.
Does my design look fine or Do I need to consider alternative way?
thanks
sat