6061626364656667
refreshObjEntities("Supplier.getAll", objListRenderer); } public void add() { Supplier obj = (Supplier) viewToObj(null); SupplierDao dao = new SupplierDao(); add(dao, obj); }
6667686970717273
add(dao, obj); } public void update() { Supplier obj = (Supplier) objListbox.getSelectedItem().getValue(); SupplierDao dao = new SupplierDao(); update(dao, obj); }
7374757677787980818283
} public void delete() { Supplier obj = (Supplier) objListbox.getSelectedItem().getValue(); SupplierDao dao = new SupplierDao(); delete(dao, obj); // empty all fields Supplier emptyObj = new Supplier(); objToView(emptyObj);