throw new RuntimeException(toStr(tx.getNdbError()));
if (op.insertTuple() != 0)
throw new RuntimeException(toStr(tx.getNdbError()));
// set values; key attribute needs to be set first
if (op.equal(model.attr_id, i) != 0)
throw new RuntimeException(toStr(tx.getNdbError()));
if (setAttrs) {
if (op.setValue(model.attr_cint, -i) != 0)
throw new RuntimeException(toStr(tx.getNdbError()));
if (op.setValue(model.attr_clong, (long)-i) != 0)