aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/AttributesManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-24 16:25:34 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-24 16:25:34 +0500
commitd6c7cdf1e103c977ed94b737dc838d7ac22b9fa7 (patch)
tree12c3b57771236977cedde9651f7c5a44e67ec23f /src/org/traccar/database/AttributesManager.java
parent4b2372336d0496c85befe099914434e5b68f05b3 (diff)
downloadtrackermap-server-d6c7cdf1e103c977ed94b737dc838d7ac22b9fa7.tar.gz
trackermap-server-d6c7cdf1e103c977ed94b737dc838d7ac22b9fa7.tar.bz2
trackermap-server-d6c7cdf1e103c977ed94b737dc838d7ac22b9fa7.zip
Optimize caching and class structure
Diffstat (limited to 'src/org/traccar/database/AttributesManager.java')
-rw-r--r--src/org/traccar/database/AttributesManager.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/org/traccar/database/AttributesManager.java b/src/org/traccar/database/AttributesManager.java
index 266fc5526..4dc70eeb7 100644
--- a/src/org/traccar/database/AttributesManager.java
+++ b/src/org/traccar/database/AttributesManager.java
@@ -16,8 +16,6 @@
*/
package org.traccar.database;
-import java.sql.SQLException;
-
import org.traccar.model.Attribute;
import org.traccar.model.BaseModel;
@@ -25,14 +23,11 @@ public class AttributesManager extends ExtendedObjectManager {
public AttributesManager(DataManager dataManager) {
super(dataManager, Attribute.class);
- refreshItems();
- refreshExtendedPermissions();
}
@Override
- public void updateItem(BaseModel item) throws SQLException {
+ public void updateCachedItem(BaseModel item) {
Attribute attribute = (Attribute) item;
- getDataManager().updateObject(attribute);
Attribute cachedAttribute = (Attribute) getById(item.getId());
cachedAttribute.setDescription(attribute.getDescription());
cachedAttribute.setAttribute(attribute.getAttribute());