// TODO - AHK - Kill this/move it somewhere else
public static IDBObject buildObject(IDBType type, ResultSet resultSet) throws SQLException {
IDBObject obj = RuntimeBridge.createDBObject(type, false);
IDBTable table = type.getTable();
for (IDBColumn column : table.getColumns()) {
Object resultObject = column.getColumnType().readFromResultSet(resultSet, table.getName() + "." + column.getName());
obj.setColumnValue(column.getName(), resultObject);
}
return obj;
}