class MarriageCertRepository {

	public void updateDoc(ReissueCertRequest reissueAppRequest){
		List<MarriageDocument> documents=reissueAppRequest.getReissueApplication().getDocuments();
		
		jdbcTemplate.batchUpdate(Docs_Update_Query, new BatchPreparedStatementSetter() {
			
			@Override
			public void setValues(PreparedStatement ps, int index) throws SQLException {
				MarriageDocument mrDoc=documents.get(index);
				
				ps.setString(1, mrDoc.getDocumentType());
				ps.setString(2, mrDoc.getLocation());
				ps.setString(3, reissueAppRequest.getRequestInfo().getDid());
				ps.setLong	(4, new Date().getTime());
				ps.setString(5, mrDoc.getTenantId());
				ps.setString(6, reissueAppRequest.getReissueApplication().getId());
			}

			@Override
			public int getBatchSize() {
				return documents.size();
			}
		});
	}

}