equal
deleted
inserted
replaced
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 package info.globalcode.sql.dk; |
18 package info.globalcode.sql.dk; |
19 |
19 |
20 import static info.globalcode.sql.dk.Functions.notNull; |
20 import static info.globalcode.sql.dk.Functions.notNull; |
21 import java.sql.Connection; |
|
22 import java.sql.PreparedStatement; |
21 import java.sql.PreparedStatement; |
23 import java.sql.SQLException; |
22 import java.sql.SQLException; |
24 import java.util.List; |
23 import java.util.List; |
25 |
24 |
26 /** |
25 /** |
29 */ |
28 */ |
30 public class SQLCommandNumbered extends SQLCommand { |
29 public class SQLCommandNumbered extends SQLCommand { |
31 |
30 |
32 private List<Parameter> parameters; |
31 private List<Parameter> parameters; |
33 |
32 |
34 public SQLCommandNumbered(COMMAND_TYPE commandType, String query, List<Parameter> parameters) { |
33 public SQLCommandNumbered(String query, List<Parameter> parameters) { |
35 super(commandType, query); |
34 super(query); |
36 this.parameters = parameters; |
35 this.parameters = parameters; |
37 } |
36 } |
38 |
37 |
39 @Override |
38 @Override |
40 public void parametrize(PreparedStatement ps) throws SQLException { |
39 public void parametrize(PreparedStatement ps) throws SQLException { |