public interface IPersistenceProvider
An interface designed for item persistence within ICE.
Modifier and Type | Method and Description |
---|---|
boolean |
deleteItem(Item item)
Deletes an item from the persistence provider.
|
Item |
loadItem(int itemID)
Loads the specified item keyed on the ID.
|
java.util.ArrayList<Item> |
loadItems()
Returns all the Items in the persistence piece.
|
boolean |
persistItem(Item item)
Persists an item.
|
boolean |
updateItem(Item item)
Updates an item in the persistence unit.
|
boolean persistItem(Item item)
Persists an item. Returns true if the operation was successful. False otherwise.
item
- The item to be persisted.
Returns true if the operation was successful. False otherwise.
Item loadItem(int itemID)
Loads the specified item keyed on the ID. Returns the item, or null if an error was encountered.
itemID
- The item's ID.
The returned item.
boolean deleteItem(Item item)
Deletes an item from the persistence provider. Returns true if the operation was successful. False otherwise.
item
- The item to be deleted.
True if successful. False otherwise.
boolean updateItem(Item item)
Updates an item in the persistence unit.
item
- The item to be updated.
Returns true if successful. False otherwise.
java.util.ArrayList<Item> loadItems()
Returns all the Items in the persistence piece.
The list of items.