FileDocCategorySizeDatePackage
FamilyDM.javaAPI DocExample569Tue Dec 08 01:21:00 GMT 1998DataManagement

FamilyDM.java


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);
  }
}