1 21 22 package org.apache.derby.iapi.jdbc; 23 24 import java.io.InputStream ; 25 import java.io.Reader ; 26 import java.sql.NClob ; 27 import java.sql.RowId ; 28 import java.sql.SQLException ; 29 import java.sql.SQLXML ; 30 import org.apache.derby.impl.jdbc.Util; 31 import org.apache.derby.iapi.reference.SQLState; 32 33 public class BrokeredPreparedStatement40 extends BrokeredPreparedStatement30{ 34 35 public BrokeredPreparedStatement40(BrokeredStatementControl control, int jdbcLevel, String sql, Object generatedKeys) throws SQLException { 36 super(control, jdbcLevel, sql,generatedKeys); 37 } 38 39 public void setRowId(int parameterIndex, RowId x) throws SQLException { 40 getPreparedStatement().setRowId (parameterIndex, x); 41 } 42 43 public void setNString(int index, String value) throws SQLException { 44 getPreparedStatement().setNString (index, value); 45 } 46 47 public void setNCharacterStream(int parameterIndex, Reader value) 48 throws SQLException { 49 getPreparedStatement().setNCharacterStream(parameterIndex, value); 50 } 51 52 public void setNCharacterStream(int index, Reader value, long length) throws SQLException { 53 getPreparedStatement().setNCharacterStream (index, value, length); 54 } 55 56 public void setNClob(int index, NClob value) throws SQLException { 57 getPreparedStatement().setNClob (index, value); 58 } 59 60 public void setClob(int parameterIndex, Reader reader, long length) 61 throws SQLException { 62 getPreparedStatement().setClob (parameterIndex, reader, length); 63 } 64 65 public void setBlob(int parameterIndex, InputStream inputStream, long length) 66 throws SQLException { 67 getPreparedStatement().setBlob (parameterIndex, inputStream, length); 68 } 69 70 public final void setNClob(int parameterIndex, Reader reader) 71 throws SQLException { 72 getPreparedStatement().setNClob(parameterIndex, reader); 73 } 74 75 public void setNClob(int parameterIndex, Reader reader, long length) 76 throws SQLException { 77 getPreparedStatement().setNClob (parameterIndex, reader, length); 78 } 79 80 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { 81 getPreparedStatement().setSQLXML (parameterIndex, xmlObject); 82 } 83 84 91 public final boolean isClosed() throws SQLException { 92 return getPreparedStatement().isClosed(); 93 } 94 95 103 public <T> T unwrap(java.lang.Class <T> interfaces) 104 throws SQLException { 105 checkIfClosed(); 106 try { 109 return interfaces.cast(this); 110 } catch (ClassCastException cce) { 111 throw Util.generateCsSQLException(SQLState.UNABLE_TO_UNWRAP, 112 interfaces); 113 } 114 } 115 116 122 public boolean isPoolable() throws SQLException { 123 return getStatement().isPoolable(); 124 } 125 126 131 public void setPoolable(boolean poolable) throws SQLException { 132 getStatement().setPoolable(poolable); 133 } 134 135 143 public final void setAsciiStream(int parameterIndex, InputStream x) 144 throws SQLException { 145 getPreparedStatement().setAsciiStream(parameterIndex, x); 146 } 147 148 158 159 public final void setAsciiStream(int parameterIndex, InputStream x, long length) 160 throws SQLException { 161 getPreparedStatement().setAsciiStream(parameterIndex,x,length); 162 } 163 164 172 public final void setBinaryStream(int parameterIndex, InputStream x) 173 throws SQLException { 174 getPreparedStatement().setBinaryStream(parameterIndex, x); 175 } 176 177 187 188 public final void setBinaryStream(int parameterIndex, InputStream x, long length) 189 throws SQLException { 190 getPreparedStatement().setBinaryStream(parameterIndex,x,length); 191 } 192 193 204 public final void setBlob(int parameterIndex, InputStream inputStream) 205 throws SQLException { 206 getPreparedStatement().setBlob(parameterIndex, inputStream); 207 } 208 209 218 public final void setCharacterStream(int parameterIndex, Reader reader) 219 throws SQLException { 220 getPreparedStatement().setCharacterStream(parameterIndex, reader); 221 } 222 223 233 234 public final void setCharacterStream(int parameterIndex, Reader x, long length) 235 throws SQLException { 236 getPreparedStatement().setCharacterStream(parameterIndex,x,length); 237 } 238 239 251 public final void setClob(int parameterIndex, Reader reader) 252 throws SQLException { 253 getPreparedStatement().setClob(parameterIndex, reader); 254 } 255 } 256 | Popular Tags |