public class ProductDB
{
	private Product[] products;
	public ProductDB(Document doc) throws Exception
	{
		// Wczytanie informacji o produktach
	}

	public Product getBySKU(String sku)
	{
		Product[] list = getProducts();
		for (int i = 0; i < list.length; i++)
			if (sku.equals(list[i].getSKU())) return (list[i]);
		return (null);
	}

	public Product[] getProducts() 
	{
		return products;
	}
}
