public interface ItemDao
| Modifier and Type | Method and Description |
|---|---|
int |
countItems() |
void |
delete(Item item)
Delete an item in the database
|
Item |
findById(int id)
Retrieve an item from the database by id
|
java.util.List<Item> |
getAll()
Retrieve a list of items from the database
|
java.util.List<Item> |
getByWeatherStatus(int weatherStatus)
Retrieve a list of items from the database by weather status
|
void |
insertAll(Item... items)
Insert one or more items in the database
|
void |
update(Item item)
Update an item in the database
|
java.util.List<Item> getAll()
java.util.List<Item> getByWeatherStatus(int weatherStatus)
weatherStatus - a weather statusItem findById(int id)
int countItems()
void insertAll(Item... items)
items - void update(Item item)
item - void delete(Item item)
item -