public static int testNouveauTicket (Connection conn) throws BDException {
		String requete = "select max(noserie) from lestickets";
		Statement stmt = null;
		ResultSet rs = null;

		int toReturn = 0;

		try {
			stmt = conn.createStatement();
			rs = stmt.executeQuery(requete);
			if (!rs.next()) {
				throw new BDException("Problème, impossible de créer un nouveau ticket");
			}
			else
				toReturn=rs.getInt(1);

			requete = "insert INTO lesdossiers values (?,?)";


		} catch (SQLException e) {
			throw new BDException("Problème ticket (Code Oracle : "+e.getErrorCode()+")");
		}
		return toReturn+1;
	}