src/org/ohmage/query/impl/UserImageQueries.java
public Boolean responseExistsForUserWithImage(String username, UUID imageId) throws DataAccessException {
		try {
			return getJdbcTemplate().queryForObject(SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE, new Object[] { username, imageId.toString() }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE + "' with parameters: " + 
					username + ", " + imageId, e);
		}
	}
/**
	 * Returns whether or not a photo prompt response exists for some user 
	 * whose response value is the photo's ID.
	 *  
	 * @param username The username of the user.
	 * 
	 * @param imageId The image's unique identifier.
	 * 
	 * @return Whether or not a photo prompt response exists for some user
	 * 		   whose response value is the photo's ID.
	 * 
	 * @throws DataAccessException Thrown if there is an error.
	 */
Returns whether or not a photo prompt response exists for some user
whose response value is the photo's ID.

@param username The username of the user.

@param imageId The image's unique identifier.

@return Whether or not a photo prompt response exists for some user
whose response value is the photo's ID.

@throws DataAccessException Thrown if there is an error.
Returns whether or not a photo prompt response exists for some user whose response value is the photo ' s ID . @param username The username of the user . @param imageId The image ' s unique identifier . @return Whether or not a photo prompt response exists for some user whose response value is the photo ' s ID . @throws DataAccessException Thrown if there is an error .
public Boolean responseExistsForUserWithImage(String username, UUID imageId) throws DataAccessException {
		try {
			return getJdbcTemplate().queryForObject(SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE, new Object[] { username, imageId.toString() }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE + "' with parameters: " + 
					username + ", " + imageId, e);
		}
	}
public Boolean responseExistsForUserWithImage ( String username , UUID imageId ) throws DataAccessException { try { return getJdbcTemplate ( ) . queryForObject ( SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE , new Object [ ] { username , imageId . toString ( ) } , Boolean . class ) ; } catch ( org . springframework . dao . DataAccessException e ) { throw new DataAccessException ( "Error executing SQL '" + SQL_EXISTS_IMAGE_FOR_USER_IN_RESPONSE + "' with parameters: " + username + ", " + imageId , e ) ; } }
Returns whether or not a photo prompt response exists for some user
 whose response value is the photo's ID.
Returns whether or not a photo prompt response exists for some user whose response value is the photo ' s ID .