| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
package org.apache.commons.dbcp; |
| 19 | |
|
| 20 | |
import java.net.URL; |
| 21 | |
import java.sql.CallableStatement; |
| 22 | |
import java.math.BigDecimal; |
| 23 | |
import java.sql.Date; |
| 24 | |
import java.sql.Time; |
| 25 | |
import java.sql.Timestamp; |
| 26 | |
import java.util.Map; |
| 27 | |
import java.sql.Ref; |
| 28 | |
import java.sql.Blob; |
| 29 | |
import java.sql.Clob; |
| 30 | |
import java.sql.Array; |
| 31 | |
import java.util.Calendar; |
| 32 | |
import java.io.InputStream; |
| 33 | |
import java.io.Reader; |
| 34 | |
import java.sql.SQLException; |
| 35 | |
|
| 36 | |
import java.sql.NClob; |
| 37 | |
import java.sql.RowId; |
| 38 | |
import java.sql.SQLXML; |
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
|
| 57 | |
|
| 58 | |
public class DelegatingCallableStatement extends DelegatingPreparedStatement |
| 59 | |
implements CallableStatement { |
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
|
| 68 | |
|
| 69 | |
public DelegatingCallableStatement(DelegatingConnection c, |
| 70 | |
CallableStatement s) { |
| 71 | 684 | super(c, s); |
| 72 | 684 | } |
| 73 | |
|
| 74 | |
public boolean equals(Object obj) { |
| 75 | 560 | CallableStatement delegate = (CallableStatement) getInnermostDelegate(); |
| 76 | 560 | if (delegate == null) { |
| 77 | 6 | return false; |
| 78 | |
} |
| 79 | 554 | if (obj instanceof DelegatingCallableStatement) { |
| 80 | 546 | DelegatingCallableStatement s = (DelegatingCallableStatement) obj; |
| 81 | 546 | return delegate.equals(s.getInnermostDelegate()); |
| 82 | |
} |
| 83 | |
else { |
| 84 | 8 | return delegate.equals(obj); |
| 85 | |
} |
| 86 | |
} |
| 87 | |
|
| 88 | |
|
| 89 | |
public void setDelegate(CallableStatement s) { |
| 90 | 0 | super.setDelegate(s); |
| 91 | 0 | _stmt = s; |
| 92 | 0 | } |
| 93 | |
|
| 94 | |
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException |
| 95 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter( parameterIndex, sqlType); } catch (SQLException e) { handleException(e); } } |
| 96 | |
|
| 97 | |
public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException |
| 98 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter( parameterIndex, sqlType, scale); } catch (SQLException e) { handleException(e); } } |
| 99 | |
|
| 100 | |
public boolean wasNull() throws SQLException |
| 101 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).wasNull(); } catch (SQLException e) { handleException(e); return false; } } |
| 102 | |
|
| 103 | |
public String getString(int parameterIndex) throws SQLException |
| 104 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getString( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 105 | |
|
| 106 | |
public boolean getBoolean(int parameterIndex) throws SQLException |
| 107 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBoolean( parameterIndex); } catch (SQLException e) { handleException(e); return false; } } |
| 108 | |
|
| 109 | |
public byte getByte(int parameterIndex) throws SQLException |
| 110 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getByte( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 111 | |
|
| 112 | |
public short getShort(int parameterIndex) throws SQLException |
| 113 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getShort( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 114 | |
|
| 115 | |
public int getInt(int parameterIndex) throws SQLException |
| 116 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getInt( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 117 | |
|
| 118 | |
public long getLong(int parameterIndex) throws SQLException |
| 119 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getLong( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 120 | |
|
| 121 | |
public float getFloat(int parameterIndex) throws SQLException |
| 122 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getFloat( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 123 | |
|
| 124 | |
public double getDouble(int parameterIndex) throws SQLException |
| 125 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDouble( parameterIndex); } catch (SQLException e) { handleException(e); return 0; } } |
| 126 | |
|
| 127 | |
|
| 128 | |
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException |
| 129 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBigDecimal( parameterIndex, scale); } catch (SQLException e) { handleException(e); return null; } } |
| 130 | |
|
| 131 | |
public byte[] getBytes(int parameterIndex) throws SQLException |
| 132 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBytes( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 133 | |
|
| 134 | |
public Date getDate(int parameterIndex) throws SQLException |
| 135 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDate( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 136 | |
|
| 137 | |
public Time getTime(int parameterIndex) throws SQLException |
| 138 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTime( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 139 | |
|
| 140 | |
public Timestamp getTimestamp(int parameterIndex) throws SQLException |
| 141 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTimestamp( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 142 | |
|
| 143 | |
public Object getObject(int parameterIndex) throws SQLException |
| 144 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getObject( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 145 | |
|
| 146 | |
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException |
| 147 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBigDecimal( parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 148 | |
|
| 149 | |
public Object getObject(int i, Map map) throws SQLException |
| 150 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getObject( i, map); } catch (SQLException e) { handleException(e); return null; } } |
| 151 | |
|
| 152 | |
public Ref getRef(int i) throws SQLException |
| 153 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getRef( i); } catch (SQLException e) { handleException(e); return null; } } |
| 154 | |
|
| 155 | |
public Blob getBlob(int i) throws SQLException |
| 156 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBlob( i); } catch (SQLException e) { handleException(e); return null; } } |
| 157 | |
|
| 158 | |
public Clob getClob(int i) throws SQLException |
| 159 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getClob( i); } catch (SQLException e) { handleException(e); return null; } } |
| 160 | |
|
| 161 | |
public Array getArray(int i) throws SQLException |
| 162 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getArray( i); } catch (SQLException e) { handleException(e); return null; } } |
| 163 | |
|
| 164 | |
public Date getDate(int parameterIndex, Calendar cal) throws SQLException |
| 165 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDate( parameterIndex, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 166 | |
|
| 167 | |
public Time getTime(int parameterIndex, Calendar cal) throws SQLException |
| 168 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTime( parameterIndex, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 169 | |
|
| 170 | |
public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException |
| 171 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTimestamp( parameterIndex, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 172 | |
|
| 173 | |
public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException |
| 174 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter( paramIndex, sqlType, typeName); } catch (SQLException e) { handleException(e); } } |
| 175 | |
|
| 176 | |
public void registerOutParameter(String parameterName, int sqlType) throws SQLException |
| 177 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter(parameterName, sqlType); } catch (SQLException e) { handleException(e); } } |
| 178 | |
|
| 179 | |
public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException |
| 180 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter(parameterName, sqlType, scale); } catch (SQLException e) { handleException(e); } } |
| 181 | |
|
| 182 | |
public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException |
| 183 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).registerOutParameter(parameterName, sqlType, typeName); } catch (SQLException e) { handleException(e); } } |
| 184 | |
|
| 185 | |
public URL getURL(int parameterIndex) throws SQLException |
| 186 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getURL(parameterIndex); } catch (SQLException e) { handleException(e); return null; } } |
| 187 | |
|
| 188 | |
public void setURL(String parameterName, URL val) throws SQLException |
| 189 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setURL(parameterName, val); } catch (SQLException e) { handleException(e); } } |
| 190 | |
|
| 191 | |
public void setNull(String parameterName, int sqlType) throws SQLException |
| 192 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setNull(parameterName, sqlType); } catch (SQLException e) { handleException(e); } } |
| 193 | |
|
| 194 | |
public void setBoolean(String parameterName, boolean x) throws SQLException |
| 195 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setBoolean(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 196 | |
|
| 197 | |
public void setByte(String parameterName, byte x) throws SQLException |
| 198 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setByte(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 199 | |
|
| 200 | |
public void setShort(String parameterName, short x) throws SQLException |
| 201 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setShort(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 202 | |
|
| 203 | |
public void setInt(String parameterName, int x) throws SQLException |
| 204 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setInt(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 205 | |
|
| 206 | |
public void setLong(String parameterName, long x) throws SQLException |
| 207 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setLong(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 208 | |
|
| 209 | |
public void setFloat(String parameterName, float x) throws SQLException |
| 210 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setFloat(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 211 | |
|
| 212 | |
public void setDouble(String parameterName, double x) throws SQLException |
| 213 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setDouble(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 214 | |
|
| 215 | |
public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException |
| 216 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setBigDecimal(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 217 | |
|
| 218 | |
public void setString(String parameterName, String x) throws SQLException |
| 219 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setString(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 220 | |
|
| 221 | |
public void setBytes(String parameterName, byte [] x) throws SQLException |
| 222 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setBytes(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 223 | |
|
| 224 | |
public void setDate(String parameterName, Date x) throws SQLException |
| 225 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setDate(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 226 | |
|
| 227 | |
public void setTime(String parameterName, Time x) throws SQLException |
| 228 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setTime(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 229 | |
|
| 230 | |
public void setTimestamp(String parameterName, Timestamp x) throws SQLException |
| 231 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setTimestamp(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 232 | |
|
| 233 | |
public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException |
| 234 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setAsciiStream(parameterName, x, length); } catch (SQLException e) { handleException(e); } } |
| 235 | |
|
| 236 | |
public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException |
| 237 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setBinaryStream(parameterName, x, length); } catch (SQLException e) { handleException(e); } } |
| 238 | |
|
| 239 | |
public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException |
| 240 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setObject(parameterName, x, targetSqlType, scale); } catch (SQLException e) { handleException(e); } } |
| 241 | |
|
| 242 | |
public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException |
| 243 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setObject(parameterName, x, targetSqlType); } catch (SQLException e) { handleException(e); } } |
| 244 | |
|
| 245 | |
public void setObject(String parameterName, Object x) throws SQLException |
| 246 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setObject(parameterName, x); } catch (SQLException e) { handleException(e); } } |
| 247 | |
|
| 248 | |
public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException |
| 249 | 0 | { checkOpen(); ((CallableStatement)_stmt).setCharacterStream(parameterName, reader, length); } |
| 250 | |
|
| 251 | |
public void setDate(String parameterName, Date x, Calendar cal) throws SQLException |
| 252 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setDate(parameterName, x, cal); } catch (SQLException e) { handleException(e); } } |
| 253 | |
|
| 254 | |
public void setTime(String parameterName, Time x, Calendar cal) throws SQLException |
| 255 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setTime(parameterName, x, cal); } catch (SQLException e) { handleException(e); } } |
| 256 | |
|
| 257 | |
public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException |
| 258 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setTimestamp(parameterName, x, cal); } catch (SQLException e) { handleException(e); } } |
| 259 | |
|
| 260 | |
public void setNull(String parameterName, int sqlType, String typeName) throws SQLException |
| 261 | 0 | { checkOpen(); try { ((CallableStatement)_stmt).setNull(parameterName, sqlType, typeName); } catch (SQLException e) { handleException(e); } } |
| 262 | |
|
| 263 | |
public String getString(String parameterName) throws SQLException |
| 264 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getString(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 265 | |
|
| 266 | |
public boolean getBoolean(String parameterName) throws SQLException |
| 267 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBoolean(parameterName); } catch (SQLException e) { handleException(e); return false; } } |
| 268 | |
|
| 269 | |
public byte getByte(String parameterName) throws SQLException |
| 270 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getByte(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 271 | |
|
| 272 | |
public short getShort(String parameterName) throws SQLException |
| 273 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getShort(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 274 | |
|
| 275 | |
public int getInt(String parameterName) throws SQLException |
| 276 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getInt(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 277 | |
|
| 278 | |
public long getLong(String parameterName) throws SQLException |
| 279 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getLong(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 280 | |
|
| 281 | |
public float getFloat(String parameterName) throws SQLException |
| 282 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getFloat(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 283 | |
|
| 284 | |
public double getDouble(String parameterName) throws SQLException |
| 285 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDouble(parameterName); } catch (SQLException e) { handleException(e); return 0; } } |
| 286 | |
|
| 287 | |
public byte[] getBytes(String parameterName) throws SQLException |
| 288 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBytes(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 289 | |
|
| 290 | |
public Date getDate(String parameterName) throws SQLException |
| 291 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDate(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 292 | |
|
| 293 | |
public Time getTime(String parameterName) throws SQLException |
| 294 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTime(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 295 | |
|
| 296 | |
public Timestamp getTimestamp(String parameterName) throws SQLException |
| 297 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTimestamp(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 298 | |
|
| 299 | |
public Object getObject(String parameterName) throws SQLException |
| 300 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getObject(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 301 | |
|
| 302 | |
public BigDecimal getBigDecimal(String parameterName) throws SQLException |
| 303 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBigDecimal(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 304 | |
|
| 305 | |
public Object getObject(String parameterName, Map map) throws SQLException |
| 306 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getObject(parameterName, map); } catch (SQLException e) { handleException(e); return null; } } |
| 307 | |
|
| 308 | |
public Ref getRef(String parameterName) throws SQLException |
| 309 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getRef(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 310 | |
|
| 311 | |
public Blob getBlob(String parameterName) throws SQLException |
| 312 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getBlob(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 313 | |
|
| 314 | |
public Clob getClob(String parameterName) throws SQLException |
| 315 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getClob(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 316 | |
|
| 317 | |
public Array getArray(String parameterName) throws SQLException |
| 318 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getArray(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 319 | |
|
| 320 | |
public Date getDate(String parameterName, Calendar cal) throws SQLException |
| 321 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getDate(parameterName, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 322 | |
|
| 323 | |
public Time getTime(String parameterName, Calendar cal) throws SQLException |
| 324 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTime(parameterName, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 325 | |
|
| 326 | |
public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException |
| 327 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getTimestamp(parameterName, cal); } catch (SQLException e) { handleException(e); return null; } } |
| 328 | |
|
| 329 | |
public URL getURL(String parameterName) throws SQLException |
| 330 | 0 | { checkOpen(); try { return ((CallableStatement)_stmt).getURL(parameterName); } catch (SQLException e) { handleException(e); return null; } } |
| 331 | |
|
| 332 | |
|
| 333 | |
|
| 334 | |
public RowId getRowId(int parameterIndex) throws SQLException { |
| 335 | 0 | checkOpen(); |
| 336 | |
try { |
| 337 | 0 | return ((CallableStatement)_stmt).getRowId(parameterIndex); |
| 338 | |
} |
| 339 | 0 | catch (SQLException e) { |
| 340 | 0 | handleException(e); |
| 341 | 0 | return null; |
| 342 | |
} |
| 343 | |
} |
| 344 | |
|
| 345 | |
public RowId getRowId(String parameterName) throws SQLException { |
| 346 | 0 | checkOpen(); |
| 347 | |
try { |
| 348 | 0 | return ((CallableStatement)_stmt).getRowId(parameterName); |
| 349 | |
} |
| 350 | 0 | catch (SQLException e) { |
| 351 | 0 | handleException(e); |
| 352 | 0 | return null; |
| 353 | |
} |
| 354 | |
} |
| 355 | |
|
| 356 | |
public void setRowId(String parameterName, RowId value) throws SQLException { |
| 357 | 0 | checkOpen(); |
| 358 | |
try { |
| 359 | 0 | ((CallableStatement)_stmt).setRowId(parameterName, value); |
| 360 | |
} |
| 361 | 0 | catch (SQLException e) { |
| 362 | 0 | handleException(e); |
| 363 | 0 | } |
| 364 | 0 | } |
| 365 | |
|
| 366 | |
public void setNString(String parameterName, String value) throws SQLException { |
| 367 | 0 | checkOpen(); |
| 368 | |
try { |
| 369 | 0 | ((CallableStatement)_stmt).setNString(parameterName, value); |
| 370 | |
} |
| 371 | 0 | catch (SQLException e) { |
| 372 | 0 | handleException(e); |
| 373 | 0 | } |
| 374 | 0 | } |
| 375 | |
|
| 376 | |
public void setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException { |
| 377 | 0 | checkOpen(); |
| 378 | |
try { |
| 379 | 0 | ((CallableStatement)_stmt).setNCharacterStream(parameterName, reader, length); |
| 380 | |
} |
| 381 | 0 | catch (SQLException e) { |
| 382 | 0 | handleException(e); |
| 383 | 0 | } |
| 384 | 0 | } |
| 385 | |
|
| 386 | |
public void setNClob(String parameterName, NClob value) throws SQLException { |
| 387 | 0 | checkOpen(); |
| 388 | |
try { |
| 389 | 0 | ((CallableStatement)_stmt).setNClob(parameterName, value); |
| 390 | |
} |
| 391 | 0 | catch (SQLException e) { |
| 392 | 0 | handleException(e); |
| 393 | 0 | } |
| 394 | 0 | } |
| 395 | |
|
| 396 | |
public void setClob(String parameterName, Reader reader, long length) throws SQLException { |
| 397 | 0 | checkOpen(); |
| 398 | |
try { |
| 399 | 0 | ((CallableStatement)_stmt).setClob(parameterName, reader, length); |
| 400 | |
} |
| 401 | 0 | catch (SQLException e) { |
| 402 | 0 | handleException(e); |
| 403 | 0 | } |
| 404 | 0 | } |
| 405 | |
|
| 406 | |
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException { |
| 407 | 0 | checkOpen(); |
| 408 | |
try { |
| 409 | 0 | ((CallableStatement)_stmt).setBlob(parameterName, inputStream, length); |
| 410 | |
} |
| 411 | 0 | catch (SQLException e) { |
| 412 | 0 | handleException(e); |
| 413 | 0 | } |
| 414 | 0 | } |
| 415 | |
|
| 416 | |
public void setNClob(String parameterName, Reader reader, long length) throws SQLException { |
| 417 | 0 | checkOpen(); |
| 418 | |
try { |
| 419 | 0 | ((CallableStatement)_stmt).setNClob(parameterName, reader, length); |
| 420 | |
} |
| 421 | 0 | catch (SQLException e) { |
| 422 | 0 | handleException(e); |
| 423 | 0 | } |
| 424 | 0 | } |
| 425 | |
|
| 426 | |
public NClob getNClob(int parameterIndex) throws SQLException { |
| 427 | 0 | checkOpen(); |
| 428 | |
try { |
| 429 | 0 | return ((CallableStatement)_stmt).getNClob(parameterIndex); |
| 430 | |
} |
| 431 | 0 | catch (SQLException e) { |
| 432 | 0 | handleException(e); |
| 433 | 0 | return null; |
| 434 | |
} |
| 435 | |
} |
| 436 | |
|
| 437 | |
public NClob getNClob(String parameterName) throws SQLException { |
| 438 | 0 | checkOpen(); |
| 439 | |
try { |
| 440 | 0 | return ((CallableStatement)_stmt).getNClob(parameterName); |
| 441 | |
} |
| 442 | 0 | catch (SQLException e) { |
| 443 | 0 | handleException(e); |
| 444 | 0 | return null; |
| 445 | |
} |
| 446 | |
} |
| 447 | |
|
| 448 | |
public void setSQLXML(String parameterName, SQLXML value) throws SQLException { |
| 449 | 0 | checkOpen(); |
| 450 | |
try { |
| 451 | 0 | ((CallableStatement)_stmt).setSQLXML(parameterName, value); |
| 452 | |
} |
| 453 | 0 | catch (SQLException e) { |
| 454 | 0 | handleException(e); |
| 455 | 0 | } |
| 456 | 0 | } |
| 457 | |
|
| 458 | |
public SQLXML getSQLXML(int parameterIndex) throws SQLException { |
| 459 | 0 | checkOpen(); |
| 460 | |
try { |
| 461 | 0 | return ((CallableStatement)_stmt).getSQLXML(parameterIndex); |
| 462 | |
} |
| 463 | 0 | catch (SQLException e) { |
| 464 | 0 | handleException(e); |
| 465 | 0 | return null; |
| 466 | |
} |
| 467 | |
} |
| 468 | |
|
| 469 | |
public SQLXML getSQLXML(String parameterName) throws SQLException { |
| 470 | 0 | checkOpen(); |
| 471 | |
try { |
| 472 | 0 | return ((CallableStatement)_stmt).getSQLXML(parameterName); |
| 473 | |
} |
| 474 | 0 | catch (SQLException e) { |
| 475 | 0 | handleException(e); |
| 476 | 0 | return null; |
| 477 | |
} |
| 478 | |
} |
| 479 | |
|
| 480 | |
public String getNString(int parameterIndex) throws SQLException { |
| 481 | 0 | checkOpen(); |
| 482 | |
try { |
| 483 | 0 | return ((CallableStatement)_stmt).getNString(parameterIndex); |
| 484 | |
} |
| 485 | 0 | catch (SQLException e) { |
| 486 | 0 | handleException(e); |
| 487 | 0 | return null; |
| 488 | |
} |
| 489 | |
} |
| 490 | |
|
| 491 | |
public String getNString(String parameterName) throws SQLException { |
| 492 | 0 | checkOpen(); |
| 493 | |
try { |
| 494 | 0 | return ((CallableStatement)_stmt).getNString(parameterName); |
| 495 | |
} |
| 496 | 0 | catch (SQLException e) { |
| 497 | 0 | handleException(e); |
| 498 | 0 | return null; |
| 499 | |
} |
| 500 | |
} |
| 501 | |
|
| 502 | |
public Reader getNCharacterStream(int parameterIndex) throws SQLException { |
| 503 | 0 | checkOpen(); |
| 504 | |
try { |
| 505 | 0 | return ((CallableStatement)_stmt).getNCharacterStream(parameterIndex); |
| 506 | |
} |
| 507 | 0 | catch (SQLException e) { |
| 508 | 0 | handleException(e); |
| 509 | 0 | return null; |
| 510 | |
} |
| 511 | |
} |
| 512 | |
|
| 513 | |
public Reader getNCharacterStream(String parameterName) throws SQLException { |
| 514 | 0 | checkOpen(); |
| 515 | |
try { |
| 516 | 0 | return ((CallableStatement)_stmt).getNCharacterStream(parameterName); |
| 517 | |
} |
| 518 | 0 | catch (SQLException e) { |
| 519 | 0 | handleException(e); |
| 520 | 0 | return null; |
| 521 | |
} |
| 522 | |
} |
| 523 | |
|
| 524 | |
public Reader getCharacterStream(int parameterIndex) throws SQLException { |
| 525 | 0 | checkOpen(); |
| 526 | |
try { |
| 527 | 0 | return ((CallableStatement)_stmt).getCharacterStream(parameterIndex); |
| 528 | |
} |
| 529 | 0 | catch (SQLException e) { |
| 530 | 0 | handleException(e); |
| 531 | 0 | return null; |
| 532 | |
} |
| 533 | |
} |
| 534 | |
|
| 535 | |
public Reader getCharacterStream(String parameterName) throws SQLException { |
| 536 | 0 | checkOpen(); |
| 537 | |
try { |
| 538 | 0 | return ((CallableStatement)_stmt).getCharacterStream(parameterName); |
| 539 | |
} |
| 540 | 0 | catch (SQLException e) { |
| 541 | 0 | handleException(e); |
| 542 | 0 | return null; |
| 543 | |
} |
| 544 | |
} |
| 545 | |
|
| 546 | |
public void setBlob(String parameterName, Blob blob) throws SQLException { |
| 547 | 0 | checkOpen(); |
| 548 | |
try { |
| 549 | 0 | ((CallableStatement)_stmt).setBlob(parameterName, blob); |
| 550 | |
} |
| 551 | 0 | catch (SQLException e) { |
| 552 | 0 | handleException(e); |
| 553 | 0 | } |
| 554 | 0 | } |
| 555 | |
|
| 556 | |
public void setClob(String parameterName, Clob clob) throws SQLException { |
| 557 | 0 | checkOpen(); |
| 558 | |
try { |
| 559 | 0 | ((CallableStatement)_stmt).setClob(parameterName, clob); |
| 560 | |
} |
| 561 | 0 | catch (SQLException e) { |
| 562 | 0 | handleException(e); |
| 563 | 0 | } |
| 564 | 0 | } |
| 565 | |
|
| 566 | |
public void setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException { |
| 567 | 0 | checkOpen(); |
| 568 | |
try { |
| 569 | 0 | ((CallableStatement)_stmt).setAsciiStream(parameterName, inputStream, length); |
| 570 | |
} |
| 571 | 0 | catch (SQLException e) { |
| 572 | 0 | handleException(e); |
| 573 | 0 | } |
| 574 | 0 | } |
| 575 | |
|
| 576 | |
public void setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException { |
| 577 | 0 | checkOpen(); |
| 578 | |
try { |
| 579 | 0 | ((CallableStatement)_stmt).setBinaryStream(parameterName, inputStream, length); |
| 580 | |
} |
| 581 | 0 | catch (SQLException e) { |
| 582 | 0 | handleException(e); |
| 583 | 0 | } |
| 584 | 0 | } |
| 585 | |
|
| 586 | |
public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException { |
| 587 | 0 | checkOpen(); |
| 588 | |
try { |
| 589 | 0 | ((CallableStatement)_stmt).setCharacterStream(parameterName, reader, length); |
| 590 | |
} |
| 591 | 0 | catch (SQLException e) { |
| 592 | 0 | handleException(e); |
| 593 | 0 | } |
| 594 | 0 | } |
| 595 | |
|
| 596 | |
public void setAsciiStream(String parameterName, InputStream inputStream) throws SQLException { |
| 597 | 0 | checkOpen(); |
| 598 | |
try { |
| 599 | 0 | ((CallableStatement)_stmt).setAsciiStream(parameterName, inputStream); |
| 600 | |
} |
| 601 | 0 | catch (SQLException e) { |
| 602 | 0 | handleException(e); |
| 603 | 0 | } |
| 604 | 0 | } |
| 605 | |
|
| 606 | |
public void setBinaryStream(String parameterName, InputStream inputStream) throws SQLException { |
| 607 | 0 | checkOpen(); |
| 608 | |
try { |
| 609 | 0 | ((CallableStatement)_stmt).setBinaryStream(parameterName, inputStream); |
| 610 | |
} |
| 611 | 0 | catch (SQLException e) { |
| 612 | 0 | handleException(e); |
| 613 | 0 | } |
| 614 | 0 | } |
| 615 | |
|
| 616 | |
public void setCharacterStream(String parameterName, Reader reader) throws SQLException { |
| 617 | 0 | checkOpen(); |
| 618 | |
try { |
| 619 | 0 | ((CallableStatement)_stmt).setCharacterStream(parameterName, reader); |
| 620 | |
} |
| 621 | 0 | catch (SQLException e) { |
| 622 | 0 | handleException(e); |
| 623 | 0 | } |
| 624 | 0 | } |
| 625 | |
|
| 626 | |
public void setNCharacterStream(String parameterName, Reader reader) throws SQLException { |
| 627 | 0 | checkOpen(); |
| 628 | |
try { |
| 629 | 0 | ((CallableStatement)_stmt).setNCharacterStream(parameterName, reader); |
| 630 | |
} |
| 631 | 0 | catch (SQLException e) { |
| 632 | 0 | handleException(e); |
| 633 | 0 | } |
| 634 | 0 | } |
| 635 | |
|
| 636 | |
public void setClob(String parameterName, Reader reader) throws SQLException { |
| 637 | 0 | checkOpen(); |
| 638 | |
try { |
| 639 | 0 | ((CallableStatement)_stmt).setClob(parameterName, reader); |
| 640 | |
} |
| 641 | 0 | catch (SQLException e) { |
| 642 | 0 | handleException(e); |
| 643 | 0 | } } |
| 644 | |
|
| 645 | |
public void setBlob(String parameterName, InputStream inputStream) throws SQLException { |
| 646 | 0 | checkOpen(); |
| 647 | |
try { |
| 648 | 0 | ((CallableStatement)_stmt).setBlob(parameterName, inputStream); |
| 649 | |
} |
| 650 | 0 | catch (SQLException e) { |
| 651 | 0 | handleException(e); |
| 652 | 0 | } } |
| 653 | |
|
| 654 | |
public void setNClob(String parameterName, Reader reader) throws SQLException { |
| 655 | 0 | checkOpen(); |
| 656 | |
try { |
| 657 | 0 | ((CallableStatement)_stmt).setNClob(parameterName, reader); |
| 658 | |
} |
| 659 | 0 | catch (SQLException e) { |
| 660 | 0 | handleException(e); |
| 661 | 0 | } |
| 662 | 0 | } |
| 663 | |
|
| 664 | |
} |