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)
AttackDao
public void delete(Attack attack)
AttackDao
public void update(Attack attack)
AttackDao
public java.util.List<Attack> getAll()
AttackDao
public java.util.List<Attack> getByWeatherStatus(int weatherStatus)
AttackDao
getByWeatherStatus
in interface AttackDao
weatherStatus
- a weather statuspublic Attack findById(int id)
AttackDao
public int countAttacks()
countAttacks
in interface AttackDao