7677787980818283
} } public void add() { Equipment obj = (Equipment) viewToObj(null); EquipmentDao dao = new EquipmentDao(); add(dao, obj); }
868788899091929394
return true; } public void update() { EquipmentForm obj = (EquipmentForm) objListbox.getSelectedItem().getValue(); EquipmentDao dao = new EquipmentDao(); update(dao, obj); }
93949596979899100101102103
} public void delete() { EquipmentForm obj = (EquipmentForm) objListbox.getSelectedItem().getValue(); EquipmentDao dao = new EquipmentDao(); delete(dao, obj); // empty all fields EquipmentForm emptyObj = new EquipmentForm(); objToView(emptyObj);