Package org.shredzone.geordi.service
Interface DatabaseService
- All Known Implementing Classes:
DatabaseServiceImpl
public interface DatabaseService
A service that handles all database related things.
-
Method Summary
Modifier and Type Method Description List<Device>
fetchDevices()
Returns a list of allDevice
defined in the database.List<Sensor>
fetchSensors(Device device)
Device
getDevice(int id)
Returns theDevice
with the given ID.void
storeSamples(Collection<Sample> samples)
Bulk stores allSample
into the database.
-
Method Details
-
fetchDevices
Returns a list of allDevice
defined in the database.- Returns:
- List of
Device
-
getDevice
Returns theDevice
with the given ID.- Parameters:
id
- Device ID- Returns:
Device
-
fetchSensors
-
storeSamples
Bulk stores allSample
into the database.- Parameters:
samples
- Collection ofSample
to store into the database.
-