@Override public Long insert(Driver driver) { Long id = null; if (driver.getId() == null) { id = driverDao.insert(driver); LOGGER.info("new driver created. id: {}", id); } return id; }
@Override public Long update( String fullName, String phoneNumber, String address, java.util.Date startingDate, String certificate, Long id) { driverDao.update(fullName, phoneNumber, address, startingDate, certificate, id); LOGGER.info("driver {} updated", id); return id; }
@Override public void delete(Long id) { driverDao.delete(id); LOGGER.info("driver deleted. id: {}", id); return; }
@Override public Driver get(Long id) { return driverDao.getById(id); }