public List<Component> getAllComponentsOfType(String componentType, int processorType)
	{
		// If this is the first build state, we should be querying for processors,
		// which require a special query
		if(componentType.equals(Build.buildStates[0]))
		{
			return getAllProcessorsOfType(processorType);
		}
		
		// Not a processor, just a regular component
		List<Component> outputData = new ArrayList<Component>();
		try
		{
			// Query DB, gather results into output list
			ResultSet res = DAO.getAllComponentOfType(componentType, processorType);
			while (res.next()) {
				outputData.add(new Component(res.getString("Device"), res.getString("Component"), res.getString("Brand"), res.getDouble("Price"), res.getInt("Id")));
			}
			//clean up database resources
			res.close();
			DAO.closeStatement();
		}
		catch(SQLException ex)
		{
			DataAccessLayer.handleSqlExceptions(ex);
		}
		return outputData;
	}