Mercurial > dive4elements > river
comparison flys-aft/src/main/java/de/intevation/db/SymbolicStatement.java @ 4075:dbd0b3b1b8b8
Sync each river.
flys-aft/trunk@3419 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 14 Dec 2011 17:53:15 +0000 |
parents | 2c70fae83d0c |
children | 039413d7e394 |
comparison
equal
deleted
inserted
replaced
4074:100c4e0a45e1 | 4075:dbd0b3b1b8b8 |
---|---|
10 | 10 |
11 import java.sql.Connection; | 11 import java.sql.Connection; |
12 import java.sql.SQLException; | 12 import java.sql.SQLException; |
13 import java.sql.PreparedStatement; | 13 import java.sql.PreparedStatement; |
14 import java.sql.Timestamp; | 14 import java.sql.Timestamp; |
15 import java.sql.ResultSet; | |
15 | 16 |
16 import org.apache.log4j.Logger; | 17 import org.apache.log4j.Logger; |
17 | 18 |
18 public class SymbolicStatement { | 19 public class SymbolicStatement { |
19 | 20 |
118 | 119 |
119 public void clearParameters() throws SQLException { | 120 public void clearParameters() throws SQLException { |
120 stmnt.clearParameters(); | 121 stmnt.clearParameters(); |
121 } | 122 } |
122 | 123 |
124 public boolean execute() throws SQLException { | |
125 return stmnt.execute(); | |
126 } | |
127 | |
128 public ResultSet executeQuery() throws SQLException { | |
129 return stmnt.executeQuery(); | |
130 } | |
131 | |
132 public int executeUpdate() throws SQLException { | |
133 return stmnt.executeUpdate(); | |
134 } | |
135 | |
123 } // class Instance | 136 } // class Instance |
124 | 137 |
125 public SymbolicStatement(String statement) { | 138 public SymbolicStatement(String statement) { |
126 this.statement = statement; | 139 this.statement = statement; |
127 compile(); | 140 compile(); |