Пример #1
0
 public List<CadSetor> listar() {
   return CadSetorDAO.getInstance().listAll();
 }
Пример #2
0
 public void alterar(CadSetor CadSetor) {
   CadSetorDAO.getInstance().saveUpdate(CadSetor);
 }
Пример #3
0
 public void excluir(CadSetor CadSetor) {
   CadSetorDAO.getInstance().delete(CadSetor);
 }
Пример #4
0
 public CadSetor incluir(CadSetor obj) {
   obj.setId_setor(null);
   CadSetorDAO.getInstance().saveInsert(obj);
   return obj;
 }