query.addCriteria(new MatchCriteria(table, getColumnNameRunGroupGroupID(), MatchCriteria.EQUALS, runGroup));
if (runGroup != null) { query.addCriteria(new MatchCriteria(table, getColumnNameRunGroupGroupID(), MatchCriteria.EQUALS, runGroup)); }
	public Collection ejbFindAllByDistanceAndGroup(Group distance, Group runGroup) throws FinderException {		Table table = new Table(this);				SelectQuery query = new SelectQuery(table);		query.addColumn(new WildCardColumn(table));		query.addCriteria(new MatchCriteria(table, getColumnNameRunDistanceGroupID(), MatchCriteria.EQUALS, distance));		query.addCriteria(new MatchCriteria(table, getColumnNameRunGroupGroupID(), MatchCriteria.EQUALS, runGroup));		query.addOrder(table, getColumnNameRunTime(), true);				return idoFindPKsBySQL(query.toString());	}