public void doLoop() {
		String insert="insert into paperTermcount(paperid,count)values(?,?);";
		int num=0;
		try {
			PreparedStatement statement=sqLconnection.conn.prepareStatement(insert);
			this.rs=getPaperID();
			while (rs.next()) {
				int id = rs.getInt("paperid");
				int termcount = getCount(id);
				statement.setInt(1, id);
				statement.setInt(2, termcount);
				statement.addBatch();
				num++;
				if(num%1000==0)
				{
					statement.executeBatch();
					statement.clearBatch();
					System.out.println(num);
				}
				//System.out.println(id + "-" + termcount);
			}
			statement.executeBatch();
			
		} catch (SQLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
	}