aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge/opentracking/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2010-04-17 15:28:14 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2010-04-17 15:28:14 +0000
commit79cb531f8511d0a4f34327b0df4f858bd7cf68f3 (patch)
treeb27164c40e0f0c2e2cc3c28c9f83051f34963350 /src/net/sourceforge/opentracking/DataManager.java
parentf519b288d61b29ed35be566a297cd3282bcb2820 (diff)
downloadtrackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.tar.gz
trackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.tar.bz2
trackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.zip
Diffstat (limited to 'src/net/sourceforge/opentracking/DataManager.java')
-rw-r--r--src/net/sourceforge/opentracking/DataManager.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/sourceforge/opentracking/DataManager.java b/src/net/sourceforge/opentracking/DataManager.java
index ed4523d9f..cd67c97da 100644
--- a/src/net/sourceforge/opentracking/DataManager.java
+++ b/src/net/sourceforge/opentracking/DataManager.java
@@ -16,7 +16,6 @@
package net.sourceforge.opentracking;
import java.util.List;
-import java.sql.SQLException;
/**
* Data manager
@@ -24,13 +23,18 @@ import java.sql.SQLException;
public interface DataManager {
/**
- * Get device list
+ * Read device list
*/
- public List readDevice() throws SQLException;
+ public List getDevices() throws Exception;
+
+ /**
+ * Get device by imei
+ */
+ public Device getDeviceByImei(String imei) throws Exception;
/**
* Write position
*/
- public void writePosition(Position position) throws SQLException;
+ public void setPosition(Position position) throws Exception;
}