aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:46:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:46:59 +1300
commit306098fbeda545babb2c48c80e7fe98e22abb801 (patch)
treea249093233a50a9e08cb3f0e77714ce3e7e1933b /src/org/traccar/database/DataManager.java
parentc7d721cfc55b614ab4bf3d656381b7b590ae99e9 (diff)
downloadtrackermap-server-306098fbeda545babb2c48c80e7fe98e22abb801.tar.gz
trackermap-server-306098fbeda545babb2c48c80e7fe98e22abb801.tar.bz2
trackermap-server-306098fbeda545babb2c48c80e7fe98e22abb801.zip
Update device status in the database
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 24a07a05c..a40b87d24 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -310,6 +310,12 @@ public class DataManager implements IdentityManager {
.executeUpdate();
}
+ public void updateDeviceStatus(Device device) throws SQLException {
+ QueryBuilder.create(dataSource, getQuery("database.updateDeviceStatus"))
+ .setObject(device)
+ .executeUpdate();
+ }
+
public void removeDevice(Device device) throws SQLException {
QueryBuilder.create(dataSource, getQuery("database.deleteDevice"))
.setObject(device)