// Populate the object(s).
for (int i = 0; i < rows.size(); i++)
{
//Role obj = new Role();
Role obj = new TurbineRole();
Record row = (Record) rows.get(i);
((TurbineRole) obj).setPrimaryKey(
new NumberKey(row.getValue(1).asInt()));
((TurbineRole) obj).setName(row.getValue(2).asString());
byte[] objectData = row.getValue(3).asBytes();