public class BasketPersistenceService extends Object
Constructor and Description |
---|
BasketPersistenceService() |
Modifier and Type | Method and Description |
---|---|
Collection<Basket> |
getAllBaskets() |
Basket |
getBasket(String id) |
static File |
getFolder(GlobalContext globalContext) |
static BasketPersistenceService |
getInstance(GlobalContext globalContext) |
void |
storeBasket(Basket basket) |
public static BasketPersistenceService getInstance(GlobalContext globalContext)
public static File getFolder(GlobalContext globalContext)
public Collection<Basket> getAllBaskets()
public void storeBasket(Basket basket) throws IOException
IOException
public Basket getBasket(String id) throws IOException
IOException
Copyright © 2012-2018. All Rights Reserved.