src/org/ohmage/query/impl/ClassQueries.java
@Override
						public QueryResultsList<Clazz> extractData(
								final ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							
							QueryResultListBuilder<Clazz> resultBuilder =
									new QueryResultListBuilder<Clazz>();
							
							try {
								while(rs.next()) {
									Clazz.Role role = null;
									String roleString = rs.getString("role");
									if(roleString != null) {
										try {
											role = 
												Clazz.Role.getValue(roleString);
										}
										catch(IllegalArgumentException e) {
											throw new SQLException(
													"The class role is unknown: " +
														roleString,
													e);
										}
									}
										
									resultBuilder.addResult(
											new Clazz(
												rs.getString("urn"),
												rs.getString("name"),
												rs.getString("description"),
												role));
								}
								
								return resultBuilder.getQueryResult();
							}
							catch(DomainException e) {
								throw new SQLException(e);
							}
						}
/**
						 * Creates class objects for each of the classes that
						 * match the results.
						 */
Creates class objects for each of the classes that
match the results.
Creates class objects for each of the classes that match the results .
@Override
						public QueryResultsList<Clazz> extractData(
								final ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							QueryResultListBuilder<Clazz> resultBuilder =
									new QueryResultListBuilder<Clazz>();
							try {
								while(rs.next()) {
									Clazz.Role role = null;
									String roleString = rs.getString("role");
									if(roleString != null) {
										try {
											role = 
												Clazz.Role.getValue(roleString);
										}
										catch(IllegalArgumentException e) {
											throw new SQLException(
													"The class role is unknown: " +
														roleString,
													e);
										}
									}
									resultBuilder.addResult(
											new Clazz(
												rs.getString("urn"),
												rs.getString("name"),
												rs.getString("description"),
												role));
								}
								return resultBuilder.getQueryResult();
							}
							catch(DomainException e) {
								throw new SQLException(e);
							}
						}
@ Override public QueryResultsList < Clazz > extractData ( final ResultSet rs ) throws SQLException , org . springframework . dao . DataAccessException { QueryResultListBuilder < Clazz > resultBuilder = new QueryResultListBuilder < Clazz > ( ) ; try { while ( rs . next ( ) ) { Clazz . Role role = null ; String roleString = rs . getString ( "role" ) ; if ( roleString != null ) { try { role = Clazz . Role . getValue ( roleString ) ; } catch ( IllegalArgumentException e ) { throw new SQLException ( "The class role is unknown: " + roleString , e ) ; } } resultBuilder . addResult ( new Clazz ( rs . getString ( "urn" ) , rs . getString ( "name" ) , rs . getString ( "description" ) , role ) ) ; } return resultBuilder . getQueryResult ( ) ; } catch ( DomainException e ) { throw new SQLException ( e ) ; } }
Creates class objects for each of the classes that
 match the results.
Creates class objects for each of the classes that match the results .