diff options
author | Jed <Jed@192.168.1.100> | 2014-09-08 19:14:20 +0800 |
---|---|---|
committer | Jed <Jed@192.168.1.100> | 2014-09-08 19:14:20 +0800 |
commit | 6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2 (patch) | |
tree | fa42ea40d2330d5ff0ba2acc2d1657655accf4b8 /src/org/traccar/model/DataManager.java | |
parent | 9bad8efca5f64b60d5525b3858f42ac6cd6be272 (diff) | |
download | traccar-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.tar.gz traccar-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.tar.bz2 traccar-server-6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2.zip |
Updated TrackerEventHandler to only trigger UpdateLatestPosition on the last record processed and pass the position object to the function
Added database property to Device class
Updated DatabaseDataManager to allow the use of placeholder _database_ in queries
Diffstat (limited to 'src/org/traccar/model/DataManager.java')
-rw-r--r-- | src/org/traccar/model/DataManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/model/DataManager.java b/src/org/traccar/model/DataManager.java index 4a5aaa348..7228409f1 100644 --- a/src/org/traccar/model/DataManager.java +++ b/src/org/traccar/model/DataManager.java @@ -27,11 +27,12 @@ public interface DataManager { */ public List<Device> getDevices() throws Exception; public Device getDeviceByImei(String imei) throws Exception; + public Device getDeviceById(Long id) throws Exception; /** * Manage positions */ public Long addPosition(Position position) throws Exception; - public void updateLatestPosition(Long deviceId, Long positionId) throws Exception; + public void updateLatestPosition(Position position, Long positionId) throws Exception; } |