src/org/ohmage/query/impl/CampaignQueries.java
@Override
						public Collection<Campaign> extractData(
								ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							
							try {
								Collection<Campaign> result = 
										new LinkedList<Campaign>();
								
								while(rs.next()) {
									result.add(
											new Campaign(
													null,
													null,
													rs.getString("description"),
													Campaign.RunningState.valueOf(rs.getString("running_state").toUpperCase()),
													Campaign.PrivacyState.valueOf(rs.getString("privacy_state").toUpperCase()),
													new DateTime(rs.getTimestamp("creation_timestamp").getTime()).toDate(),
													rs.getString("xml"),
													rs.getBoolean("editable")));
								}
							
								return result;
							}
							catch(DomainException e) {
								throw new SQLException(e);
							}
						}
/**
						 * Counts the total number of results and converts each
						 * of the actual results into a Campaign object.
						 */
Counts the total number of results and converts each
of the actual results into a Campaign object.
Counts the total number of results and converts each of the actual results into a Campaign object .
@Override
						public Collection<Campaign> extractData(
								ResultSet rs)
								throws SQLException,
								org.springframework.dao.DataAccessException {
							try {
								Collection<Campaign> result = 
										new LinkedList<Campaign>();
								while(rs.next()) {
									result.add(
											new Campaign(
													null,
													null,
													rs.getString("description"),
													Campaign.RunningState.valueOf(rs.getString("running_state").toUpperCase()),
													Campaign.PrivacyState.valueOf(rs.getString("privacy_state").toUpperCase()),
													new DateTime(rs.getTimestamp("creation_timestamp").getTime()).toDate(),
													rs.getString("xml"),
													rs.getBoolean("editable")));
								}
								return result;
							}
							catch(DomainException e) {
								throw new SQLException(e);
							}
						}
@ Override public Collection < Campaign > extractData ( ResultSet rs ) throws SQLException , org . springframework . dao . DataAccessException { try { Collection < Campaign > result = new LinkedList < Campaign > ( ) ; while ( rs . next ( ) ) { result . add ( new Campaign ( null , null , rs . getString ( "description" ) , Campaign . RunningState . valueOf ( rs . getString ( "running_state" ) . toUpperCase ( ) ) , Campaign . PrivacyState . valueOf ( rs . getString ( "privacy_state" ) . toUpperCase ( ) ) , new DateTime ( rs . getTimestamp ( "creation_timestamp" ) . getTime ( ) ) . toDate ( ) , rs . getString ( "xml" ) , rs . getBoolean ( "editable" ) ) ) ; } return result ; } catch ( DomainException e ) { throw new SQLException ( e ) ; } }
Counts the total number of results and converts each
 of the actual results into a Campaign object.
Counts the total number of results and converts each of the actual results into a Campaign object .