@Transactional(readOnly = false) public void updateComputer(Computer pComputer) { Log l = new Log(); Date now = Calendar.getInstance().getTime(); l.setDateLog(now); l.setOptionLog("Uptade"); l.setComputerLog(pComputer.toString()); compDao.updateComputer(pComputer); logDao.addLog(l); }
@Transactional(readOnly = false) public void deleteComputer(int pIdComputer) { Log l = new Log(); Date now = Calendar.getInstance().getTime(); l.setDateLog(now); l.setOptionLog("Delete"); l.setComputerLog(this.getComputerById(pIdComputer).toString()); compDao.deleteComputer(pIdComputer); logDao.addLog(l); }
public List<Computer> getComputers(String filtre, String companyFiltre) { return compDao.getComputers(filtre, companyFiltre); }
public ListComputer getComputers(Pageable page2) { ListComputer l = compDao.getComputers(page2); return l; }
public ListComputer getComputers(String parameter, String searchC, Pageable page2) { ListComputer l = compDao.getComputers(parameter, searchC, page2); return l; }
public boolean existComputer(int pIdComputer) { return compDao.existComputer(pIdComputer); }
public Computer getComputerById(int pIdComputer) { Computer c = compDao.getComputerById(pIdComputer); return c; }