src/org/ohmage/query/impl/UserClassQueries.java
public boolean userBelongsToClass(String classId, String username) throws DataAccessException {
		try {
			return (Boolean) getJdbcTemplate().queryForObject(SQL_EXISTS_USER_CLASS, new Object[] { username, classId }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_USER_CLASS + "' with parameters: " + username + ", " + classId, e);
		}
	}
/**
	 * Queries the database to see if a user belongs to a class.
	 * 
	 * @param classId The unique identifier for the class.
	 * 
	 * @param username The username for the user.
	 * 
	 * @return Whether or not the user belongs to the class.
	 */
Queries the database to see if a user belongs to a class.

@param classId The unique identifier for the class.

@param username The username for the user.

@return Whether or not the user belongs to the class.
Queries the database to see if a user belongs to a class . @param classId The unique identifier for the class . @param username The username for the user . @return Whether or not the user belongs to the class .
public boolean userBelongsToClass(String classId, String username) throws DataAccessException {
		try {
			return (Boolean) getJdbcTemplate().queryForObject(SQL_EXISTS_USER_CLASS, new Object[] { username, classId }, Boolean.class);
		}
		catch(org.springframework.dao.DataAccessException e) {
			throw new DataAccessException("Error executing SQL '" + SQL_EXISTS_USER_CLASS + "' with parameters: " + username + ", " + classId, e);
		}
	}
public boolean userBelongsToClass ( String classId , String username ) throws DataAccessException { try { return ( Boolean ) getJdbcTemplate ( ) . queryForObject ( SQL_EXISTS_USER_CLASS , new Object [ ] { username , classId } , Boolean . class ) ; } catch ( org . springframework . dao . DataAccessException e ) { throw new DataAccessException ( "Error executing SQL '" + SQL_EXISTS_USER_CLASS + "' with parameters: " + username + ", " + classId , e ) ; } }
Queries the database to see if a user belongs to a class.
Queries the database to see if a user belongs to a class .