aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-13 18:55:34 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-13 18:55:34 -0700
commita4f47f67b654cbfd59a134ed3a621f75b35ad7af (patch)
treee777d7d4610083ca46b8c4cd0646f5aa2891dff6 /src/main/java/org/traccar/database
parent8569e396f7bdafd49a974b35a2e83a57164c6c62 (diff)
downloadtrackermap-server-a4f47f67b654cbfd59a134ed3a621f75b35ad7af.tar.gz
trackermap-server-a4f47f67b654cbfd59a134ed3a621f75b35ad7af.tar.bz2
trackermap-server-a4f47f67b654cbfd59a134ed3a621f75b35ad7af.zip
Refactor getEvents method
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/DataManager.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java
index 93c6861e6..4fd0cd8c1 100644
--- a/src/main/java/org/traccar/database/DataManager.java
+++ b/src/main/java/org/traccar/database/DataManager.java
@@ -31,7 +31,6 @@ import org.traccar.config.Config;
import org.traccar.config.Keys;
import org.traccar.model.BaseModel;
import org.traccar.model.Device;
-import org.traccar.model.Event;
import org.traccar.model.Permission;
import org.traccar.model.Position;
import org.traccar.model.Server;
@@ -205,15 +204,6 @@ public class DataManager {
return storage.getObject(Server.class, new Request(new Columns.All()));
}
- public Collection<Event> getEvents(long deviceId, Date from, Date to) throws StorageException {
- return storage.getObjects(Event.class, new Request(
- new Columns.All(),
- new Condition.And(
- new Condition.Equals("deviceId", "deviceId", deviceId),
- new Condition.Between("eventTime", "from", from, "to", to)),
- new Order("eventTime")));
- }
-
public Collection<Statistics> getStatistics(Date from, Date to) throws StorageException {
return storage.getObjects(Statistics.class, new Request(
new Columns.All(),