Hi All!
Here is my design.
db (pack)
========
1.DataInterface (interface) has all Public methods, all methods throws RemoteException, few throws DBE, IOE
2.Data (class) implements lock(), unlock(), criteriaFind()
(changed sign. Of lock(record_no, id) , unlock(record_no, id) will this reduce marks??)
server (pack)
==========
3.ServerDataInterface (interface) extends Remote, DataInterface
4.ServerData (class) extends Data implements DataInterface, and override lock(), unlock()
(exports �itself� using export() method)
Binder (class) binds ServerData
client (pack)
==========
5.ClientGUI (class)
6.DataFactory (class) return DataInterface (Data or ServerData)
7.ClientAdapter (class) extends DataInterface (is ClientAdapter�s implementation correct ???)
{
DataFactory df = new DataFactory();
DataInterface di = df.getData();
public void add(�..)
{
di.add(�.);
}
public void delete(�..)
{
di.delete (�..);
}
public void modify(�..)
{
di. modify(�..);
}
public void criteriaFind(�..)
{
di.criteriaFind (�..);
}
public void lock(�..)
{
di.lock (�..);
}
public void unlock(�..)
{
di.unlock (�..);
}
.
.
.
.
.
.
searchFlight()
{
criteriaFind(�)
}
reserveSeats(�.)
{
lock(�)
unlock(�..)
}
}
ClientGUI
{
ClientAdapter ca = new CA();
buttonsearch.addactionListen(����)
{
ca.searchFlight(�.)
}
buttonreserveSeats.addactionListen(����)
{
ca.reserveSeats(�.)
}
}
need your valuable suggestions. can i clear the exam with this simple design?
Thanks,
Bhuvan.
[ April 01, 2002: Message edited by: Bhuvan ]