6970717273747576
} } public void add() { Service obj = (Service) viewToObj(null); ServiceDao dao = new ServiceDao(); add(dao, obj); }
7576777879808182838485
add(dao, obj); } public void delete() { ServiceForm obj = (ServiceForm) objListbox.getSelectedItem().getValue(); ServiceDao dao = new ServiceDao(); delete(dao, obj); // empty all fields ServiceForm emptyObj = new ServiceForm(); objToView(emptyObj);
136137138139140141142143
super.refreshObjEntities("Service.getAll", objListRenderer); } public void update() { ServiceForm obj = (ServiceForm) objListbox.getSelectedItem().getValue(); ServiceDao dao = new ServiceDao(); update(dao, obj); }