}
protected void ndbjtieInsert(int c0) {
// get an insert operation for the table
NdbOperation op = tx.getNdbOperation(table_t0);
if (op == null)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.insertTuple() != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
// include exception handling as part of transcoding pattern
final int i = c0;
final CharBuffer str = CharBuffer.wrap(Integer.toString(i));
try {
// set values; key attribute needs to be set first
//str.rewind();
ndbjtieTranscode(bb, str);
if (op.equal(metaData.getAttr(0), bb) != 0) // key
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(0));
str.rewind();
ndbjtieTranscode(bb, str);
if (op.setValue(metaData.getAttr(1), bb) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(1));
if (op.setValue(metaData.getAttr(2), i) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(3), i) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
// XXX
if (op.setValue(metaData.getAttr(4), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
str.rewind();
ndbjtieTranscode(bb, str);
if (op.setValue(metaData.getAttr(5), bb) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(5));
str.rewind();
ndbjtieTranscode(bb, str);
if (op.setValue(metaData.getAttr(6), bb) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(6));
str.rewind();
ndbjtieTranscode(bb, str);
if (op.setValue(metaData.getAttr(7), bb) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(7));
str.rewind();
ndbjtieTranscode(bb, str);
if (op.setValue(metaData.getAttr(8), bb) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
bb.position(bb.position() + metaData.getColumnWidth(8));
// XXX
if (op.setValue(metaData.getAttr(9), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(10), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(11), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(12), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(13), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
if (op.setValue(metaData.getAttr(14), null) != 0)
throw new RuntimeException(TwsUtils.toStr(tx.getNdbError()));
} catch (CharacterCodingException e) {
throw new RuntimeException(e);
}
}