package DataManagement;
import ProblemDomain.*;
import java.util.*;
public class FamilyDM {
Hashtable records = null;
public FamilyDM() {
records = new Hashtable();
}
public void add(Integer refNo,Family data) {
records.put(refNo,data);
}
public void setData(Hashtable object) {
records = object;
}
public Enumeration list() {
return records.keys();
}
public Hashtable getRecords() {
return records;
}
public Object getRecord(Object index) {
return records.get(index);
}
}
|