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