@Override public Boolean call() throws Exception { return insertBatch(pstmt); } }).call();
@Override public void flush() throws SQLException { if (this.pendingInserts == null || this.pendingInserts.isEmpty()) { return; } try (PreparedStatement pstmt = this.conn.prepareStatement(createPrepareStatementStr(this.pendingInserts.size()));) { insertBatch(pstmt); } }
@Override public Boolean call() throws Exception { return insertBatch(pstmt); } }).call();
@Override public void flush() throws SQLException { if (this.pendingInserts == null || this.pendingInserts.isEmpty()) { return; } try (PreparedStatement pstmt = this.conn.prepareStatement(createPrepareStatementStr(this.pendingInserts.size()));) { insertBatch(pstmt); } }