1 16 package com.ibatis.sqlmap.client.extensions; 17 18 import java.io.InputStream ; 19 import java.io.Reader ; 20 import java.math.BigDecimal ; 21 import java.net.URL ; 22 import java.sql.*; 23 import java.util.Calendar ; 24 25 37 public interface ParameterSetter { 38 39 44 public void setArray(Array x) throws SQLException; 45 46 52 public void setAsciiStream(InputStream x, int length) throws SQLException; 53 54 59 public void setBigDecimal(BigDecimal x) throws SQLException; 60 61 67 public void setBinaryStream(InputStream x, int length) throws SQLException; 68 69 74 public void setBlob(Blob x) throws SQLException; 75 76 81 public void setBoolean(boolean x) throws SQLException; 82 83 88 public void setByte(byte x) throws SQLException; 89 90 95 public void setBytes(byte x[]) throws SQLException; 96 97 103 public void setCharacterStream(Reader reader, int length) throws SQLException; 104 105 110 public void setClob(Clob x) throws SQLException; 111 112 117 public void setDate(Date x) throws SQLException; 118 119 125 public void setDate(Date x, Calendar cal) throws SQLException; 126 127 132 public void setDouble(double x) throws SQLException; 133 134 139 public void setFloat(float x) throws SQLException; 140 141 146 public void setInt(int x) throws SQLException; 147 148 153 public void setLong(long x) throws SQLException; 154 155 160 public void setNull(int sqlType) throws SQLException; 161 162 168 public void setNull(int sqlType, String typeName) throws SQLException; 169 170 175 public void setObject(Object x) throws SQLException; 176 177 183 public void setObject(Object x, int targetSqlType) throws SQLException; 184 185 192 public void setObject(Object x, int targetSqlType, int scale) throws SQLException; 193 194 199 public void setRef(Ref x) throws SQLException; 200 201 206 public void setShort(short x) throws SQLException; 207 208 213 public void setString(String x) throws SQLException; 214 215 220 public void setTime(Time x) throws SQLException; 221 222 228 public void setTime(Time x, Calendar cal) throws SQLException; 229 230 235 public void setTimestamp(Timestamp x) throws SQLException; 236 237 243 public void setTimestamp(Timestamp x, Calendar cal) throws SQLException; 244 245 250 public void setURL(URL x) throws SQLException; 251 252 255 public PreparedStatement getPreparedStatement(); 256 257 } 258 | Popular Tags |