}
@Override
public Runner importTData(String[] record) {
// id,Ecard,First Name,Last Name,Club,Course,Rented,Class,Start Time,Finish Time,Status,NC,Archive
Runner runner = this.factory.createRunner();
runner.setStartId(Integer.valueOf(record[0]));
runner.setEcard(record[1]);
runner.setFirstname(record[2]);
runner.setLastname(record[3]);
Club club = registry.findClub(record[4]);
if( club == null ) {
runner.setClub(registry.noClub());
System.err.println("Unknown club " + record[4] + " for runner " + runner.idString()); //$NON-NLS-1$ //$NON-NLS-2$
} else {
runner.setClub(club);
}
Course course = registry.findCourse(record[5]);
if( course == null ) {
runner.setCourse(registry.anyCourse());
System.err.println("Unknown course " + record[5] + " for runner " + runner.idString()); //$NON-NLS-1$ //$NON-NLS-2$
} else {
runner.setCourse(course);
}
Category cat = registry.findCategory(record[7]);
if( cat == null ) {
runner.setCategory(registry.noCategory());
System.err.println("Unknown category " + record[7] + " for runner " + runner.idString()); //$NON-NLS-1$ //$NON-NLS-2$
} else {
runner.setCategory(cat);
}
runner.setRegisteredStarttime( TimeManager.absoluteTime(TimeManager.safeParse(record[8]), zeroTime) );
runner.setRentedEcard(Boolean.parseBoolean(record[6]));
runner.setNC(Boolean.parseBoolean(record[11]));
if( record.length==13 && ! record[12].equals("") ) { //$NON-NLS-1$
runner.setArchiveId(new Integer(record[12]));
} else {
runner.setArchiveId(null);
}
return runner;
}