package fonctions;

import java.sql.Connection;
import java.sql.PreparedStatement;

import retro.DBConnexion;

public class ActionPlanDAO {

public void insertActionPlan(String libelle1,String libelle2,String libelle3,String libelle4, String libelle5,String id_meeting){
		

		Connection connection= DBConnexion.getConnection();
		PreparedStatement ps=null;
		
		try {	
		
		String query="insert into action_plan(libelle1, libelle2, libelle3, libelle4, libelle5, id_meeting) values(?,?,?,?,?,?)";
		 ps=connection.prepareStatement(query);
		 ps.setString(1, libelle1);
		 ps.setString(2, libelle2);
		 ps.setString(3, libelle3);
		 ps.setString(4, libelle4);
		 ps.setString(5, libelle5);
		 ps.setString(6, id_meeting);
ps.executeUpdate();
		 		 
		 
		} catch (Exception e) {
			System.err.println(e);
		}
	}


//public static void main(String[] args) {
//	ActionPlanDAO obj_ReadValues=new ActionPlanDAO();
//	
//	obj_ReadValues.get_values();
//}


//private void get_values() {
//	// TODO Auto-generated method stub
//	
//}

}
