aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/Data.java5
-rw-r--r--src/org/traccar/model/Device.java15
-rw-r--r--src/org/traccar/model/MiscFormatter.java4
-rw-r--r--src/org/traccar/model/Position.java5
-rw-r--r--src/org/traccar/model/User.java5
5 files changed, 1 insertions, 33 deletions
diff --git a/src/org/traccar/model/Data.java b/src/org/traccar/model/Data.java
index c88c31417..d49bb0da6 100644
--- a/src/org/traccar/model/Data.java
+++ b/src/org/traccar/model/Data.java
@@ -15,7 +15,6 @@
*/
package org.traccar.model;
-import java.sql.ResultSet;
import java.text.ParseException;
import java.util.Date;
import java.util.LinkedHashMap;
@@ -80,8 +79,4 @@ public class Data implements Convertable {
//extendedInfo = json.getString("extendedInfo");
}
- @Override
- public void fromRecord(ResultSet record) {
- }
-
}
diff --git a/src/org/traccar/model/Device.java b/src/org/traccar/model/Device.java
index 7af1e8084..2fb26d282 100644
--- a/src/org/traccar/model/Device.java
+++ b/src/org/traccar/model/Device.java
@@ -77,19 +77,4 @@ public class Device implements Convertable, Factory {
dataId = ObjectConverter.getLong(json, "dataId");
}
- @Override
- public void fromRecord(ResultSet record) {
- try {
- id = ObjectConverter.getLong(record, "id");
- name = ObjectConverter.getString(record, "name");
- uniqueId = ObjectConverter.getString(record, "uniqueId");
- status = ObjectConverter.getString(record, "status");
- lastUpdate = ObjectConverter.getDate(record, "lastUpdate");
- positionId = ObjectConverter.getLong(record, "positionId");
- dataId = ObjectConverter.getLong(record, "dataId");
- } catch (SQLException error) {
- Log.warning(error);
- }
- }
-
}
diff --git a/src/org/traccar/model/MiscFormatter.java b/src/org/traccar/model/MiscFormatter.java
index 4a04e5181..08a6f903a 100644
--- a/src/org/traccar/model/MiscFormatter.java
+++ b/src/org/traccar/model/MiscFormatter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2013 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,8 +20,6 @@ import org.traccar.helper.Log;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
import java.util.Map;
/**
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index bfee94c1b..c3fe60fc0 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -15,7 +15,6 @@
*/
package org.traccar.model;
-import java.sql.ResultSet;
import java.text.ParseException;
import java.util.Date;
import java.util.LinkedHashMap;
@@ -133,8 +132,4 @@ public class Position implements Convertable {
//extendedInfo = json.getString("extendedInfo");
}
- @Override
- public void fromRecord(ResultSet record) {
- }
-
}
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java
index 77740e987..02e5c0c4f 100644
--- a/src/org/traccar/model/User.java
+++ b/src/org/traccar/model/User.java
@@ -15,7 +15,6 @@
*/
package org.traccar.model;
-import java.sql.ResultSet;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
@@ -81,8 +80,4 @@ public class User implements Convertable {
zoom = json.getJsonNumber("zoom").intValue();
}
- @Override
- public void fromRecord(ResultSet record) {
- }
-
}