@Override protected BatchParameterBinding[] doUpdateBindings(BatchQueryRow row) { int len = bindings.length; DeleteBatchQuery deleteBatch = (DeleteBatchQuery) query; for (int i = 0, j = 1; i < len; i++) { BatchParameterBinding b = bindings[i]; // skip null attributes... they are translated as "IS NULL" if (deleteBatch.isNull(b.getAttribute())) { b.exclude(); } else { b.include(j++, row.getValue(i)); } } return bindings; }
@Override protected ParameterBinding[] doUpdateBindings(BatchQueryRow row) { int len = bindings.length; for (int i = 0, j = 1; i < len; i++) { ParameterBinding b = bindings[i]; Object value = row.getValue(i); DbAttribute attribute = b.getAttribute(); int type = attribute.getType(); // TODO: (Andrus) This works as long as there is no LOBs in // qualifier if (isUpdateableColumn(value, type)) { b.include(j++, value); } else { b.exclude(); } } return bindings; }