type was not being initialized since the else part was also commented
[csql/przemoc.git] / src / jdbc / JdbcSqlResultSet.java
blobbff08d7d8400e83ea2b85d7b01321b026c4ea9e0
2 package csql.jdbc;
4 import java.math.BigDecimal;
5 import java.net.URL;
7 import java.sql.Connection;
8 import java.sql.Statement;
9 import java.sql.SQLException;
10 import java.sql.ResultSet;
11 import java.sql.ResultSetMetaData;
12 import java.sql.SQLWarning;
14 import java.io.InputStream;
15 import java.io.InputStreamReader;
16 import java.io.StringBufferInputStream;
18 import java.sql.Clob;
19 import java.sql.Blob;
20 import java.sql.Ref;
21 import java.sql.Array;
22 import java.sql.Types;
24 import java.sql.RowId;
25 import java.sql.SQLXML;
26 import java.io.Reader;
27 import java.sql.NClob;
28 import java.sql.Wrapper;
30 public class JdbcSqlResultSet extends JSqlError implements ResultSet, JSqlErrorType
32 public JdbcSqlStatement stmt; // This guy creates me
33 public JdbcSqlResultSetMetaData rsmd;
35 public boolean closedFlag;
36 long curRow;
37 int pos=0;
39 JdbcSqlResultSet()
41 rsmd = new JdbcSqlResultSetMetaData();
42 closedFlag = false;
43 curRow = -1;
45 void setStmt( JdbcSqlStatement jdbcStmt )
47 stmt = jdbcStmt;
48 rsmd.setStmt( jdbcStmt );
49 closedFlag = false;
50 curRow = -1;
52 protected void finalize ()
54 try
56 if(!closedFlag) close();
58 catch(SQLException e)
60 System.out.println(e);
64 // API's
65 public void close() throws SQLException
67 if( closedFlag ) return;
69 closedFlag = true;
70 curRow = -1;
71 //rsmd.close(); //commented by praba
72 //after close the app can reexecute.
73 if (stmt != null) stmt.closeScan();
74 return;
77 // Move to next tuple
78 public boolean next () throws SQLException
80 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
82 if( 0 == stmt.jniStmt.next() )
84 curRow = -2;
85 return( false );
87 curRow += 1;
89 return( true );
91 public ResultSetMetaData getMetaData () throws SQLException
93 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
94 return( rsmd );
96 public SQLWarning getWarnings() throws SQLException
98 return( null );
100 public void clearWarnings() throws SQLException
102 return;
104 public int findColumn (String colName) throws SQLException
106 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
108 int colnum = stmt.jniStmt.findColumn( colName );
109 return( colnum );
111 public int getType() throws SQLException
113 return( ResultSet.TYPE_FORWARD_ONLY );
115 public int getConcurrency() throws SQLException
117 return( ResultSet.CONCUR_READ_ONLY );
119 public Statement getStatement() throws SQLException
121 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
122 return( stmt );
124 public boolean isFirst() throws SQLException
126 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
128 if( curRow == 0 )
129 return( true );
131 return( false );
133 public boolean isBeforeFirst() throws SQLException
135 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
137 if( curRow == -1 )
138 return( true );
140 return( false );
142 public boolean isAfterLast() throws SQLException
144 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
146 if( curRow == -2 )
147 return( true );
149 return( false );
152 // Provide data to application
153 // SHORT
154 public short getShort (int colNum ) throws SQLException
156 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
158 short out = stmt.jniStmt.getShort( colNum - 1 );
159 if( false ) throw new SQLException();
160 pos = colNum;
161 return out;
163 public short getShort (String colName ) throws SQLException
165 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
166 return( getShort( findColumn( colName ) ) );
169 // INTEGER
170 public int getInt (int colNum ) throws SQLException
172 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
174 int out = stmt.jniStmt.getInt( colNum - 1 );
175 if( false ) throw new SQLException();
176 pos = colNum;
177 return out;
179 public int getInt (String colName) throws SQLException
181 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
182 return( getInt( findColumn( colName ) ) );
185 // LONG
186 public long getLong (int colNum) throws SQLException
188 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
190 long out = stmt.jniStmt.getLong( colNum-1 );
191 if( false ) throw new SQLException();
192 pos = colNum;
193 return out;
195 public long getLong (String colName) throws SQLException
197 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
198 return( getLong( findColumn( colName ) ) );
201 // BYTE
202 public byte getByte (int colNum) throws SQLException
204 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
206 byte out = stmt.jniStmt.getByte( colNum-1 );
207 if( false ) throw new SQLException();
208 pos = colNum;
209 return out;
211 public byte getByte (String colName) throws SQLException
213 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
214 return( getByte( findColumn( colName ) ) );
217 // FLOAT
218 public float getFloat (int colNum) throws SQLException
220 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
222 float out = stmt.jniStmt.getFloat( colNum-1 );
223 if( false ) throw new SQLException();
224 pos = colNum;
225 return out;
227 public float getFloat (String colName) throws SQLException
229 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
230 return( getFloat( findColumn( colName ) ) );
233 // DOUBLE
234 public double getDouble (int colNum) throws SQLException
236 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
238 double out = stmt.jniStmt.getDouble( colNum-1 );
239 if( false ) throw new SQLException();
240 pos = colNum;
241 return out;
243 public double getDouble (String colName) throws SQLException
245 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
246 return( getDouble( findColumn( colName ) ) );
249 // DECIMAL
250 public BigDecimal getBigDecimal( int colNum )
251 throws SQLException
253 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
255 throw getException( CSQL_NOT_SUPPORTED );
257 // TODO
258 // BigDecimal out = new BigDecimal( stmt.jniStmt.getBigDecimal( colNum-1 ) );
259 //return out;
261 public BigDecimal getBigDecimal(String colName)
262 throws SQLException
264 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
265 return( getBigDecimal( findColumn( colName ) ) );
267 public BigDecimal getBigDecimal (int colNum, int scale)
268 throws SQLException
270 return( getBigDecimal( colNum ) );
272 public BigDecimal getBigDecimal (String colName, int scale)
273 throws SQLException
275 return( getBigDecimal( colName ) );
278 // STRING/VARSTRING
279 public String getString(int colNum) throws SQLException
281 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
283 // Get value
284 String out = stmt.jniStmt.getString( colNum-1 );
285 pos = colNum;
286 return out;
288 public String getString (String colName) throws SQLException
290 return( getString( findColumn( colName ) ) );
292 public InputStream getAsciiStream(int colNum) throws SQLException
294 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
296 String out = stmt.jniStmt.getString( colNum-1 );
297 pos = colNum;
298 return( new StringBufferInputStream( out ) );
300 public java.io.InputStream getAsciiStream (String colName) throws SQLException
302 return( getAsciiStream( findColumn( colName ) ) );
304 public java.io.Reader getCharacterStream(int colNum)
305 throws SQLException
307 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
309 InputStream iS = getAsciiStream( colNum );
310 if( iS == null )
311 return( null );
312 pos = colNum;
313 return( new InputStreamReader( iS ) );
315 public java.io.Reader getCharacterStream(String colName)
316 throws SQLException
318 return( getCharacterStream( findColumn( colName ) ) );
321 // BOOLEAN
322 public boolean getBoolean (int colNum) throws SQLException
324 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
326 boolean out = stmt.jniStmt.getBoolean( colNum-1 );
327 pos = colNum;
328 return out;
330 public boolean getBoolean (String colName) throws SQLException
332 return( getBoolean( findColumn( colName ) ) );
335 // BINARY/VARBINARY
336 public byte [] getBytes(int colNum) throws SQLException
338 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
340 throw getException( CSQL_NOT_SUPPORTED );
341 //byte[] out = stmt.jniStmt.getBytes( colNum-1 );
342 //return out;
344 public byte[] getBytes (String colName) throws SQLException
346 return( getBytes( findColumn( colName ) ) );
349 // DATE
350 public java.sql.Date getDate (int colNum) throws SQLException
352 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
354 java.sql.Date out = stmt.jniStmt.getDate( colNum-1 );
355 pos = colNum;
356 return out;
358 public java.sql.Date getDate(int colNum, java.util.Calendar cal)
359 throws SQLException
361 return( getDate( colNum ) );
363 public java.sql.Date getDate (String colNum) throws SQLException
365 return( getDate( findColumn( colNum ) ) );
367 public java.sql.Date getDate(String colName, java.util.Calendar cal)
368 throws SQLException
370 return( getDate( colName ) );
373 // TIME
374 public java.sql.Time getTime (int colNum) throws SQLException
376 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
378 // Get value
379 java.sql.Time out = stmt.jniStmt.getTime( colNum-1 );
380 pos = colNum;
381 return out;
383 public java.sql.Time getTime(int colNum, java.util.Calendar cal)
384 throws SQLException
386 return( getTime( colNum ) );
388 public java.sql.Time getTime (String colName) throws SQLException
390 return( getTime( findColumn( colName ) ) );
392 public java.sql.Time getTime(String colName, java.util.Calendar cal)
393 throws SQLException
395 return( getTime( colName ) );
398 // TIMESTAMP
399 public java.sql.Timestamp getTimestamp (int colNum)
400 throws SQLException
402 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
404 java.sql.Timestamp out = stmt.jniStmt.getTimestamp( colNum-1 );
405 pos = colNum;
406 return out;
408 public java.sql.Timestamp getTimestamp(int colNum,
409 java.util.Calendar cal) throws SQLException
411 return( getTimestamp( colNum ) );
413 public java.sql.Timestamp getTimestamp (String colName)
414 throws SQLException
416 return( getTimestamp( findColumn( colName ) ) );
418 public java.sql.Timestamp getTimestamp(String colName,
419 java.util.Calendar cal) throws SQLException
421 return( getTimestamp( colName ) );
424 public Object getObject(int colNum) throws SQLException
426 Object obj = new String("no obj");
428 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
430 switch ( rsmd.getColumnType( colNum ) )
432 case Types.DOUBLE:
433 obj = new Double( getDouble( colNum ) ); break;
434 case Types.FLOAT:
435 obj = new Float( getFloat( colNum ) ); break;
436 case Types.DECIMAL:
437 case Types.NUMERIC:
438 obj = getBigDecimal( colNum ); break;
440 case Types.BIGINT:
441 obj = new Long( getLong( colNum ) ); break;
442 case Types.INTEGER:
443 obj = new Integer( getInt( colNum ) ); break;
444 case Types.SMALLINT:
445 obj = new Short( getShort( colNum ) ); break;
446 case Types.TINYINT:
447 obj = new Byte( getByte( colNum ) ); break;
448 case Types.BIT:
449 obj = new Boolean( getBoolean( colNum ) ); break;
451 case Types.DATE:
452 obj = getDate( colNum ); break;
453 case Types.TIME:
454 obj = getTime( colNum ); break;
455 case Types.TIMESTAMP:
456 obj = getTimestamp( colNum ); break;
458 case Types.CHAR:
459 obj = getString( colNum ); break;
460 case Types.VARCHAR:
461 obj = getString( colNum ); break;
462 case Types.BINARY:
463 case Types.VARBINARY:
464 obj = getBytes( colNum ); break;
466 default: throw getException( CSQL_INVALID_DATATYPE );
468 // Return null if value read is null //TODO
469 //if( wasNull() )
470 // return( null );
471 pos = colNum;
472 return( obj );
474 public Object getObject (String colName) throws SQLException
476 return( getObject( findColumn( colName ) ) );
478 public Object getObject(int i, java.util.Map map) throws SQLException
480 return( getObject( i ) );
482 public Object getObject(String colName, java.util.Map map)
483 throws SQLException
485 return( getObject( colName ) );
488 public int getRow() throws SQLException
490 if( curRow < 0 )
491 return( 0 );
493 return( (int) curRow + 1 );
496 // UN-SUPPORTED API's
497 public boolean wasNull () throws SQLException // TODO
499 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
500 //throw getException( CSQL_NOT_SUPPORTED );
501 return( stmt.jniStmt.isNull(pos) );
503 public String getCursorName () throws SQLException
505 throw getException( CSQL_NOT_SUPPORTED );
507 public boolean absolute( int row ) throws SQLException
509 throw getException( CSQL_NOT_SUPPORTED );
511 public void beforeFirst() throws SQLException
513 throw getException( CSQL_NOT_SUPPORTED );
515 public void afterLast() throws SQLException
517 throw getException( CSQL_NOT_SUPPORTED );
519 public boolean first() throws SQLException
521 throw getException( CSQL_NOT_SUPPORTED );
523 public boolean last() throws SQLException
525 throw getException( CSQL_NOT_SUPPORTED );
527 public boolean relative( int rows ) throws SQLException
529 throw getException( CSQL_NOT_SUPPORTED );
531 public boolean previous() throws SQLException
533 throw getException( CSQL_NOT_SUPPORTED );
535 public void setFetchDirection(int direction) throws SQLException
537 throw getException( CSQL_NOT_SUPPORTED );
539 public int getFetchDirection() throws SQLException
541 throw getException( CSQL_NOT_SUPPORTED );
543 public void setFetchSize(int rows) throws SQLException
545 throw getException( CSQL_NOT_SUPPORTED );
547 public int getFetchSize() throws SQLException
549 throw getException( CSQL_NOT_SUPPORTED );
551 public InputStream getUnicodeStream(int colNum) throws SQLException
553 throw getException( CSQL_NOT_SUPPORTED );
555 public InputStream getBinaryStream(int colNum) throws SQLException
557 throw getException( CSQL_NOT_SUPPORTED );
559 public java.io.InputStream getUnicodeStream (String colName) throws SQLException
561 throw getException( CSQL_NOT_SUPPORTED );
563 public java.io.InputStream getBinaryStream (String colName) throws SQLException
565 throw getException( CSQL_NOT_SUPPORTED );
567 public void setMaxRows(int maxRows) throws SQLException
569 throw getException( CSQL_NOT_SUPPORTED );
571 public void setMaxFieldSize(int maxFieldSize) throws SQLException
573 throw getException( CSQL_NOT_SUPPORTED );
575 public boolean rowUpdated() throws SQLException
577 throw getException( CSQL_NOT_SUPPORTED );
579 public boolean rowInserted() throws SQLException
581 throw getException( CSQL_NOT_SUPPORTED );
583 public boolean rowDeleted() throws SQLException
585 throw getException( CSQL_NOT_SUPPORTED );
587 public void updateNull(int colNum) throws SQLException
589 throw getException( CSQL_NOT_SUPPORTED );
591 public void updateBoolean(int colNum, boolean x) throws SQLException
593 throw getException( CSQL_NOT_SUPPORTED );
595 public void updateByte(int colNum, byte x) throws SQLException
597 throw getException( CSQL_NOT_SUPPORTED );
599 public void updateShort(int colNum, short x) throws SQLException
601 throw getException( CSQL_NOT_SUPPORTED );
603 public void updateInt(int colNum, int x) throws SQLException
605 throw getException( CSQL_NOT_SUPPORTED );
607 public void updateLong(int colNum, long x) throws SQLException
609 throw getException( CSQL_NOT_SUPPORTED );
611 public void updateFloat(int colNum, float x) throws SQLException
613 throw getException( CSQL_NOT_SUPPORTED );
615 public void updateDouble(int colNum, double x) throws SQLException
617 throw getException( CSQL_NOT_SUPPORTED );
619 public void updateBigDecimal(int colNum, BigDecimal x) throws SQLException
621 throw getException( CSQL_NOT_SUPPORTED );
623 public void updateString(int colNum, String x) throws SQLException
625 throw getException( CSQL_NOT_SUPPORTED );
627 public void updateBytes(int colNum, byte x[]) throws SQLException
629 throw getException( CSQL_NOT_SUPPORTED );
631 public void updateDate(int colNum, java.sql.Date x) throws SQLException
633 throw getException( CSQL_NOT_SUPPORTED );
635 public void updateTime(int colNum, java.sql.Time x) throws SQLException
637 throw getException( CSQL_NOT_SUPPORTED );
639 public void updateTimestamp(int colNum, java.sql.Timestamp x)
640 throws SQLException
642 throw getException( CSQL_NOT_SUPPORTED );
644 public void updateAsciiStream(int colNum,
645 java.io.InputStream x, int length) throws SQLException
647 throw getException( CSQL_NOT_SUPPORTED );
649 public void updateBinaryStream(int colNum,
650 java.io.InputStream x, int length) throws SQLException
652 throw getException( CSQL_NOT_SUPPORTED );
654 public void updateCharacterStream(int colNum,
655 java.io.Reader x, int length) throws SQLException
657 throw getException( CSQL_NOT_SUPPORTED );
659 public void updateNull(String colName) throws SQLException
661 throw getException( CSQL_NOT_SUPPORTED );
663 public void updateBoolean(String colName, boolean x) throws SQLException
665 throw getException( CSQL_NOT_SUPPORTED );
667 public void updateByte(String colName, byte x) throws SQLException
669 throw getException( CSQL_NOT_SUPPORTED );
671 public void updateShort(String colName, short x) throws SQLException
673 throw getException( CSQL_NOT_SUPPORTED );
675 public void updateInt(String colName, int x) throws SQLException
677 throw getException( CSQL_NOT_SUPPORTED );
679 public void updateLong(String colName, long x) throws SQLException
681 throw getException( CSQL_NOT_SUPPORTED );
683 public void updateFloat(String colName, float x) throws SQLException
685 throw getException( CSQL_NOT_SUPPORTED );
687 public void updateDouble(String colName, double x) throws SQLException
689 throw getException( CSQL_NOT_SUPPORTED );
691 public void updateBigDecimal(String colName, BigDecimal x)
692 throws SQLException
694 throw getException( CSQL_NOT_SUPPORTED );
696 public void updateString(String colName, String x) throws SQLException
698 throw getException( CSQL_NOT_SUPPORTED );
700 public void updateBytes(String colName, byte x[]) throws SQLException
702 throw getException( CSQL_NOT_SUPPORTED );
704 public void updateDate(String colName, java.sql.Date x) throws SQLException
706 throw getException( CSQL_NOT_SUPPORTED );
708 public void updateTime(String colName, java.sql.Time x) throws SQLException
710 throw getException( CSQL_NOT_SUPPORTED );
712 public void updateTimestamp(String colName, java.sql.Timestamp x)
713 throws SQLException
715 throw getException( CSQL_NOT_SUPPORTED );
717 public void updateAsciiStream(String colName,
718 java.io.InputStream x, int length) throws SQLException
720 throw getException( CSQL_NOT_SUPPORTED );
722 public void updateBinaryStream(String colName,
723 java.io.InputStream x, int length) throws SQLException
725 throw getException( CSQL_NOT_SUPPORTED );
727 public void updateCharacterStream(String colName,
728 java.io.Reader reader, int length) throws SQLException
730 throw getException( CSQL_NOT_SUPPORTED );
732 public void updateObject(int colNum, Object x, int scale)
733 throws SQLException
735 throw getException( CSQL_NOT_SUPPORTED );
737 public void updateObject(int colNum, Object x) throws SQLException
739 throw getException( CSQL_NOT_SUPPORTED );
741 public void insertRow() throws SQLException
743 throw getException( CSQL_NOT_SUPPORTED );
745 public void updateRow() throws SQLException
747 throw getException( CSQL_NOT_SUPPORTED );
749 public void deleteRow() throws SQLException
751 throw getException( CSQL_NOT_SUPPORTED );
753 public void refreshRow() throws SQLException
755 throw getException( CSQL_NOT_SUPPORTED );
757 public void cancelRowUpdates() throws SQLException
759 throw getException( CSQL_NOT_SUPPORTED );
761 public void moveToInsertRow() throws SQLException
763 throw getException( CSQL_NOT_SUPPORTED );
765 public void moveToCurrentRow() throws SQLException
767 throw getException( CSQL_NOT_SUPPORTED );
769 public Ref getRef(int i) throws SQLException
771 throw getException( CSQL_NOT_SUPPORTED );
773 public Blob getBlob(int i) throws SQLException
775 throw getException( CSQL_NOT_SUPPORTED );
777 public Clob getClob(int i) throws SQLException
779 throw getException( CSQL_NOT_SUPPORTED );
781 public Array getArray(int i) throws SQLException
783 throw getException( CSQL_NOT_SUPPORTED );
785 public Ref getRef(String colName) throws SQLException
787 throw getException( CSQL_NOT_SUPPORTED );
789 public Blob getBlob(String colName) throws SQLException
791 throw getException( CSQL_NOT_SUPPORTED );
793 public Clob getClob(String colName) throws SQLException
795 throw getException( CSQL_NOT_SUPPORTED );
797 public Array getArray(String colName) throws SQLException
799 throw getException( CSQL_NOT_SUPPORTED );
801 public boolean isLast() throws SQLException
803 throw getException( CSQL_NOT_SUPPORTED );
805 public void updateObject(String colName, Object x) throws SQLException
807 throw getException( CSQL_NOT_SUPPORTED );
809 public void updateObject(String colName, Object x, int scale)
810 throws SQLException
812 throw getException( CSQL_NOT_SUPPORTED );
814 public URL getURL(int colNum)
815 throws SQLException
817 throw getException( CSQL_NOT_SUPPORTED );
819 public URL getURL(String colName)
820 throws SQLException
822 throw getException( CSQL_NOT_SUPPORTED );
824 public void updateRef(int colNum, Ref x)
825 throws SQLException
827 throw getException( CSQL_NOT_SUPPORTED );
829 public void updateRef(String colName, Ref x)
830 throws SQLException
832 throw getException( CSQL_NOT_SUPPORTED );
834 public void updateBlob(int colNum, Blob x)
835 throws SQLException
837 throw getException( CSQL_NOT_SUPPORTED );
839 public void updateBlob(String colName, Blob x)
840 throws SQLException
842 throw getException( CSQL_NOT_SUPPORTED );
844 public void updateClob(int colNum, Clob x)
845 throws SQLException
847 throw getException( CSQL_NOT_SUPPORTED );
849 public void updateClob(String colName, Clob x)
850 throws SQLException
852 throw getException( CSQL_NOT_SUPPORTED );
854 public void updateArray(int colNum, Array x)
855 throws SQLException
857 throw getException( CSQL_NOT_SUPPORTED );
859 public void updateArray(String colName, Array x)
860 throws SQLException
862 throw getException( CSQL_NOT_SUPPORTED );
864 //java 1.6 methods
865 public void updateRowId(int colIndex, RowId x)
866 throws SQLException
868 throw getException( CSQL_NOT_SUPPORTED );
870 public void updateRowId(String colLabel, RowId x)
871 throws SQLException
873 throw getException( CSQL_NOT_SUPPORTED );
875 public void updateSQLXML(int colIndex, SQLXML x)
876 throws SQLException
878 throw getException( CSQL_NOT_SUPPORTED );
880 public void updateSQLXML(String colLabel, SQLXML x)
881 throws SQLException
883 throw getException( CSQL_NOT_SUPPORTED );
885 public void updateNClob(int colIndex, NClob x)
886 throws SQLException
888 throw getException( CSQL_NOT_SUPPORTED );
890 public void updateNClob(int colIndex, Reader x)
891 throws SQLException
893 throw getException( CSQL_NOT_SUPPORTED );
895 public void updateNClob(int colIndex, Reader x, long length)
896 throws SQLException
898 throw getException( CSQL_NOT_SUPPORTED );
900 public void updateNClob(String colIndex, NClob x)
901 throws SQLException
903 throw getException( CSQL_NOT_SUPPORTED );
905 public void updateNClob(String colIndex, Reader x)
906 throws SQLException
908 throw getException( CSQL_NOT_SUPPORTED );
910 public void updateNClob(String colIndex, Reader x, long length)
911 throws SQLException
913 throw getException( CSQL_NOT_SUPPORTED );
915 public void updateNString(int colIndex, String x)
916 throws SQLException
918 throw getException( CSQL_NOT_SUPPORTED );
920 public void updateNString(String colIndex, String x)
921 throws SQLException
923 throw getException( CSQL_NOT_SUPPORTED );
925 public void updateNCharacterStream(int colIndex, Reader x)
926 throws SQLException
928 throw getException( CSQL_NOT_SUPPORTED );
930 public void updateNCharacterStream(int colIndex, Reader x, long length)
931 throws SQLException
933 throw getException( CSQL_NOT_SUPPORTED );
935 public void updateNCharacterStream(String colIndex, Reader x)
936 throws SQLException
938 throw getException( CSQL_NOT_SUPPORTED );
940 public void updateNCharacterStream(String colIndex, Reader x, long length)
941 throws SQLException
943 throw getException( CSQL_NOT_SUPPORTED );
945 public void updateCharacterStream(int colIndex, Reader x)
946 throws SQLException
948 throw getException( CSQL_NOT_SUPPORTED );
950 public void updateCharacterStream(String colIndex, Reader x)
951 throws SQLException
953 throw getException( CSQL_NOT_SUPPORTED );
955 public void updateCharacterStream(int colIndex, Reader x, long length)
956 throws SQLException
958 throw getException( CSQL_NOT_SUPPORTED );
960 public void updateCharacterStream(String colIndex, Reader x, long length)
961 throws SQLException
963 throw getException( CSQL_NOT_SUPPORTED );
965 public void updateBinaryStream(int colIndex, InputStream x)
966 throws SQLException
968 throw getException( CSQL_NOT_SUPPORTED );
970 public void updateBinaryStream(String colIndex, InputStream x)
971 throws SQLException
973 throw getException( CSQL_NOT_SUPPORTED );
975 public void updateBinaryStream(int colIndex, InputStream x, long length)
976 throws SQLException
978 throw getException( CSQL_NOT_SUPPORTED );
980 public void updateBinaryStream(String colIndex, InputStream x, long length)
981 throws SQLException
983 throw getException( CSQL_NOT_SUPPORTED );
985 public void updateAsciiStream(int colIndex, InputStream x)
986 throws SQLException
988 throw getException( CSQL_NOT_SUPPORTED );
990 public void updateAsciiStream(String colIndex, InputStream x)
991 throws SQLException
993 throw getException( CSQL_NOT_SUPPORTED );
995 public void updateAsciiStream(int colIndex, InputStream x, long length)
996 throws SQLException
998 throw getException( CSQL_NOT_SUPPORTED );
1000 public void updateAsciiStream(String colIndex, InputStream x, long length)
1001 throws SQLException
1003 throw getException( CSQL_NOT_SUPPORTED );
1005 public void updateClob(int colNum, Reader x) throws SQLException
1007 throw getException( CSQL_NOT_SUPPORTED );
1009 public void updateClob(String colNum, Reader x) throws SQLException
1011 throw getException( CSQL_NOT_SUPPORTED );
1013 public void updateClob(int colNum, Reader x, long length)
1014 throws SQLException
1016 throw getException( CSQL_NOT_SUPPORTED );
1018 public void updateClob(String colNum, Reader x, long length)
1019 throws SQLException
1021 throw getException( CSQL_NOT_SUPPORTED );
1023 public void updateBlob(int colNum, InputStream x) throws SQLException
1025 throw getException( CSQL_NOT_SUPPORTED );
1027 public void updateBlob(String colNum, InputStream x) throws SQLException
1029 throw getException( CSQL_NOT_SUPPORTED );
1031 public void updateBlob(int colNum, InputStream x, long length)
1032 throws SQLException
1034 throw getException( CSQL_NOT_SUPPORTED );
1036 public void updateBlob(String colNum, InputStream x, long length)
1037 throws SQLException
1039 throw getException( CSQL_NOT_SUPPORTED );
1041 public Reader getNCharacterStream(int colIndex) throws SQLException
1043 throw getException( CSQL_NOT_SUPPORTED );
1045 public Reader getNCharacterStream(String colLabel) throws SQLException
1047 throw getException( CSQL_NOT_SUPPORTED );
1049 public NClob getNClob(int colIndex) throws SQLException
1051 throw getException( CSQL_NOT_SUPPORTED );
1053 public NClob getNClob(String colLabel) throws SQLException
1055 throw getException( CSQL_NOT_SUPPORTED );
1057 public String getNString(int colIndex) throws SQLException
1059 throw getException( CSQL_NOT_SUPPORTED );
1061 public String getNString(String colLabel) throws SQLException
1063 throw getException( CSQL_NOT_SUPPORTED );
1065 public SQLXML getSQLXML(int colIndex) throws SQLException
1067 throw getException(CSQL_NOT_SUPPORTED);
1069 public SQLXML getSQLXML(String colLabel) throws SQLException
1071 throw getException(CSQL_NOT_SUPPORTED);
1073 public boolean isClosed()
1075 return closedFlag;
1077 public int getHoldability() throws SQLException
1079 throw getException(CSQL_NOT_SUPPORTED);
1081 public RowId getRowId(int val) throws SQLException
1083 throw getException(CSQL_NOT_SUPPORTED);
1085 public RowId getRowId(String val) throws SQLException
1087 throw getException(CSQL_NOT_SUPPORTED);
1089 public boolean isWrapperFor(Class ifact) throws SQLException
1091 throw getException(CSQL_NOT_SUPPORTED);
1093 public Class unwrap(Class iface) throws SQLException
1095 throw getException(CSQL_NOT_SUPPORTED);