public class SensorsDAO extends core.tut.pori.dao.SQLDAO
Constructor and Description |
---|
SensorsDAO() |
Modifier and Type | Method and Description |
---|---|
void |
addMeasurements(java.util.Collection<Measurement> measurements,
java.util.Collection<java.lang.String> taskIds)
Add measurements, the generated measurement identifiers are set to the passed objects
|
void |
deleteMeasurements(java.lang.Long backendId)
delete all measurements taken by the back end
|
MeasurementList |
getMeasurements(long[] backendIdFilter,
java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter,
core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits,
java.util.List<java.lang.String> measurementIdFilter,
java.util.List<java.lang.String> taskIds) |
public SensorsDAO()
public MeasurementList getMeasurements(long[] backendIdFilter, java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter, core.tut.pori.http.parameters.DataGroups dataGroups, core.tut.pori.http.parameters.Limits limits, java.util.List<java.lang.String> measurementIdFilter, java.util.List<java.lang.String> taskIds)
backendIdFilter
- optional filtercreatedFilter
- optional filter, this is targeted to the data points (if requested)dataGroups
- limits
- measurementIdFilter
- optional filtertaskIds
- public void addMeasurements(java.util.Collection<Measurement> measurements, java.util.Collection<java.lang.String> taskIds)
measurements
- the measurements to addtaskIds
- the tasks which are to be associated with the measurementspublic void deleteMeasurements(java.lang.Long backendId)
backendId
- Copyright © 2015-2018 Tampere University of Technology, Pori Department.