private void flushSingleRow(RowImpl row, PreparedStatement ps) throws SQLException { row.flush(ps, _dict, _store); int count = ps.executeUpdate(); if (count != 1) { Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); else if (row.getAction() == Row.ACTION_INSERT) throw new SQLException(_loc.get("update-failed-no-failed-obj", String.valueOf(count), row.getSQL(_dict)).getMessage()); } }
int count = executeUpdate(stmnt, sql, row); if (count != 1) { Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); throw SQLExceptions.getStore(se, row.getFailedObject(), _dict); } finally { if (stmnt != null) {
switch (cnt) { case Statement.EXECUTE_FAILED: // -3 failed = row.getFailedObject(); if (failed != null || row.getAction() == Row.ACTION_UPDATE) _exceptions.add(new OptimisticException(failed)); case 0: // no row is inserted, treats it as failed failed = row.getFailedObject(); if ((failed != null || row.getAction() == Row.ACTION_INSERT)) throw new SQLException(_loc.get(
private void flushSingleRow(RowImpl row, PreparedStatement ps) throws SQLException { if (ps != null) row.flush(ps, _dict, _store); int count = executeUpdate(ps, row.getSQL(_dict), row); if (count != 1) { logSQLWarnings(ps); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); else if (row.getAction() == Row.ACTION_INSERT) throw new SQLException(_loc.get("update-failed-no-failed-obj", String.valueOf(count), row.getSQL(_dict)).getMessage()); } }
private void flushSingleRow(RowImpl row, PreparedStatement ps) throws SQLException { if (ps != null) row.flush(ps, _dict, _store); int count = executeUpdate(ps, row.getSQL(_dict), row); if (count != 1) { logSQLWarnings(ps); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); else if (row.getAction() == Row.ACTION_INSERT) throw new SQLException(_loc.get("update-failed-no-failed-obj", String.valueOf(count), row.getSQL(_dict)).getMessage()); } }
private void flushSingleRow(RowImpl row, PreparedStatement ps) throws SQLException { if (ps != null) row.flush(ps, _dict, _store); int count = executeUpdate(ps, row.getSQL(_dict), row); if (count != 1) { logSQLWarnings(ps); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); else if (row.getAction() == Row.ACTION_INSERT) throw new SQLException(_loc.get("update-failed-no-failed-obj", String.valueOf(count), row.getSQL(_dict)).getMessage()); } }
private void flushSingleRow(RowImpl row, PreparedStatement ps) throws SQLException { if (ps != null) row.flush(ps, _dict, _store); int count = executeUpdate(ps, row.getSQL(_dict), row); if (count != 1) { logSQLWarnings(ps); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); else if (row.getAction() == Row.ACTION_INSERT) throw new SQLException(_loc.get("update-failed-no-failed-obj", String.valueOf(count), row.getSQL(_dict)).getMessage()); } }
cnt = count[i]; RowImpl row = (RowImpl) batchedRows.get(batchedRowsBaseIndex + i); failed = row.getFailedObject(); switch (cnt) { case Statement.EXECUTE_FAILED: // -3
throw SQLExceptions.getStore(se, (_batchedRows.get(index)).getFailedObject(), _dict);
throw SQLExceptions.getStore(se, (_batchedRows.get(index)).getFailedObject(), _dict);
if (count != 1) { logSQLWarnings(stmnt); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); throw SQLExceptions.getStore(se, row.getFailedObject(), _dict); } finally { if (stmnt != null) {
if (count != 1) { logSQLWarnings(stmnt); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); throw SQLExceptions.getStore(se, row.getFailedObject(), _dict); } finally { if (stmnt != null) {
cnt = count[i]; RowImpl row = (RowImpl) batchedRows.get(batchedRowsBaseIndex + i); failed = row.getFailedObject(); switch (cnt) { case Statement.EXECUTE_FAILED: // -3
cnt = count[i]; RowImpl row = (RowImpl) batchedRows.get(batchedRowsBaseIndex + i); failed = row.getFailedObject(); switch (cnt) { case Statement.EXECUTE_FAILED: // -3
cnt = count[i]; RowImpl row = (RowImpl) batchedRows.get(batchedRowsBaseIndex + i); failed = row.getFailedObject(); switch (cnt) { case Statement.EXECUTE_FAILED: // -3
throw SQLExceptions.getStore(se, (_batchedRows.get(index)).getFailedObject(), _dict);
throw SQLExceptions.getStore(se, (_batchedRows.get(index)).getFailedObject(), _dict);
if (count != 1) { logSQLWarnings(stmnt); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); throw SQLExceptions.getStore(se, row.getFailedObject(), _dict); } finally { if (stmnt != null) {
if (count != 1) { logSQLWarnings(stmnt); Object failed = row.getFailedObject(); if (failed != null) _exceptions.add(new OptimisticException(failed)); throw SQLExceptions.getStore(se, row.getFailedObject(), _dict); } finally { if (stmnt != null) {