aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DriversManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-20 17:12:29 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-20 17:12:29 +0500
commite00fbfa466b17e94f59e6ff8fefb83f08999b3ec (patch)
tree61302b7e3535f75925a2896a358ba0bb2492ca71 /src/org/traccar/database/DriversManager.java
parent0d5a1b36c704f3a79eceb2a1f19894f0438eb1b0 (diff)
downloadtrackermap-server-e00fbfa466b17e94f59e6ff8fefb83f08999b3ec.tar.gz
trackermap-server-e00fbfa466b17e94f59e6ff8fefb83f08999b3ec.tar.bz2
trackermap-server-e00fbfa466b17e94f59e6ff8fefb83f08999b3ec.zip
Rename Identifiable and Extensible to BaseModel and ExtendedModel
Diffstat (limited to 'src/org/traccar/database/DriversManager.java')
-rw-r--r--src/org/traccar/database/DriversManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/database/DriversManager.java b/src/org/traccar/database/DriversManager.java
index 9b01f1a70..dba06a37f 100644
--- a/src/org/traccar/database/DriversManager.java
+++ b/src/org/traccar/database/DriversManager.java
@@ -25,7 +25,7 @@ import org.traccar.model.DeviceDriver;
import org.traccar.model.Driver;
import org.traccar.model.DriverPermission;
import org.traccar.model.GroupDriver;
-import org.traccar.model.Identifiable;
+import org.traccar.model.BaseModel;
public class DriversManager extends ExtendedObjectManager {
@@ -42,7 +42,7 @@ public class DriversManager extends ExtendedObjectManager {
if (getDataManager() != null) {
try {
clearItems();
- for (Identifiable item : getDataManager().getObjects(getBaseClass())) {
+ for (BaseModel item : getDataManager().getObjects(getBaseClass())) {
putItem(item.getId(), item);
driversByUniqueId.put(((Driver) item).getUniqueId(), (Driver) item);
}
@@ -54,13 +54,13 @@ public class DriversManager extends ExtendedObjectManager {
}
@Override
- public void addItem(Identifiable item) throws SQLException {
+ public void addItem(BaseModel item) throws SQLException {
super.addItem(item);
driversByUniqueId.put(((Driver) item).getUniqueId(), (Driver) item);
}
@Override
- public void updateItem(Identifiable item) throws SQLException {
+ public void updateItem(BaseModel item) throws SQLException {
Driver driver = (Driver) item;
getDataManager().updateObject(driver);
Driver cachedDriver = (Driver) getById(driver.getId());