java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java
branchv_0
changeset 37 9e6f8e5d5f98
parent 35 b2ff3b2d58b2
child 49 b4c74461d0f9
equal deleted inserted replaced
36:025fbe816bbf 37:9e6f8e5d5f98
    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 {