/** * Populates an object from a resultset row starting from a specified offset. This is done so that * you can select other rows than just those needed for this object. You may for example want to * create two objects from the same row. * * @throws TorqueException Any exceptions caught during processing will be rethrown wrapped into a * TorqueException. */ public static void populateObject(Record row, int offset, TOption obj) throws TorqueException { try { obj.setObjectID(row.getValue(offset + 0).asIntegerObj()); obj.setList(row.getValue(offset + 1).asIntegerObj()); obj.setLabel(row.getValue(offset + 2).asString()); obj.setTooltip(row.getValue(offset + 3).asString()); obj.setParentOption(row.getValue(offset + 4).asIntegerObj()); obj.setSortOrder(row.getValue(offset + 5).asIntegerObj()); obj.setIsDefault(row.getValue(offset + 6).asString()); obj.setDeleted(row.getValue(offset + 7).asString()); obj.setSymbol(row.getValue(offset + 8).asString()); obj.setIconKey(row.getValue(offset + 9).asIntegerObj()); obj.setIconChanged(row.getValue(offset + 10).asString()); obj.setCSSStyle(row.getValue(offset + 11).asString()); obj.setUuid(row.getValue(offset + 12).asString()); } catch (DataSetException e) { throw new TorqueException(e); } }