Omar Abdel Moniem

Greenhorn
+ Follow
since Dec 25, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Omar Abdel Moniem

Originally posted by Fred Barnes:
Hi Guys,
Here is my plan of attack! Please comment and advise...
suncertify.db

public interface DataInterface
Includes all the public methods of Data, plus criteriaFind method.
All methods throws IOExceptions.
getRecord, find, add, modify, delete also throws DatabaseExceptions.

public class Data
Data is changed to implement DataInterface
citeriaFind is implemented while lock and unlock remain empty.
Datainfo, FieldInfo and DatabaseException remain unchanged.

suncertify.server

public interface RemoteDataInterface
Extends DataInterface and implements Remote.
public class RemoteData
Extends UnicastRemoteObject implements RemoteDataInterface and Unreferenced.
Has a static reference to Data and LockManager.
Implement lock and unlock methods.
public interface ConnectionFactory
Implements Remote
Has a getConnection method that returns a DataInterface. For local connection it will return Data and remote an instance of RemoteData.
public class ConnectionFactoryImpl
Extends UnicastRemoteObject and implements ConnectionFactory.
public class LockManager
Uses a HashMap to store locked records.
suncertify.client
public class DataModel extends AbstractTableModel
Implemented as a facade.
Contains the book, search and getConnection methods.
public class DataController
The controller class in my client side MVC.
Here I will implement all needed listeners.
public class DataView
Class containing all my GUI components.
Kind Regards
Fred


Hello I just have one remark. Why RemoteData class and ConnectionFactoryImpl both extend UnicastRemoteObject.
Regards
Omar