aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/NamedParameterStatement.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 08:56:39 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 08:56:39 +0000
commit131152712d834b39f44ae94ab5d2db04520d3125 (patch)
tree93a224f4cafba45d668153499a5d607382f46d9b /src/org/traccar/helper/NamedParameterStatement.java
parent0218464141fc64f060699c6e98ed5d4f0814e139 (diff)
downloadtrackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.tar.gz
trackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.tar.bz2
trackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.zip
Diffstat (limited to 'src/org/traccar/helper/NamedParameterStatement.java')
-rw-r--r--src/org/traccar/helper/NamedParameterStatement.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/org/traccar/helper/NamedParameterStatement.java b/src/org/traccar/helper/NamedParameterStatement.java
index c86217182..e898af2d3 100644
--- a/src/org/traccar/helper/NamedParameterStatement.java
+++ b/src/org/traccar/helper/NamedParameterStatement.java
@@ -30,12 +30,12 @@ public class NamedParameterStatement {
* Index mapping
*/
private final Map indexMap;
-
+
/**
* Query string
*/
private final String parsedQuery;
-
+
/**
* Database connection
*/
@@ -106,7 +106,7 @@ public class NamedParameterStatement {
return parsedQuery.toString();
}
-
+
public void prepare() throws SQLException {
try {
if (statement == null) {
@@ -134,6 +134,13 @@ public class NamedParameterStatement {
}
/**
+ * Return generated keys
+ */
+ public ResultSet getGeneratedKeys() throws SQLException {
+ return statement.getGeneratedKeys();
+ }
+
+ /**
* Immediately closes the statement
*/
public void close() throws SQLException {