equal
deleted
inserted
replaced
34 public SQLCommand(COMMAND_TYPE commandType, String query) { |
34 public SQLCommand(COMMAND_TYPE commandType, String query) { |
35 this.commandType = commandType; |
35 this.commandType = commandType; |
36 this.query = query; |
36 this.query = query; |
37 } |
37 } |
38 |
38 |
39 public abstract PreparedStatement prepareStatement(Connection c) throws SQLException; |
39 public PreparedStatement prepareStatement(Connection c) throws SQLException { |
|
40 return c.prepareStatement(query); |
|
41 } |
40 |
42 |
41 public abstract void parametrize(PreparedStatement ps) throws SQLException; |
43 public abstract void parametrize(PreparedStatement ps) throws SQLException; |
42 |
44 |
43 public abstract List<? extends Parameter> getParameters(); |
45 public abstract List<? extends Parameter> getParameters(); |
44 |
46 |