@Override
	public void writeCheckRes(CheckResult res) {
		try{
			if(writeCheckResPstmt == null){
				this.writeCheckResPstmt = writeConn.prepareStatement("insert into TB_CHECKRESULT"
						+ " (SCANPLAN_ID, FName, FsecurityRisk, Fcause, Ftext, FtestDescription, FWASC, FCVE, FCWE, FfixRecommendation, FSeverity, SYS_ID)"
						+ " values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
			}
			writeCheckResPstmt.setInt(1, res.getScanPlanId());
			writeCheckResPstmt.setString(2, res.getName());
			writeCheckResPstmt.setString(3, res.getRisk());
			writeCheckResPstmt.setString(4, res.getCause());
			writeCheckResPstmt.setString(5, res.getText());
			writeCheckResPstmt.setString(6, res.getDescription());
			writeCheckResPstmt.setString(7, res.getWASC());
			writeCheckResPstmt.setString(8, res.getCVE());
			writeCheckResPstmt.setString(9, res.getCWE());
			writeCheckResPstmt.setString(10, res.getRecommend());
			writeCheckResPstmt.setString(11, res.getSeverity());
			writeCheckResPstmt.setInt(12, res.getSysId());
			writeCheckResPstmt.execute();
			//writeConn.commit();
			//writeCheckResPstmt.addBatch();
           // batchCount++;
            //if (batchCount >= maxBatch) {
             //   commit();
            //}
		} catch(SQLException ex) {
            logger.log(Level.SEVERE, "write check result:", ex);
        }
	}