7778798081828384
} public void add() { Mechanic obj = (Mechanic) viewToObj(null); MechanicDao dao = new MechanicDao(); add(dao, obj); }
8384858687888990919293
add(dao, obj); } public void delete() { MechanicForm obj = (MechanicForm) objListbox.getSelectedItem().getValue(); MechanicDao dao = new MechanicDao(); delete(dao, obj); // empty all fields MechanicForm emptyObj = new MechanicForm(); objToView(emptyObj);
186187188189190191192193
refreshObjEntities("Mechanic.getAll", objListRenderer); } public void update() { MechanicForm obj = (MechanicForm) objListbox.getSelectedItem().getValue(); MechanicDao dao = new MechanicDao(); update(dao, obj); }