src/org/ohmage/query/impl/UserCampaignQueries.java
public boolean userBelongsToCampaign(String username, String campaignId) throws DataAccessException {
		try {
			return getJdbcTemplate().queryForObject(SQL_EXISTS_USER_CAMPAIGN, new Object[] { campaignId, username }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_USER_CAMPAIGN + "' with parameters: " +
					campaignId + ", " + username, e);
		}
	}
/**
	 * Retrieves whether or not a user belongs to a campaign in any capacity.
	 * 
	 * @param username The username of the user in question.
	 * 
	 * @param campaignId The campaign ID of the campaign in question.
	 * 
	 * @return Whether or not the user exists in a campaign.
	 */
Retrieves whether or not a user belongs to a campaign in any capacity.

@param username The username of the user in question.

@param campaignId The campaign ID of the campaign in question.

@return Whether or not the user exists in a campaign.
Retrieves whether or not a user belongs to a campaign in any capacity . @param username The username of the user in question . @param campaignId The campaign ID of the campaign in question . @return Whether or not the user exists in a campaign .
public boolean userBelongsToCampaign(String username, String campaignId) throws DataAccessException {
		try {
			return getJdbcTemplate().queryForObject(SQL_EXISTS_USER_CAMPAIGN, new Object[] { campaignId, username }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_USER_CAMPAIGN + "' with parameters: " +
					campaignId + ", " + username, e);
		}
	}
public boolean userBelongsToCampaign ( String username , String campaignId ) throws DataAccessException { try { return getJdbcTemplate ( ) . queryForObject ( SQL_EXISTS_USER_CAMPAIGN , new Object [ ] { campaignId , username } , Boolean . class ) ; } catch ( org . springframework . dao . DataAccessException e ) { throw new DataAccessException ( "Error executing SQL '" + SQL_EXISTS_USER_CAMPAIGN + "' with parameters: " + campaignId + ", " + username , e ) ; } }
Retrieves whether or not a user belongs to a campaign in any capacity.
Retrieves whether or not a user belongs to a campaign in any capacity .