public static void majTypeCaddie (String val, Vector<Caddie> toInsert) throws BDException {
		String requete = "update config set type_cad =";
		if (val.compareTo("PERSISTANT") == 0)
			requete+="'P'";
		else if (val.compareTo("VOLATILE") == 0)
			requete+="'V'";
		else
			requete+=val;

		Statement stmt = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		Connection conn = null;

		try {
			conn = BDConnexion.getConnexion();

			stmt = conn.createStatement();
			stmt.executeUpdate(requete);

			if (toInsert != null){
				stmt.executeUpdate("delete from lecaddie");
				for (int i=0;i<toInsert.size();i++){
					requete = "insert into LeCaddie values (?,?,?,?,?)";
					pstmt = conn.prepareStatement(requete);
					pstmt.setInt(1, toInsert.get(i).getId());
					pstmt.setInt(2, toInsert.get(i).getNumS());
					pstmt.setTimestamp(3, new Timestamp((new SimpleDateFormat("dd/MM/yyyy HH:mm")).parse(toInsert.get(i).getDate()).getTime()));
					pstmt.setInt(4, toInsert.get(i).getZone());
					pstmt.setInt(5, toInsert.get(i).getQt());			
					int nb_insert = pstmt.executeUpdate();

					if (nb_insert != 1)
						throw new BDException("Problème lors du transfert de caddie");

					conn.commit();
				}
			}		
		} catch (SQLException e) {
			throw new BDException("Problème lors de la mise à jour du type du caddie (Code Oracle : "+e.getErrorCode()+")");
		} catch (ParseException e) {}
		finally {
			BDConnexion.FermerTout(conn, stmt, rs);
			BDConnexion.FermerTout(null, pstmt, null);
		}
	}