package com.llgc.modele; import java.sql.SQLException; import com.llgc.dao.DAOVoiture; import com.llgc.modele.pojo.POJOVoiture; public class ModeleVoiture { private DAOVoiture dao = new DAOVoiture(); public void create(POJOVoiture entite) throws ClassNotFoundException, SQLException { dao.create(entite); } public POJOVoiture read(int id) throws ClassNotFoundException, SQLException { return dao.read(id); } public void update(POJOVoiture entite) throws ClassNotFoundException, SQLException { dao.update(entite); } public void updateNom(int id, String nom) throws ClassNotFoundException, SQLException { dao.updateNom(id, nom); } public void updatePoids(int id, int poids) throws ClassNotFoundException, SQLException { dao.updatePoids(id, poids); } public void updateMarque(int id, String marque) throws ClassNotFoundException, SQLException { dao.updateMarque(id, marque); } public void delete(int id) throws ClassNotFoundException, SQLException { dao.delete(id); } }