105106107108109110111112
} } public void add() { RegularMaintain obj = (RegularMaintain) viewToObj(null); RegularMaintainDao dao = new RegularMaintainDao(); add(dao, obj); }
111112113114115116117118119120121
add(dao, obj); } public void delete() { RegularMaintain obj = (RegularMaintain) objListbox.getSelectedItem().getValue(); RegularMaintainDao dao = new RegularMaintainDao(); delete(dao, obj); // resetting view data RegularMaintainForm form = new RegularMaintainForm(); objToView(form);
214215216217218219220221
refreshObjEntities("RegularMaintain.getAll", objListRenderer); } public void update() { RegularMaintain obj = (RegularMaintain) objListbox.getSelectedItem().getValue(); RegularMaintainDao dao = new RegularMaintainDao(); update(dao, obj); }