| Constructor and Description |
|---|
ItemDao_Impl(android.arch.persistence.room.RoomDatabase __db) |
| 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
|
public ItemDao_Impl(android.arch.persistence.room.RoomDatabase __db)
public void insertAll(Item... items)
ItemDaopublic void delete(Item item)
ItemDaopublic void update(Item item)
ItemDaopublic java.util.List<Item> getAll()
ItemDaopublic java.util.List<Item> getByWeatherStatus(int weatherStatus)
ItemDaogetByWeatherStatus in interface ItemDaoweatherStatus - a weather statuspublic Item findById(int id)
ItemDaopublic int countItems()
countItems in interface ItemDao