1 21 22 package org.apache.derby.client.am; 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.RowId ; 30 import java.sql.SQLException ; 31 import java.sql.SQLXML ; 32 import org.apache.derby.client.ClientPooledConnection; 33 import org.apache.derby.client.am.SqlException; 34 import org.apache.derby.client.am.ClientMessageId; 35 import org.apache.derby.shared.common.reference.SQLState; 36 37 38 public class CallableStatement40 extends org.apache.derby.client.am.CallableStatement { 39 40 57 public CallableStatement40(Agent agent, 58 Connection connection, 59 String sql, 60 int type, int concurrency, int holdability, 61 ClientPooledConnection cpc) throws SqlException { 62 super(agent, connection, sql, type, concurrency, holdability,cpc); 63 } 64 65 public Reader getCharacterStream(String parameterName) 66 throws SQLException { 67 throw SQLExceptionFactory.notImplemented("getCharacterStream(String)"); 68 } 69 70 public Reader getNCharacterStream(int parameterIndex) 71 throws SQLException { 72 throw SQLExceptionFactory.notImplemented("getNCharacterStream(int)"); 73 } 74 75 public Reader getNCharacterStream(String parameterName) 76 throws SQLException { 77 throw SQLExceptionFactory.notImplemented( 78 "getNCharacterStream(String)"); 79 } 80 81 public String getNString(int parameterIndex) 82 throws SQLException { 83 throw SQLExceptionFactory.notImplemented("getNString(int)"); 84 } 85 86 public String getNString(String parameterIndex) 87 throws SQLException { 88 throw SQLExceptionFactory.notImplemented("getNString(String)"); 89 } 90 91 public RowId getRowId(int parameterIndex) throws SQLException { 92 throw SQLExceptionFactory.notImplemented ("getRowId (int)"); 93 } 94 95 public RowId getRowId(String parameterName) throws SQLException { 96 throw SQLExceptionFactory.notImplemented ("getRowId (String)"); 97 } 98 99 public void setRowId(String parameterName, RowId x) throws SQLException { 100 throw SQLExceptionFactory.notImplemented ("setRowId (String, RowId)"); 101 } 102 103 public void setBlob(String parameterName, Blob x) 104 throws SQLException { 105 throw SQLExceptionFactory.notImplemented("setBlob(String, Blob)"); 106 } 107 108 public void setClob(String parameterName, Clob x) 109 throws SQLException { 110 throw SQLExceptionFactory.notImplemented("setClob(String, Clob)"); 111 } 112 113 public void setNString(String parameterName, String value) 114 throws SQLException { 115 throw SQLExceptionFactory.notImplemented ("setNString (String, String)"); 116 } 117 118 public void setNCharacterStream(String parameterName, Reader value, long length) 119 throws SQLException { 120 throw SQLExceptionFactory.notImplemented ( 121 "setNString (String, Reader, long)"); 122 } 123 124 public void setNClob(String parameterName, NClob value) throws SQLException { 125 throw SQLExceptionFactory.notImplemented ("setNClob (String, NClob)"); 126 } 127 128 public void setClob(String parameterName, Reader reader, long length) 129 throws SQLException { 130 throw SQLExceptionFactory.notImplemented ("setClob (String, Reader, long)"); 131 132 } 133 134 public void setBlob(String parameterName, InputStream inputStream, long length) 135 throws SQLException { 136 throw SQLExceptionFactory.notImplemented ("setBlob (String, InputStream, long)"); 137 } 138 139 public void setNClob(String parameterName, Reader reader, long length) 140 throws SQLException { 141 throw SQLExceptionFactory.notImplemented ("setNClob (String, Reader, long)"); 142 } 143 144 public NClob getNClob(int i) throws SQLException { 145 throw SQLExceptionFactory.notImplemented ("setNClob (int)"); 146 } 147 148 149 public NClob getNClob(String parameterName) throws SQLException { 150 throw SQLExceptionFactory.notImplemented ("setNClob (String)"); 151 } 152 153 public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException { 154 throw SQLExceptionFactory.notImplemented ("setSQLXML (String, SQLXML)"); 155 156 } 157 158 public SQLXML getSQLXML(int parameterIndex) throws SQLException { 159 throw SQLExceptionFactory.notImplemented ("getSQLXML (int)"); 160 } 161 162 public SQLXML getSQLXML(String parametername) throws SQLException { 163 throw SQLExceptionFactory.notImplemented ("getSQLXML (String)"); 164 } 165 166 public void setRowId(int parameterIndex, RowId x) throws SQLException { 167 throw SQLExceptionFactory.notImplemented ("setRowId (int, RowId)"); 168 } 169 170 176 public void setNString(int index, String value) throws SQLException { 177 throw SQLExceptionFactory.notImplemented ("setNString (int, String)"); 178 } 179 180 public void setNCharacterStream(int parameterIndex, Reader value) 181 throws SQLException { 182 throw SQLExceptionFactory.notImplemented("setNCharacterStream" + 183 "(int,Reader)"); 184 } 185 186 public void setNCharacterStream(int index, Reader value, long length) throws SQLException { 187 throw SQLExceptionFactory.notImplemented ("setNCharacterStream " + 188 "(int,Reader,long)"); 189 } 190 191 public void setNClob(int index, NClob value) throws SQLException { 192 throw SQLExceptionFactory.notImplemented ("setNClob (int, NClob)"); 193 } 194 195 public void setNClob(int parameterIndex, Reader reader) 196 throws SQLException { 197 throw SQLExceptionFactory.notImplemented("setNClob(int,Reader)"); 198 } 199 200 public void setNClob(int parameterIndex, Reader reader, long length) 201 throws SQLException { 202 throw SQLExceptionFactory.notImplemented ("setNClob (int, " + 203 "Reader, long)"); 204 } 205 206 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { 207 throw SQLExceptionFactory.notImplemented ("setSQLXML (int, SQLXML)"); 208 } 209 210 213 214 public void setAsciiStream(String parameterName, InputStream x) 215 throws SQLException { 216 throw SQLExceptionFactory.notImplemented( 217 "setAsciiStream(String,InputStream)"); 218 } 219 220 public void setBinaryStream(String parameterName, InputStream x) 221 throws SQLException { 222 throw SQLExceptionFactory.notImplemented( 223 "setBinaryStream(String,InputStream)"); 224 } 225 226 public void setBlob(String parameterName, InputStream inputStream) 227 throws SQLException { 228 throw SQLExceptionFactory.notImplemented( 229 "setBlob(String,InputStream)"); 230 } 231 232 public void setCharacterStream(String parameterName, Reader reader) 233 throws SQLException { 234 throw SQLExceptionFactory.notImplemented( 235 "setCharacterStream(String,Reader)"); 236 } 237 238 public void setClob(String parameterName, Reader reader) 239 throws SQLException { 240 throw SQLExceptionFactory.notImplemented("setClob(String,Reader)"); 241 } 242 243 public void setNCharacterStream(String parameterName, Reader value) 244 throws SQLException { 245 throw SQLExceptionFactory.notImplemented( 246 "setNCharacterStream(String,Reader)"); 247 } 248 249 public void setNClob(String parameterName, Reader reader) 250 throws SQLException { 251 throw SQLExceptionFactory.notImplemented("setNClob(String,Reader)"); 252 } 253 254 262 public <T> T unwrap(java.lang.Class <T> interfaces) 263 throws SQLException { 264 try { 265 checkForClosedStatement(); 266 return interfaces.cast(this); 267 } catch (ClassCastException cce) { 268 throw new SqlException(null, new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 269 interfaces).getSQLException(); 270 } catch (SqlException se) { 271 throw se.getSQLException(); 272 } 273 } 274 275 276 286 287 public final void setAsciiStream(String parameterName, InputStream x, long length) 288 throws SQLException { 289 throw SQLExceptionFactory.notImplemented ("setAsciiStream(String,InputStream,long)"); 290 } 291 292 302 303 public final void setBinaryStream(String parameterName, InputStream x, long length) 304 throws SQLException { 305 throw SQLExceptionFactory.notImplemented ("setBinaryStream(String,InputStream,long)"); 306 } 307 308 318 319 public final void setCharacterStream(String parameterName, Reader x, long length) 320 throws SQLException { 321 throw SQLExceptionFactory.notImplemented ("setCharacterStream(String,Reader,long)"); 322 } 323 } 324 | Popular Tags |