diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-05 18:14:36 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-05 18:14:36 +0500 |
commit | ba892a34c4a78ddc4ec7b24cc72b62278f608322 (patch) | |
tree | 2ac8216d6202321ecbde373951c3e440ac18e921 /src/org/traccar/database/DataManager.java | |
parent | f24bf23ed026abe684cc893924d8a17de065b220 (diff) | |
download | trackermap-server-ba892a34c4a78ddc4ec7b24cc72b62278f608322.tar.gz trackermap-server-ba892a34c4a78ddc4ec7b24cc72b62278f608322.tar.bz2 trackermap-server-ba892a34c4a78ddc4ec7b24cc72b62278f608322.zip |
Remove Attribute Aliases support
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 2e3e68bc9..4535a9c38 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -42,7 +42,6 @@ import liquibase.resource.ResourceAccessor; import org.traccar.Config; import org.traccar.helper.Log; import org.traccar.model.Attribute; -import org.traccar.model.AttributeAlias; import org.traccar.model.Device; import org.traccar.model.Driver; import org.traccar.model.Event; @@ -366,29 +365,6 @@ public class DataManager { .executeQuery(Event.class); } - public Collection<AttributeAlias> getAttributeAliases() throws SQLException { - return QueryBuilder.create(dataSource, getQuery("database.selectAttributeAliases")) - .executeQuery(AttributeAlias.class); - } - - public void addAttributeAlias(AttributeAlias attributeAlias) throws SQLException { - attributeAlias.setId(QueryBuilder.create(dataSource, getQuery("database.insertAttributeAlias"), true) - .setObject(attributeAlias) - .executeUpdate()); - } - - public void updateAttributeAlias(AttributeAlias attributeAlias) throws SQLException { - QueryBuilder.create(dataSource, getQuery("database.updateAttributeAlias")) - .setObject(attributeAlias) - .executeUpdate(); - } - - public void removeAttributeAlias(long attributeAliasId) throws SQLException { - QueryBuilder.create(dataSource, getQuery("database.deleteAttributeAlias")) - .setLong("id", attributeAliasId) - .executeUpdate(); - } - public Collection<Statistics> getStatistics(Date from, Date to) throws SQLException { return QueryBuilder.create(dataSource, getQuery("database.selectStatistics")) .setDate("from", from) |