/** * 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, System_Log obj) throws TorqueException { try { obj.setLog_ID(row.getValue(offset + 0).asInt()); obj.setUser_ID(row.getValue(offset + 1).asInt()); obj.setAction(row.getValue(offset + 2).asString()); obj.setLocation(row.getValue(offset + 3).asString()); obj.setPrevious_Value(row.getValue(offset + 4).asInt()); obj.setCurrent_Value(row.getValue(offset + 5).asInt()); obj.setNotes(row.getValue(offset + 6).asString()); obj.setDate(row.getValue(offset + 7).asString()); } catch (DataSetException e) { throw new TorqueException(e); } }