1 21 22 package org.apache.derby.client.net; 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.client.am.SQLExceptionFactory; 31 import org.apache.derby.iapi.sql.ResultSet; 32 import org.apache.derby.client.am.Cursor; 33 import org.apache.derby.client.am.ClientMessageId; 34 import org.apache.derby.client.am.SqlException; 35 import org.apache.derby.shared.common.reference.SQLState; 36 37 38 public class NetResultSet40 extends NetResultSet{ 39 40 NetResultSet40(NetAgent netAgent, 41 NetStatement netStatement, 42 Cursor cursor, 43 int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, 53 int actualResultSetConcurrency, 54 int actualResultSetHoldability) { 56 super(netAgent, netStatement, cursor, qryprctyp, sqlcsrhld, qryattscr, 57 qryattsns, qryattset, qryinsid, actualResultSetType, 58 actualResultSetConcurrency, actualResultSetHoldability); 59 } 60 61 public Reader getNCharacterStream(int columnIndex) 62 throws SQLException { 63 throw SQLExceptionFactory.notImplemented("getNCharacterStream(int)"); 64 } 65 66 public Reader getNCharacterStream(String columnName) 67 throws SQLException { 68 throw SQLExceptionFactory.notImplemented("getNCharacterStream(String)"); 69 } 70 71 public String getNString(int columnIndex) 72 throws SQLException { 73 throw SQLExceptionFactory.notImplemented("getNString(int)"); 74 } 75 76 public String getNString(String columnName) 77 throws SQLException { 78 throw SQLExceptionFactory.notImplemented("getNString(String)"); 79 } 80 81 public RowId getRowId(int columnIndex) throws SQLException { 82 throw SQLExceptionFactory.notImplemented ("getRowId (int)"); 83 } 84 85 86 public RowId getRowId(String columnName) throws SQLException { 87 throw SQLExceptionFactory.notImplemented ("getRowId (String)"); 88 } 89 90 public void updateRowId(int columnIndex, RowId x) throws SQLException { 91 throw SQLExceptionFactory.notImplemented ("updateRowId (int, RowId)"); 92 } 93 94 public void updateRowId(String columnName, RowId x) throws SQLException { 95 throw SQLExceptionFactory.notImplemented ("updateRowId (String, RowId)"); 96 } 97 98 public void updateNString(int columnIndex, String nString) throws SQLException { 99 throw SQLExceptionFactory.notImplemented ("updateNString (int, String)"); 100 } 101 102 public void updateNString(String columnName, String nString) throws SQLException { 103 throw SQLExceptionFactory.notImplemented ("updateNString (String, String)"); 104 } 105 106 public void updateNCharacterStream(int columnIndex, Reader x, long length) 107 throws SQLException { 108 throw SQLExceptionFactory.notImplemented( 109 "updateNCharacterStream(int,Reader,long)"); 110 } 111 112 public void updateNCharacterStream(String columnName, Reader x, long length) 113 throws SQLException { 114 throw SQLExceptionFactory.notImplemented( 115 "updateNCharacterStream(String,Reader,long)"); 116 } 117 118 public void updateNClob(int columnIndex, NClob nClob) throws SQLException { 119 throw SQLExceptionFactory.notImplemented ("updateNClob (int, NClob)"); 120 } 121 122 public void updateNClob(String columnName, NClob nClob) throws SQLException { 123 throw SQLExceptionFactory.notImplemented ("updateNClob (String, NClob)"); 124 } 125 126 public NClob getNClob(int i) throws SQLException { 127 throw SQLExceptionFactory.notImplemented ("getNClob (int)"); 128 } 129 130 public NClob getNClob(String colName) throws SQLException { 131 throw SQLExceptionFactory.notImplemented ("getNClob (String)"); 132 } 133 134 public SQLXML getSQLXML(int columnIndex) throws SQLException { 135 throw SQLExceptionFactory.notImplemented ("getSQLXML (int)"); 136 } 137 138 public SQLXML getSQLXML(String colName) throws SQLException { 139 throw SQLExceptionFactory.notImplemented ("getSQLXML (String)"); 140 } 141 142 public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { 143 throw SQLExceptionFactory.notImplemented ("updateSQLXML (int, SQLXML)"); 144 } 145 146 public void updateSQLXML(String columnName, SQLXML xmlObject) throws SQLException { 147 throw SQLExceptionFactory.notImplemented ("updateSQLXML (String, SQLXML)"); 148 } 149 150 161 public boolean isWrapperFor(Class <?> interfaces) throws SQLException { 162 try { 163 checkForClosedResultSet(); 164 } catch (SqlException se) { 165 throw se.getSQLException(); 166 } 167 return interfaces.isInstance(this); 168 } 169 170 178 public <T> T unwrap(java.lang.Class <T> interfaces) 179 throws SQLException { 180 try { 181 checkForClosedResultSet(); 182 return interfaces.cast(this); 183 } catch (ClassCastException cce) { 184 throw new SqlException(null, 185 new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 186 interfaces).getSQLException(); 187 } catch (SqlException se) { 188 throw se.getSQLException(); 189 } 190 } 191 192 207 public void updateBlob(int columnIndex, InputStream x, long length) 208 throws SQLException { 209 throw SQLExceptionFactory.notImplemented("updateBlob(int,InputStream,long)"); 210 } 211 212 227 228 public void updateBlob(String columnName, InputStream x, long length) 229 throws SQLException { 230 throw SQLExceptionFactory.notImplemented("updateBlob(String,inputStream,long)"); 231 } 232 233 246 public void updateClob(int columnIndex, Reader x, long length) 247 throws SQLException { 248 throw SQLExceptionFactory.notImplemented("updateClob(int,Reader,long)"); 249 } 250 251 264 265 public void updateClob(String columnName, InputStream x, long length) 266 throws SQLException { 267 throw SQLExceptionFactory.notImplemented("updateClob(String,InputStream,long)"); 268 } 269 270 283 284 public void updateClob(String columnName, Reader x, long length) 285 throws SQLException { 286 throw SQLExceptionFactory.notImplemented("updateClob(String,Reader,long)"); 287 } 288 289 302 public void updateNClob(int columnIndex, Reader x, long length) 303 throws SQLException { 304 throw SQLExceptionFactory.notImplemented("updateNClob(int,Reader,long)"); 305 } 306 307 320 321 public void updateNClob(String columnName, InputStream x, long length) 322 throws SQLException { 323 throw SQLExceptionFactory.notImplemented("updateNClob(String,InputStream,long)"); 324 } 325 326 339 340 public void updateNClob(String columnName, Reader x, long length) 341 throws SQLException { 342 throw SQLExceptionFactory.notImplemented("updateNClob(String,Reader,long)"); 343 } 344 } 345 | Popular Tags |