equal
deleted
inserted
replaced
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
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 java.sql.Connection; |
|
21 import java.sql.PreparedStatement; |
20 import java.sql.PreparedStatement; |
22 import java.sql.SQLException; |
21 import java.sql.SQLException; |
23 import java.util.List; |
22 import java.util.List; |
24 |
23 |
25 /** |
24 /** |
28 */ |
27 */ |
29 public class SQLCommandNamed extends SQLCommand { |
28 public class SQLCommandNamed extends SQLCommand { |
30 |
29 |
31 private List<NamedParameter> parameters; |
30 private List<NamedParameter> parameters; |
32 |
31 |
33 public SQLCommandNamed(COMMAND_TYPE commandType, String query, List<NamedParameter> parameters) { |
32 public SQLCommandNamed(String query, List<NamedParameter> parameters) { |
34 super(commandType, query); |
33 super(query); |
35 this.parameters = parameters; |
34 this.parameters = parameters; |
36 } |
35 } |
37 |
36 |
38 @Override |
37 @Override |
39 public void parametrize(PreparedStatement ps) throws SQLException { |
38 public void parametrize(PreparedStatement ps) throws SQLException { |