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:
public interface DBAccess{
public
String [] readRecord(long recNo) throws RecordNotFoundException;
public void updateRecord(long recNo, String[] data, long lockCookie) throws RecordNotFoundException, SecurityException;
public void deleteRecord(long recNo, long lockCookie) throws RecordNotFoundException, SecurityException;
public long[] findByCriteria(String[] criteria);
public long createRecord(String [] data) throws DuplicateKeyException;
public long lockRecord(long recNo) throws RecordNotFoundException;
public void unlock(long recNo, long cookie) throws SecurityException;
}
Question:
1. can I modify the DBAccess directly? For example, add some methods to this interface. Such as :
public string[] getFieldInfo() ?
2. can I modify the methods in the DBAccess ? For example, add ' synchronized ' to the method?
Thanks.