| Constructor and Description |
|---|
AttackDao_Impl(android.arch.persistence.room.RoomDatabase __db) |
| Modifier and Type | Method and Description |
|---|---|
int |
countAttacks() |
void |
delete(Attack attack)
Delete an attack in the database
|
Attack |
findById(int id)
Retrieves an attack stored in the database
|
java.util.List<Attack> |
getAll()
Retrieves all attacks stored in the database
|
java.util.List<Attack> |
getByWeatherStatus(int weatherStatus)
Retrieves all attacks stored in the database corresponding to a WeatherStatus
|
void |
insertAll(Attack... attacks)
Insert one or more attacks in the database
|
void |
update(Attack attack)
Update an attack in the database
|
public AttackDao_Impl(android.arch.persistence.room.RoomDatabase __db)
public void insertAll(Attack... attacks)
AttackDaopublic void delete(Attack attack)
AttackDaopublic void update(Attack attack)
AttackDaopublic java.util.List<Attack> getAll()
AttackDaopublic java.util.List<Attack> getByWeatherStatus(int weatherStatus)
AttackDaogetByWeatherStatus in interface AttackDaoweatherStatus - a weather statuspublic Attack findById(int id)
AttackDaopublic int countAttacks()
countAttacks in interface AttackDao