1 /* $Id: PooledBindPreparedStatement.java 94 2008-12-18 11:07:17Z dobashi $
\r
2 * created: 2005/06/17
\r
5 package com.lavans.luz2.sql.pool;
\r
7 import java.math.BigDecimal;
\r
8 import java.sql.Blob;
\r
9 import java.sql.Date;
\r
10 import java.sql.SQLException;
\r
11 import java.sql.Time;
\r
12 import java.sql.Timestamp;
\r
13 import java.util.Map;
\r
15 import com.lavans.luz2.sql.bind.BindPreparedStatement;
\r
21 public class PooledBindPreparedStatement extends PooledPreparedStatement implements BindPreparedStatement{
\r
22 private BindPreparedStatement bst = null;
\r
24 public PooledBindPreparedStatement(PooledConnection con, BindPreparedStatement bst){
\r
31 * @see com.lavans.luz2.sql.bind.BindPreparedStatement#setBlob(java.lang.String, java.sql.Blob)
\r
33 public void setParams(Map<String, Object> params) throws SQLException {
\r
34 bst.setParams(params);
\r
40 * @throws SQLException
\r
42 public void setBoolean(String key, boolean x) throws SQLException {
\r
43 bst.setBoolean(key, x);
\r
48 * @throws SQLException
\r
50 public void setByte(String key, byte x) throws SQLException {
\r
51 bst.setByte(key, x);
\r
56 * @throws SQLException
\r
58 public void setBytes(String key, byte[] x) throws SQLException {
\r
59 bst.setBytes(key, x);
\r
64 * @throws SQLException
\r
66 public void setDate(String key, Date x) throws SQLException {
\r
67 bst.setDate(key, x);
\r
72 * @throws SQLException
\r
74 public void setDouble(String key, double x) throws SQLException {
\r
75 bst.setDouble(key, x);
\r
80 * @throws SQLException
\r
82 public void setFloat(String key, float x) throws SQLException {
\r
83 bst.setFloat(key, x);
\r
88 * @throws SQLException
\r
90 public void setInt(String key, int x) throws SQLException {
\r
96 * @throws SQLException
\r
98 public void setLong(String key, long x) throws SQLException {
\r
99 bst.setLong(key, x);
\r
104 * @throws SQLException
\r
106 public void setNull(String key, int sqlType) throws SQLException {
\r
107 bst.setNull(key, sqlType);
\r
112 * @throws SQLException
\r
114 public void setShort(String key, short x) throws SQLException {
\r
115 bst.setShort(key, x);
\r
120 * @throws SQLException
\r
122 public void setString(String key, String x) throws SQLException {
\r
123 bst.setString(key, x);
\r
128 * @throws SQLException
\r
130 public void setTime(String key, Time x) throws SQLException {
\r
131 bst.setTime(key, x);
\r
136 * @throws SQLException
\r
138 public void setTimestamp(String key, Timestamp x) throws SQLException {
\r
139 bst.setTimestamp(key, x);
\r
143 * パラメータ名での設定(java.math.BigDecimal)。
\r
146 * @throws SQLException
\r
148 public void setBigDecimal(String key, BigDecimal x) throws SQLException {
\r
149 bst.setBigDecimal(key, x);
\r
153 * パラメータ名での設定(java.sql.Blob)。
\r
154 * @see com.lavans.luz2.sql.bind.BindPreparedStatement#setBlob(java.lang.String, java.sql.Blob)
\r
156 public void setBlob(String key, Blob x) throws SQLException {
\r
157 bst.setBlob(key, x);
\r
161 * パラメータ名での設定(java.sql.Object)。
\r
162 * @see com.lavans.luz2.sql.bind.BindPreparedStatement#setBlob(java.lang.String, java.sql.Blob)
\r
164 public void setObject(String key, Object x) throws SQLException {
\r
165 bst.setObject(key, x);
\r
166 // TODO 自動生成されたメソッド・スタブ
\r