suncertify.db
Interface DbServer

All Known Implementing Classes:
ServerImpl

public interface DbServer
extends java.rmi.Remote

The interface for the RMI remote Object that will implement the server of the DBMS system.


Method Summary
 void add(java.lang.String[] newData)
          The method to add a new record.
 void addMul(java.lang.String[][] newDataList)
          The method to add multiple records.
 void delete(DataInfo toDelete)
          The method to delete a record.
 DataInfo find(java.lang.String toMatch)
          The method to find a record whose key value is specified.
 DataInfo[] findCriteria(java.lang.String criteria)
          The method to find all the records that has an exact match with a specified criteria.
 FieldInfo[] getFieldInfo()
          The methhod to get the Schema of the database.
 DataInfo getRecord(int recNum)
          The method to get a record whose record number is specified.
 int getRecordCount()
          The method to get the number of records in the database.
 void lock(int recNum, java.lang.String clientID)
          The method to lock a record or the database.
 void modify(DataInfo newData)
          The method to modify a record.
 void modifyMul(DataInfo[] newDataList)
          The method to modify multiple number of records.
 void unLock(int recNum, java.lang.String clientID)
          The method to release a lock initially placed on a record.
 

Method Detail

add

public void add(java.lang.String[] newData)
         throws java.rmi.RemoteException
The method to add a new record.

addMul

public void addMul(java.lang.String[][] newDataList)
            throws java.rmi.RemoteException
The method to add multiple records.

delete

public void delete(DataInfo toDelete)
            throws java.rmi.RemoteException
The method to delete a record.

find

public DataInfo find(java.lang.String toMatch)
              throws java.rmi.RemoteException
The method to find a record whose key value is specified.

findCriteria

public DataInfo[] findCriteria(java.lang.String criteria)
                        throws java.rmi.RemoteException
The method to find all the records that has an exact match with a specified criteria.

getFieldInfo

public FieldInfo[] getFieldInfo()
                         throws java.rmi.RemoteException
The methhod to get the Schema of the database.

getRecord

public DataInfo getRecord(int recNum)
                   throws java.rmi.RemoteException
The method to get a record whose record number is specified.

getRecordCount

public int getRecordCount()
                   throws java.rmi.RemoteException
The method to get the number of records in the database.

lock

public void lock(int recNum,
                 java.lang.String clientID)
          throws java.rmi.RemoteException
The method to lock a record or the database.

modify

public void modify(DataInfo newData)
            throws java.rmi.RemoteException
The method to modify a record.

modifyMul

public void modifyMul(DataInfo[] newDataList)
               throws java.rmi.RemoteException
The method to modify multiple number of records.

unLock

public void unLock(int recNum,
                   java.lang.String clientID)
            throws java.rmi.RemoteException
The method to release a lock initially placed on a record.