src/org/ohmage/query/impl/UserClassQueries.java
@Override
						public Map<String, Role> extractData(
								final ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							
							Map<String, Clazz.Role> result =
									new HashMap<String, Clazz.Role>();
							
							while(rs.next()) {
								Clazz.Role role;
								try {
									role = Clazz.Role.getValue(
											rs.getString("role"));
								}
								catch(IllegalArgumentException e) {
									throw new SQLException(
											"The role is not a valid role.",
											e);
								}
								
								result.put(rs.getString("username"), role);
							}
							
							return result;
						}
/**
						 * Extracts the data creating the username to class 
						 * role map.
						 */
Extracts the data creating the username to class
role map.
Extracts the data creating the username to class role map .
@Override
						public Map<String, Role> extractData(
								final ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							Map<String, Clazz.Role> result =
									new HashMap<String, Clazz.Role>();
							while(rs.next()) {
								Clazz.Role role;
								try {
									role = Clazz.Role.getValue(
											rs.getString("role"));
								}
								catch(IllegalArgumentException e) {
									throw new SQLException(
											"The role is not a valid role.",
											e);
								}
								result.put(rs.getString("username"), role);
							}
							return result;
						}
@ Override public Map < String , Role > extractData ( final ResultSet rs ) throws SQLException , org . springframework . dao . DataAccessException { Map < String , Clazz . Role > result = new HashMap < String , Clazz . Role > ( ) ; while ( rs . next ( ) ) { Clazz . Role role ; try { role = Clazz . Role . getValue ( rs . getString ( "role" ) ) ; } catch ( IllegalArgumentException e ) { throw new SQLException ( "The role is not a valid role." , e ) ; } result . put ( rs . getString ( "username" ) , role ) ; } return result ; }
Extracts the data creating the username to class
 role map.
Extracts the data creating the username to class role map .