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)
ItemDao
public void delete(Item item)
ItemDao
public void update(Item item)
ItemDao
public java.util.List<Item> getAll()
ItemDao
public java.util.List<Item> getByWeatherStatus(int weatherStatus)
ItemDao
getByWeatherStatus
in interface ItemDao
weatherStatus
- a weather statuspublic Item findById(int id)
ItemDao
public int countItems()
countItems
in interface ItemDao