Package org.javlo.ecom
Class BasketPersistenceService
- java.lang.Object
-
- org.javlo.ecom.BasketPersistenceService
-
public class BasketPersistenceService extends Object
-
-
Constructor Summary
Constructors Constructor Description BasketPersistenceService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Basket>getAllBaskets()BasketgetBasket(String id)BasketgetBasketByPaymentIndent(String paymentIndent)static FilegetFolder(GlobalContext globalContext)static BasketPersistenceServicegetInstance(GlobalContext globalContext)voidstoreBasket(Basket basket)
-
-
-
Method Detail
-
getInstance
public static BasketPersistenceService getInstance(GlobalContext globalContext)
-
getFolder
public static File getFolder(GlobalContext globalContext)
-
getAllBaskets
public Collection<Basket> getAllBaskets()
-
storeBasket
public void storeBasket(Basket basket) throws IOException
- Throws:
IOException
-
getBasket
public Basket getBasket(String id) throws IOException
- Throws:
IOException
-
-