96979899100101102103104105106
* Add this for batch execution. */ public void addBatch() throws SQLException { PstmtBatch pstmtBatch = persistRequest.getPstmtBatch(); if (pstmtBatch != null) { pstmtBatch.addBatch(dataBind.getPstmt()); } else { dataBind.getPstmt().addBatch(); } }
5051525354555657585960
pstmt = bindStmt(request, batchThisRequest); if (batchThisRequest){ PstmtBatch pstmtBatch = request.getPstmtBatch(); if (pstmtBatch != null){ pstmtBatch.addBatch(pstmt); } else { pstmt.addBatch(); } // return -1 to indicate batch mode return -1;