1 21 22 package org.apache.derby.iapi.jdbc; 23 24 import java.io.Reader ; 25 import java.io.InputStream ; 26 import java.sql.Blob ; 27 import java.sql.Clob ; 28 import java.sql.NClob ; 29 import java.sql.RowId ; 30 import java.sql.SQLException ; 31 import java.sql.SQLXML ; 32 import org.apache.derby.iapi.reference.SQLState; 33 import org.apache.derby.impl.jdbc.Util; 34 35 public class BrokeredCallableStatement40 extends BrokeredCallableStatement30{ 36 37 public BrokeredCallableStatement40(BrokeredStatementControl control, int jdbcLevel, String sql) throws SQLException { 38 super(control,jdbcLevel,sql); 39 } 40 41 public Reader getCharacterStream(int parameterIndex) 42 throws SQLException { 43 return getCallableStatement().getCharacterStream(parameterIndex); 44 } 45 46 public Reader getCharacterStream(String parameterName) 47 throws SQLException { 48 return getCallableStatement().getCharacterStream(parameterName); 49 } 50 51 public Reader getNCharacterStream(int parameterIndex) 52 throws SQLException { 53 return getCallableStatement().getNCharacterStream(parameterIndex); 54 } 55 56 public Reader getNCharacterStream(String parameterName) 57 throws SQLException { 58 return getCallableStatement().getNCharacterStream(parameterName); 59 } 60 61 public String getNString(int parameterIndex) 62 throws SQLException { 63 return getCallableStatement().getNString(parameterIndex); 64 } 65 66 public String getNString(String parameterName) 67 throws SQLException { 68 return getCallableStatement().getNString(parameterName); 69 } 70 71 public RowId getRowId(int parameterIndex) throws SQLException { 72 return getCallableStatement().getRowId(parameterIndex); 73 } 74 75 public RowId getRowId(String parameterName) throws SQLException { 76 return getCallableStatement().getRowId(parameterName); 77 } 78 79 public void setRowId(String parameterName, RowId x) throws SQLException { 80 getCallableStatement().setRowId(parameterName,x); 81 } 82 83 public void setBlob(String parameterName, Blob x) 84 throws SQLException { 85 getCallableStatement().setBlob(parameterName, x); 86 } 87 88 public void setClob(String parameterName, Clob x) 89 throws SQLException { 90 getCallableStatement().setClob(parameterName, x); 91 } 92 93 public void setNString(String parameterName, String value) 94 throws SQLException { 95 getCallableStatement().setNString(parameterName,value); 96 } 97 98 public final void setNCharacterStream(String parameterName, Reader value) 99 throws SQLException { 100 getCallableStatement().setNCharacterStream(parameterName, value); 101 } 102 103 public void setNCharacterStream(String parameterName,Reader value,long length) 104 throws SQLException { 105 getCallableStatement().setNCharacterStream(parameterName,value,length); 106 } 107 108 public void setNClob(String parameterName, NClob value) throws SQLException { 109 getCallableStatement().setNClob(parameterName,value); 110 } 111 112 public final void setClob(String parameterName, Reader reader) 113 throws SQLException { 114 getCallableStatement().setClob(parameterName, reader); 115 } 116 117 public void setClob(String parameterName, Reader reader, long length) 118 throws SQLException { 119 getCallableStatement().setClob(parameterName,reader,length); 120 } 121 122 public final void setBlob(String parameterName, InputStream inputStream) 123 throws SQLException { 124 getCallableStatement().setBlob(parameterName, inputStream); 125 } 126 127 public void setBlob(String parameterName, InputStream inputStream, long length) 128 throws SQLException { 129 getCallableStatement().setBlob(parameterName,inputStream,length); 130 } 131 132 public final void setNClob(String parameterName, Reader reader) 133 throws SQLException { 134 getCallableStatement().setNClob(parameterName, reader); 135 } 136 137 public void setNClob(String parameterName, Reader reader, long length) 138 throws SQLException { 139 getCallableStatement().setNClob(parameterName,reader,length); 140 } 141 142 public NClob getNClob(int i) throws SQLException { 143 return getCallableStatement().getNClob(i); 144 } 145 146 public NClob getNClob(String parameterName) throws SQLException { 147 return getCallableStatement().getNClob(parameterName); 148 } 149 150 public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException { 151 getCallableStatement().setSQLXML(parameterName,xmlObject); 152 } 153 154 public SQLXML getSQLXML(int parameterIndex) throws SQLException { 155 return getCallableStatement().getSQLXML(parameterIndex); 156 } 157 158 public SQLXML getSQLXML(String parametername) throws SQLException { 159 return getCallableStatement().getSQLXML(parametername); 160 } 161 162 165 166 174 public final void setAsciiStream(int parameterIndex, InputStream x) 175 throws SQLException { 176 getCallableStatement().setAsciiStream(parameterIndex, x); 177 } 178 179 187 public final void setBinaryStream(int parameterIndex, InputStream x) 188 throws SQLException { 189 getCallableStatement().setBinaryStream(parameterIndex, x); 190 } 191 192 201 public final void setCharacterStream(int parameterIndex, Reader reader) 202 throws SQLException { 203 getCallableStatement().setCharacterStream(parameterIndex, reader); 204 } 205 206 public void setRowId(int parameterIndex, RowId x) throws SQLException { 207 getPreparedStatement().setRowId(parameterIndex,x); 208 } 209 210 public void setNString(int index, String value) throws SQLException { 211 getPreparedStatement().setNString(index,value); 212 } 213 214 public void setNCharacterStream(int parameterIndex, Reader value) 215 throws SQLException { 216 getCallableStatement().setNCharacterStream(parameterIndex, value); 217 } 218 219 public void setNCharacterStream(int index, Reader value, long length) throws SQLException { 220 getPreparedStatement().setNCharacterStream(index,value,length); 221 } 222 223 public void setNClob(int index, NClob value) throws SQLException { 224 getPreparedStatement().setNClob(index,value); 225 } 226 227 239 public final void setClob(int parameterIndex, Reader reader) 240 throws SQLException { 241 getCallableStatement().setClob(parameterIndex, reader); 242 } 243 244 public void setClob(int parameterIndex, Reader reader, long length) 245 throws SQLException { 246 getPreparedStatement().setClob(parameterIndex,reader,length); 247 } 248 249 260 public final void setBlob(int parameterIndex, InputStream inputStream) 261 throws SQLException { 262 getCallableStatement().setBlob(parameterIndex, inputStream); 263 } 264 265 public void setBlob(int parameterIndex, InputStream inputStream, long length) 266 throws SQLException { 267 getPreparedStatement().setBlob(parameterIndex,inputStream,length); 268 } 269 270 public final void setNClob(int parameterIndex, Reader reader) 271 throws SQLException { 272 getCallableStatement().setNClob(parameterIndex, reader); 273 } 274 275 public void setNClob(int parameterIndex, Reader reader, long length) 276 throws SQLException { 277 getPreparedStatement().setNClob(parameterIndex,reader,length); 278 } 279 280 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { 281 getPreparedStatement().setSQLXML(parameterIndex,xmlObject); 282 } 283 284 291 public final boolean isClosed() throws SQLException { 292 return getCallableStatement().isClosed(); 293 } 294 295 303 public <T> T unwrap(java.lang.Class <T> interfaces) 304 throws SQLException { 305 checkIfClosed(); 306 try { 309 return interfaces.cast(this); 310 } catch (ClassCastException cce) { 311 throw Util.generateCsSQLException(SQLState.UNABLE_TO_UNWRAP, 312 interfaces); 313 } 314 } 315 321 public boolean isPoolable() throws SQLException { 322 return getStatement().isPoolable(); 323 } 324 325 330 public void setPoolable(boolean poolable) throws SQLException { 331 getStatement().setPoolable(poolable); 332 } 333 334 344 345 public final void setAsciiStream(int parameterIndex, InputStream x, long length) 346 throws SQLException { 347 getCallableStatement().setAsciiStream(parameterIndex,x,length); 348 } 349 350 360 361 public final void setBinaryStream(int parameterIndex, InputStream x, long length) 362 throws SQLException { 363 getCallableStatement().setBinaryStream(parameterIndex,x,length); 364 } 365 366 376 377 public final void setCharacterStream(int parameterIndex, Reader x, long length) 378 throws SQLException { 379 getCallableStatement().setCharacterStream(parameterIndex,x,length); 380 } 381 382 public final void setAsciiStream(String parameterName, InputStream x) 383 throws SQLException { 384 getCallableStatement().setAsciiStream(parameterName, x); 385 } 386 387 397 398 public final void setAsciiStream(String parameterName, InputStream x, long length) 399 throws SQLException { 400 getCallableStatement().setAsciiStream(parameterName,x,length); 401 } 402 403 public final void setBinaryStream(String parameterName, InputStream x) 404 throws SQLException { 405 getCallableStatement().setBinaryStream(parameterName, x); 406 } 407 408 418 419 public final void setBinaryStream(String parameterName, InputStream x, long length) 420 throws SQLException { 421 getCallableStatement().setBinaryStream(parameterName,x,length); 422 } 423 424 public final void setCharacterStream(String parameterName, Reader x) 425 throws SQLException { 426 getCallableStatement().setCharacterStream(parameterName, x); 427 } 428 429 439 440 public final void setCharacterStream(String parameterName, Reader x, long length) 441 throws SQLException { 442 getCallableStatement().setCharacterStream(parameterName,x,length); 443 } 444 } 445 | Popular Tags |