1 21 22 package org.apache.derby.impl.jdbc; 23 24 import java.io.InputStream ; 25 import java.io.Reader ; 26 import java.sql.Blob ; 27 import java.sql.Clob ; 28 import java.sql.NClob ; 29 import java.sql.ParameterMetaData ; 30 import java.sql.RowId ; 31 import java.sql.SQLException ; 32 import java.sql.SQLXML ; 33 34 import org.apache.derby.iapi.reference.SQLState; 35 36 public class EmbedCallableStatement40 extends EmbedCallableStatement30 { 37 38 39 40 public EmbedCallableStatement40(EmbedConnection conn, String sql, 41 int resultSetType, 42 int resultSetConcurrency, 43 int resultSetHoldability) throws SQLException { 44 super(conn, sql, resultSetType, resultSetConcurrency, resultSetHoldability); 45 } 46 47 public Reader getCharacterStream(String parameterName) 48 throws SQLException { 49 throw Util.notImplemented(); 50 } 51 52 public Reader getNCharacterStream(int parameterIndex) 53 throws SQLException { 54 throw Util.notImplemented(); 55 } 56 57 public Reader getNCharacterStream(String parameterName) 58 throws SQLException { 59 throw Util.notImplemented(); 60 } 61 62 public String getNString(int parameterIndex) 63 throws SQLException { 64 throw Util.notImplemented(); 65 } 66 67 public String getNString(String parameterName) 68 throws SQLException { 69 throw Util.notImplemented(); 70 } 71 72 public void setBlob(String parameterName, Blob x) 73 throws SQLException { 74 throw Util.notImplemented(); 75 } 76 77 public void setClob(String parameterName, Clob x) 78 throws SQLException { 79 throw Util.notImplemented(); 80 } 81 82 public RowId getRowId(int parameterIndex) throws SQLException { 83 throw Util.notImplemented(); 84 } 85 86 public RowId getRowId(String parameterName) throws SQLException { 87 throw Util.notImplemented(); 88 } 89 90 public void setRowId(String parameterName, RowId x) throws SQLException { 91 throw Util.notImplemented(); 92 } 93 94 95 public void setNString(String parameterName, String value) 96 throws SQLException { 97 throw Util.notImplemented(); 98 } 99 100 public void setNCharacterStream(String parameterName, Reader value, long length) 101 throws SQLException { 102 throw Util.notImplemented(); 103 } 104 105 public void setNClob(String parameterName, NClob value) throws SQLException { 106 throw Util.notImplemented(); 107 } 108 109 public void setClob(String parameterName, Reader reader, long length) 110 throws SQLException { 111 throw Util.notImplemented(); 112 113 } 114 115 public void setBlob(String parameterName, InputStream inputStream, long length) 116 throws SQLException { 117 throw Util.notImplemented(); 118 } 119 120 public void setNClob(String parameterName, Reader reader, long length) 121 throws SQLException { 122 throw Util.notImplemented(); 123 } 124 125 public NClob getNClob(int i) throws SQLException { 126 throw Util.notImplemented(); 127 } 128 129 130 public NClob getNClob(String parameterName) throws SQLException { 131 throw Util.notImplemented(); 132 } 133 134 public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException { 135 throw Util.notImplemented(); 136 137 } 138 139 public SQLXML getSQLXML(int parameterIndex) throws SQLException { 140 throw Util.notImplemented(); 141 } 142 143 public SQLXML getSQLXML(String parametername) throws SQLException { 144 throw Util.notImplemented(); 145 } 146 147 148 149 150 151 154 155 156 public void setRowId(int parameterIndex, RowId x) throws SQLException { 157 throw Util.notImplemented("setRowId(int, RowId)"); 158 } 159 160 public void setNString(int index, String value) throws SQLException { 161 throw Util.notImplemented("setNString (int,value)"); 162 } 163 164 public void setNCharacterStream(int parameterIndex, Reader value) 165 throws SQLException { 166 throw Util.notImplemented(); 167 } 168 169 public void setNCharacterStream(int index, Reader value, long length) throws SQLException { 170 throw Util.notImplemented ("setNCharacterStream (int, Reader, long)"); 171 } 172 173 public void setNClob(int index, NClob value) throws SQLException { 174 throw Util.notImplemented ("setNClob (int, NClob)"); 175 } 176 177 public void setNClob(int parameterIndex, Reader reader) 178 throws SQLException { 179 throw Util.notImplemented(); 180 } 181 182 public void setNClob(int parameterIndex, Reader reader, long length) 183 throws SQLException { 184 throw Util.notImplemented ("setNClob(int,reader,length)"); 185 } 186 187 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { 188 throw Util.notImplemented ("setSQLXML (int, SQLXML)"); 189 } 190 191 202 public ParameterMetaData getParameterMetaData() 203 throws SQLException 204 { 205 checkStatus(); 206 return new EmbedParameterMetaData40( 207 getParms(), preparedStatement.getParameterTypes()); 208 } 209 210 221 public boolean isWrapperFor(Class <?> interfaces) throws SQLException { 222 checkStatus(); 223 return interfaces.isInstance(this); 224 } 225 226 public void setAsciiStream(String parameterName, InputStream x) 227 throws SQLException { 228 throw Util.notImplemented("setAsciiStream(String,InputStream)"); 229 } 230 231 public void setBinaryStream(String parameterName, InputStream x) 232 throws SQLException { 233 throw Util.notImplemented("setBinaryStream(String,InputStream)"); 234 } 235 236 public void setBlob(String parameterName, InputStream inputStream) 237 throws SQLException { 238 throw Util.notImplemented("setBlob(String,InputStream)"); 239 } 240 241 public void setCharacterStream(String parameterName, Reader reader) 242 throws SQLException { 243 throw Util.notImplemented("setCharacterStream(String,Reader)"); 244 } 245 246 public void setClob(String parameterName, Reader reader) 247 throws SQLException { 248 throw Util.notImplemented("setClob(String,Reader)"); 249 } 250 251 public void setNCharacterStream(String parameterName, Reader value) 252 throws SQLException { 253 throw Util.notImplemented("setNCharacterStream(String,Reader)"); 254 } 255 256 public void setNClob(String parameterName, Reader reader) 257 throws SQLException { 258 throw Util.notImplemented("setNClob(String,Reader)"); 259 } 260 261 269 public <T> T unwrap(java.lang.Class <T> interfaces) 270 throws SQLException { 271 checkStatus(); 272 try { 273 return interfaces.cast(this); 274 } catch (ClassCastException cce) { 275 throw newSQLException(SQLState.UNABLE_TO_UNWRAP,interfaces); 276 } 277 } 278 279 289 290 public final void setAsciiStream(String parameterName, InputStream x, long length) 291 throws SQLException { 292 throw Util.notImplemented(); 293 } 294 295 305 306 public final void setBinaryStream(String parameterName, InputStream x, long length) 307 throws SQLException { 308 throw Util.notImplemented(); 309 } 310 311 321 322 public final void setCharacterStream(String parameterName, Reader x, long length) 323 throws SQLException { 324 throw Util.notImplemented(); 325 } 326 } 327 | Popular Tags |