src/org/ohmage/query/impl/UserCampaignQueries.java
@Override
						public Object mapRow(ResultSet rs, int rowNum)
								throws SQLException {
							
							String username = rs.getString("username");
							Collection<Campaign.Role> roles = result.get(username);
							
							if(roles == null) {
								roles = new HashSet<Campaign.Role>();
								result.put(username, roles);
							}
							
							roles.add(
									Campaign.Role.getValue(
											rs.getString("role")));
							
							return null;
						}
/**
						 * Adds the user's role to the map.
						 */
Adds the user's role to the map.
Adds the user ' s role to the map .
@Override
						public Object mapRow(ResultSet rs, int rowNum)
								throws SQLException {
							String username = rs.getString("username");
							Collection<Campaign.Role> roles = result.get(username);
							if(roles == null) {
								roles = new HashSet<Campaign.Role>();
								result.put(username, roles);
							}
							roles.add(
									Campaign.Role.getValue(
											rs.getString("role")));
							return null;
						}
@ Override public Object mapRow ( ResultSet rs , int rowNum ) throws SQLException { String username = rs . getString ( "username" ) ; Collection < Campaign . Role > roles = result . get ( username ) ; if ( roles == null ) { roles = new HashSet < Campaign . Role > ( ) ; result . put ( username , roles ) ; } roles . add ( Campaign . Role . getValue ( rs . getString ( "role" ) ) ) ; return null ; }
Adds the user's role to the map.
Adds the user ' s role to the map .