1 22 package org.jboss.resource.adapter.jdbc; 23 24 import java.io.InputStream ; 25 import java.io.Reader ; 26 import java.math.BigDecimal ; 27 import java.net.URL ; 28 import java.sql.Array ; 29 import java.sql.Blob ; 30 import java.sql.CallableStatement ; 31 import java.sql.Clob ; 32 import java.sql.Date ; 33 import java.sql.Ref ; 34 import java.sql.SQLException ; 35 import java.sql.Time ; 36 import java.sql.Timestamp ; 37 import java.util.Calendar ; 38 import java.util.Map ; 39 40 47 public class CachedCallableStatement extends CachedPreparedStatement 48 implements CallableStatement 49 { 50 private final CallableStatement cs; 51 52 public CachedCallableStatement(CallableStatement ps) throws SQLException 53 { 54 super(ps); 55 this.cs = ps; 56 } 57 58 public boolean wasNull() throws SQLException 59 { 60 return cs.wasNull(); 61 } 62 63 public byte getByte(int parameterIndex) throws SQLException 64 { 65 return cs.getByte(parameterIndex); 66 } 67 68 public double getDouble(int parameterIndex) throws SQLException 69 { 70 return cs.getDouble(parameterIndex); 71 } 72 73 public float getFloat(int parameterIndex) throws SQLException 74 { 75 return cs.getFloat(parameterIndex); 76 } 77 78 public int getInt(int parameterIndex) throws SQLException 79 { 80 return cs.getInt(parameterIndex); 81 } 82 83 public long getLong(int parameterIndex) throws SQLException 84 { 85 return cs.getLong(parameterIndex); 86 } 87 88 public short getShort(int parameterIndex) throws SQLException 89 { 90 return cs.getShort(parameterIndex); 91 } 92 93 public boolean getBoolean(int parameterIndex) throws SQLException 94 { 95 return cs.getBoolean(parameterIndex); 96 } 97 98 public byte[] getBytes(int parameterIndex) throws SQLException 99 { 100 return cs.getBytes(parameterIndex); 101 } 102 103 public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException 104 { 105 cs.registerOutParameter(parameterIndex, sqlType); 106 } 107 108 public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException 109 { 110 cs.registerOutParameter(parameterIndex, sqlType, scale); 111 } 112 113 public Object getObject(int parameterIndex) throws SQLException 114 { 115 return cs.getObject(parameterIndex); 116 } 117 118 public String getString(int parameterIndex) throws SQLException 119 { 120 return cs.getString(parameterIndex); 121 } 122 123 public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException 124 { 125 cs.registerOutParameter(paramIndex, sqlType, typeName); 126 } 127 128 public byte getByte(String parameterName) throws SQLException 129 { 130 return cs.getByte(parameterName); 131 } 132 133 public double getDouble(String parameterName) throws SQLException 134 { 135 return cs.getDouble(parameterName); 136 } 137 138 public float getFloat(String parameterName) throws SQLException 139 { 140 return cs.getFloat(parameterName); 141 } 142 143 public int getInt(String parameterName) throws SQLException 144 { 145 return cs.getInt(parameterName); 146 } 147 148 public long getLong(String parameterName) throws SQLException 149 { 150 return cs.getLong(parameterName); 151 } 152 153 public short getShort(String parameterName) throws SQLException 154 { 155 return cs.getShort(parameterName); 156 } 157 158 public boolean getBoolean(String parameterName) throws SQLException 159 { 160 return cs.getBoolean(parameterName); 161 } 162 163 public byte[] getBytes(String parameterName) throws SQLException 164 { 165 return cs.getBytes(parameterName); 166 } 167 168 public void setByte(String parameterName, byte x) throws SQLException 169 { 170 cs.setByte(parameterName, x); 171 } 172 173 public void setDouble(String parameterName, double x) throws SQLException 174 { 175 cs.setDouble(parameterName, x); 176 } 177 178 public void setFloat(String parameterName, float x) throws SQLException 179 { 180 cs.setFloat(parameterName, x); 181 } 182 183 public void registerOutParameter(String parameterName, int sqlType) throws SQLException 184 { 185 cs.registerOutParameter(parameterName, sqlType); 186 } 187 188 public void setInt(String parameterName, int x) throws SQLException 189 { 190 cs.setInt(parameterName, x); 191 } 192 193 public void setNull(String parameterName, int sqlType) throws SQLException 194 { 195 cs.setNull(parameterName, sqlType); 196 } 197 198 public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException 199 { 200 cs.registerOutParameter(parameterName, sqlType, scale); 201 } 202 203 public void setLong(String parameterName, long x) throws SQLException 204 { 205 cs.setLong(parameterName, x); 206 } 207 208 public void setShort(String parameterName, short x) throws SQLException 209 { 210 cs.setShort(parameterName, x); 211 } 212 213 public void setBoolean(String parameterName, boolean x) throws SQLException 214 { 215 cs.setBoolean(parameterName, x); 216 } 217 218 public void setBytes(String parameterName, byte[] x) throws SQLException 219 { 220 cs.setBytes(parameterName, x); 221 } 222 223 public BigDecimal getBigDecimal(int parameterIndex) throws SQLException 224 { 225 return cs.getBigDecimal(parameterIndex); 226 } 227 228 public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException 229 { 230 return cs.getBigDecimal(parameterIndex, scale); 231 } 232 233 public URL getURL(int parameterIndex) throws SQLException 234 { 235 return cs.getURL(parameterIndex); 236 } 237 238 public Array getArray(int i) throws SQLException 239 { 240 return cs.getArray(i); 241 } 242 243 public Blob getBlob(int i) throws SQLException 244 { 245 return cs.getBlob(i); 246 } 247 248 public Clob getClob(int i) throws SQLException 249 { 250 return cs.getClob(i); 251 } 252 253 public Date getDate(int parameterIndex) throws SQLException 254 { 255 return cs.getDate(parameterIndex); 256 } 257 258 public Ref getRef(int i) throws SQLException 259 { 260 return cs.getRef(i); 261 } 262 263 public Time getTime(int parameterIndex) throws SQLException 264 { 265 return cs.getTime(parameterIndex); 266 } 267 268 public Timestamp getTimestamp(int parameterIndex) throws SQLException 269 { 270 return cs.getTimestamp(parameterIndex); 271 } 272 273 public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException 274 { 275 cs.setAsciiStream(parameterName, x, length); 276 } 277 278 public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException 279 { 280 cs.setBinaryStream(parameterName, x, length); 281 } 282 283 public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException 284 { 285 cs.setCharacterStream(parameterName, reader, length); 286 } 287 288 public Object getObject(String parameterName) throws SQLException 289 { 290 return cs.getObject(parameterName); 291 } 292 293 public void setObject(String parameterName, Object x) throws SQLException 294 { 295 cs.setObject(parameterName, x); 296 } 297 298 public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException 299 { 300 cs.setObject(parameterName, x, targetSqlType); 301 } 302 303 public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException 304 { 305 cs.setObject(parameterName, x, targetSqlType, scale); 306 } 307 308 public Object getObject(int i, Map map) throws SQLException 309 { 310 return cs.getObject(i, map); 311 } 312 313 public String getString(String parameterName) throws SQLException 314 { 315 return cs.getString(parameterName); 316 } 317 318 public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException 319 { 320 cs.registerOutParameter(parameterName, sqlType, typeName); 321 } 322 323 public void setNull(String parameterName, int sqlType, String typeName) throws SQLException 324 { 325 cs.setNull(parameterName, sqlType, typeName); 326 } 327 328 public void setString(String parameterName, String x) throws SQLException 329 { 330 cs.setString(parameterName, x); 331 } 332 333 public BigDecimal getBigDecimal(String parameterName) throws SQLException 334 { 335 return cs.getBigDecimal(parameterName); 336 } 337 338 public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException 339 { 340 cs.setBigDecimal(parameterName, x); 341 } 342 343 public URL getURL(String parameterName) throws SQLException 344 { 345 return cs.getURL(parameterName); 346 } 347 348 public void setURL(String parameterName, URL val) throws SQLException 349 { 350 cs.setURL(parameterName, val); 351 } 352 353 public Array getArray(String parameterName) throws SQLException 354 { 355 return cs.getArray(parameterName); 356 } 357 358 public Blob getBlob(String parameterName) throws SQLException 359 { 360 return cs.getBlob(parameterName); 361 } 362 363 public Clob getClob(String parameterName) throws SQLException 364 { 365 return cs.getClob(parameterName); 366 } 367 368 public Date getDate(String parameterName) throws SQLException 369 { 370 return cs.getDate(parameterName); 371 } 372 373 public void setDate(String parameterName, Date x) throws SQLException 374 { 375 cs.setDate(parameterName, x); 376 } 377 378 public Date getDate(int parameterIndex, Calendar cal) throws SQLException 379 { 380 return cs.getDate(parameterIndex, cal); 381 } 382 383 public Ref getRef(String parameterName) throws SQLException 384 { 385 return cs.getRef(parameterName); 386 } 387 388 public Time getTime(String parameterName) throws SQLException 389 { 390 return cs.getTime(parameterName); 391 } 392 393 public void setTime(String parameterName, Time x) throws SQLException 394 { 395 cs.setTime(parameterName, x); 396 } 397 398 public Time getTime(int parameterIndex, Calendar cal) throws SQLException 399 { 400 return cs.getTime(parameterIndex, cal); 401 } 402 403 public Timestamp getTimestamp(String parameterName) throws SQLException 404 { 405 return cs.getTimestamp(parameterName); 406 } 407 408 public void setTimestamp(String parameterName, Timestamp x) throws SQLException 409 { 410 cs.setTimestamp(parameterName, x); 411 } 412 413 public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException 414 { 415 return cs.getTimestamp(parameterIndex, cal); 416 } 417 418 public Object getObject(String parameterName, Map map) throws SQLException 419 { 420 return cs.getObject(parameterName, map); 421 } 422 423 public Date getDate(String parameterName, Calendar cal) throws SQLException 424 { 425 return cs.getDate(parameterName, cal); 426 } 427 428 public Time getTime(String parameterName, Calendar cal) throws SQLException 429 { 430 return cs.getTime(parameterName, cal); 431 } 432 433 public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException 434 { 435 return cs.getTimestamp(parameterName, cal); 436 } 437 438 public void setDate(String parameterName, Date x, Calendar cal) throws SQLException 439 { 440 cs.setDate(parameterName, x, cal); 441 } 442 443 public void setTime(String parameterName, Time x, Calendar cal) throws SQLException 444 { 445 cs.setTime(parameterName, x, cal); 446 } 447 448 public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException 449 { 450 cs.setTimestamp(parameterName, x, cal); 451 } 452 453 } 454 | Popular Tags |