Code example for ResultSet

Methods: next

0
			p = JForumExecutionContext.getConnection().prepareStatement(
				SystemGlobals.getSql("ApiModel.isValid")); 
			p.setString(1, apiKey);
			 
			rs = p.executeQuery();
			status = rs.next();
		} 
		catch (Exception e) {
			throw new DatabaseException(e);
		} 
		finally { 
			DbUtils.close(rs, p);
		} 
		 
		return status;
	} 
}