diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:38:53 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:38:53 +1200 |
commit | f443f208a5bf7ba38cce103909cb234dbe804149 (patch) | |
tree | c95f5c6195e48d2f58a1354382fa55c9b64c11cc /src/org/traccar/protocol/ApelProtocolDecoder.java | |
parent | b2648b16bf063343e85c38eb8edf9e4e9255a33e (diff) | |
download | trackermap-server-f443f208a5bf7ba38cce103909cb234dbe804149.tar.gz trackermap-server-f443f208a5bf7ba38cce103909cb234dbe804149.tar.bz2 trackermap-server-f443f208a5bf7ba38cce103909cb234dbe804149.zip |
Remove named statement class
Diffstat (limited to 'src/org/traccar/protocol/ApelProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/ApelProtocolDecoder.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/org/traccar/protocol/ApelProtocolDecoder.java b/src/org/traccar/protocol/ApelProtocolDecoder.java index 5729231a5..4b05f3004 100644 --- a/src/org/traccar/protocol/ApelProtocolDecoder.java +++ b/src/org/traccar/protocol/ApelProtocolDecoder.java @@ -73,24 +73,6 @@ public class ApelProtocolDecoder extends BaseProtocolDecoder { private static final String HEX_CHARS = "0123456789ABCDEF"; - private void loadLastIndex() { - /*try { - Properties p = getServerManager().getProperties(); - if (p.contains("database.selectLastIndex")) { - AdvancedConnection connection = new AdvancedConnection( - p.getProperty("database.url"), p.getProperty("database.user"), p.getProperty("database.password")); - NamedParameterStatement queryLastIndex = new NamedParameterStatement(connection, p.getProperty("database.selectLastIndex")); - queryLastIndex.prepare(); - queryLastIndex.setLong("device_id", deviceId); - ResultSet result = queryLastIndex.executeQuery(); - if (result.next()) { - lastIndex = result.getLong(1); - } - } - } catch(Exception error) { - }*/ - } - private void sendSimpleMessage(Channel channel, short type) { ChannelBuffer request = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 8); request.writeShort(type); |