1988649 with jdk 1.6 build fails
[csql.git] / src / jdbc / JdbcSqlResultSet.java
blobbc49b57f7595c5b7495ac87a5a06b5ef6a0386e3
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;
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 return out;
162 public short getShort (String colName ) throws SQLException
164 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
165 return( getShort( findColumn( colName ) ) );
168 // INTEGER
169 public int getInt (int colNum ) throws SQLException
171 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
173 int out = stmt.jniStmt.getInt( colNum - 1 );
174 if( false ) throw new SQLException();
175 return out;
177 public int getInt (String colName) throws SQLException
179 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
180 return( getInt( findColumn( colName ) ) );
183 // LONG
184 public long getLong (int colNum) throws SQLException
186 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
188 long out = stmt.jniStmt.getLong( colNum-1 );
189 if( false ) throw new SQLException();
190 return out;
192 public long getLong (String colName) throws SQLException
194 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
195 return( getLong( findColumn( colName ) ) );
198 // BYTE
199 public byte getByte (int colNum) throws SQLException
201 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
203 byte out = stmt.jniStmt.getByte( colNum-1 );
204 if( false ) throw new SQLException();
205 return out;
207 public byte getByte (String colName) throws SQLException
209 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
210 return( getByte( findColumn( colName ) ) );
213 // FLOAT
214 public float getFloat (int colNum) throws SQLException
216 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
218 float out = stmt.jniStmt.getFloat( colNum-1 );
219 if( false ) throw new SQLException();
220 return out;
222 public float getFloat (String colName) throws SQLException
224 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
225 return( getFloat( findColumn( colName ) ) );
228 // DOUBLE
229 public double getDouble (int colNum) throws SQLException
231 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
233 double out = stmt.jniStmt.getDouble( colNum-1 );
234 if( false ) throw new SQLException();
235 return out;
237 public double getDouble (String colName) throws SQLException
239 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
240 return( getDouble( findColumn( colName ) ) );
243 // DECIMAL
244 public BigDecimal getBigDecimal( int colNum )
245 throws SQLException
247 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
249 throw getException( CSQL_NOT_SUPPORTED );
251 // TODO
252 // BigDecimal out = new BigDecimal( stmt.jniStmt.getBigDecimal( colNum-1 ) );
253 //return out;
255 public BigDecimal getBigDecimal(String colName)
256 throws SQLException
258 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
259 return( getBigDecimal( findColumn( colName ) ) );
261 public BigDecimal getBigDecimal (int colNum, int scale)
262 throws SQLException
264 return( getBigDecimal( colNum ) );
266 public BigDecimal getBigDecimal (String colName, int scale)
267 throws SQLException
269 return( getBigDecimal( colName ) );
272 // STRING/VARSTRING
273 public String getString(int colNum) throws SQLException
275 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
277 // Get value
278 String out = stmt.jniStmt.getString( colNum-1 );
280 return out;
282 public String getString (String colName) throws SQLException
284 return( getString( findColumn( colName ) ) );
286 public InputStream getAsciiStream(int colNum) throws SQLException
288 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
290 String out = stmt.jniStmt.getString( colNum-1 );
292 return( new StringBufferInputStream( out ) );
294 public java.io.InputStream getAsciiStream (String colName) throws SQLException
296 return( getAsciiStream( findColumn( colName ) ) );
298 public java.io.Reader getCharacterStream(int colNum)
299 throws SQLException
301 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
303 InputStream iS = getAsciiStream( colNum );
304 if( iS == null )
305 return( null );
307 return( new InputStreamReader( iS ) );
309 public java.io.Reader getCharacterStream(String colName)
310 throws SQLException
312 return( getCharacterStream( findColumn( colName ) ) );
315 // BOOLEAN
316 public boolean getBoolean (int colNum) throws SQLException
318 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
320 boolean out = stmt.jniStmt.getBoolean( colNum-1 );
322 return out;
324 public boolean getBoolean (String colName) throws SQLException
326 return( getBoolean( findColumn( colName ) ) );
329 // BINARY/VARBINARY
330 public byte [] getBytes(int colNum) throws SQLException
332 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
334 throw getException( CSQL_NOT_SUPPORTED );
335 //byte[] out = stmt.jniStmt.getBytes( colNum-1 );
336 //return out;
338 public byte[] getBytes (String colName) throws SQLException
340 return( getBytes( findColumn( colName ) ) );
343 // DATE
344 public java.sql.Date getDate (int colNum) throws SQLException
346 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
348 java.sql.Date out = stmt.jniStmt.getDate( colNum-1 );
350 return out;
352 public java.sql.Date getDate(int colNum, java.util.Calendar cal)
353 throws SQLException
355 return( getDate( colNum ) );
357 public java.sql.Date getDate (String colNum) throws SQLException
359 return( getDate( findColumn( colNum ) ) );
361 public java.sql.Date getDate(String colName, java.util.Calendar cal)
362 throws SQLException
364 return( getDate( colName ) );
367 // TIME
368 public java.sql.Time getTime (int colNum) throws SQLException
370 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
372 // Get value
373 java.sql.Time out = stmt.jniStmt.getTime( colNum-1 );
375 return out;
377 public java.sql.Time getTime(int colNum, java.util.Calendar cal)
378 throws SQLException
380 return( getTime( colNum ) );
382 public java.sql.Time getTime (String colName) throws SQLException
384 return( getTime( findColumn( colName ) ) );
386 public java.sql.Time getTime(String colName, java.util.Calendar cal)
387 throws SQLException
389 return( getTime( colName ) );
392 // TIMESTAMP
393 public java.sql.Timestamp getTimestamp (int colNum)
394 throws SQLException
396 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
398 java.sql.Timestamp out = stmt.jniStmt.getTimestamp( colNum-1 );
400 return out;
402 public java.sql.Timestamp getTimestamp(int colNum,
403 java.util.Calendar cal) throws SQLException
405 return( getTimestamp( colNum ) );
407 public java.sql.Timestamp getTimestamp (String colName)
408 throws SQLException
410 return( getTimestamp( findColumn( colName ) ) );
412 public java.sql.Timestamp getTimestamp(String colName,
413 java.util.Calendar cal) throws SQLException
415 return( getTimestamp( colName ) );
418 public Object getObject(int colNum) throws SQLException
420 Object obj = new String("no obj");
422 if( closedFlag || curRow < 0 ) throw getException( CSQL_INVALID_STATE );
424 switch ( rsmd.getColumnType( colNum ) )
426 case Types.DOUBLE:
427 obj = new Double( getDouble( colNum ) ); break;
428 case Types.FLOAT:
429 obj = new Float( getFloat( colNum ) ); break;
430 case Types.DECIMAL:
431 case Types.NUMERIC:
432 obj = getBigDecimal( colNum ); break;
434 case Types.BIGINT:
435 obj = new Long( getLong( colNum ) ); break;
436 case Types.INTEGER:
437 obj = new Integer( getInt( colNum ) ); break;
438 case Types.SMALLINT:
439 obj = new Short( getShort( colNum ) ); break;
440 case Types.TINYINT:
441 obj = new Byte( getByte( colNum ) ); break;
442 case Types.BIT:
443 obj = new Boolean( getBoolean( colNum ) ); break;
445 case Types.DATE:
446 obj = getDate( colNum ); break;
447 case Types.TIME:
448 obj = getTime( colNum ); break;
449 case Types.TIMESTAMP:
450 obj = getTimestamp( colNum ); break;
452 case Types.CHAR:
453 obj = getString( colNum ); break;
454 case Types.VARCHAR:
455 obj = getString( colNum ); break;
456 case Types.BINARY:
457 case Types.VARBINARY:
458 obj = getBytes( colNum ); break;
460 default: throw getException( CSQL_INVALID_DATATYPE );
462 // Return null if value read is null //TODO
463 //if( wasNull() )
464 // return( null );
466 return( obj );
468 public Object getObject (String colName) throws SQLException
470 return( getObject( findColumn( colName ) ) );
472 public Object getObject(int i, java.util.Map map) throws SQLException
474 return( getObject( i ) );
476 public Object getObject(String colName, java.util.Map map)
477 throws SQLException
479 return( getObject( colName ) );
482 public int getRow() throws SQLException
484 if( curRow < 0 )
485 return( 0 );
487 return( (int) curRow + 1 );
490 // UN-SUPPORTED API's
491 public boolean wasNull () throws SQLException // TODO
493 if( closedFlag ) throw getException( CSQL_INVALID_STATE );
494 throw getException( CSQL_NOT_SUPPORTED );
495 //return( stmt.jniStmt.wasNull() );
497 public String getCursorName () throws SQLException
499 throw getException( CSQL_NOT_SUPPORTED );
501 public boolean absolute( int row ) throws SQLException
503 throw getException( CSQL_NOT_SUPPORTED );
505 public void beforeFirst() throws SQLException
507 throw getException( CSQL_NOT_SUPPORTED );
509 public void afterLast() throws SQLException
511 throw getException( CSQL_NOT_SUPPORTED );
513 public boolean first() throws SQLException
515 throw getException( CSQL_NOT_SUPPORTED );
517 public boolean last() throws SQLException
519 throw getException( CSQL_NOT_SUPPORTED );
521 public boolean relative( int rows ) throws SQLException
523 throw getException( CSQL_NOT_SUPPORTED );
525 public boolean previous() throws SQLException
527 throw getException( CSQL_NOT_SUPPORTED );
529 public void setFetchDirection(int direction) throws SQLException
531 throw getException( CSQL_NOT_SUPPORTED );
533 public int getFetchDirection() throws SQLException
535 throw getException( CSQL_NOT_SUPPORTED );
537 public void setFetchSize(int rows) throws SQLException
539 throw getException( CSQL_NOT_SUPPORTED );
541 public int getFetchSize() throws SQLException
543 throw getException( CSQL_NOT_SUPPORTED );
545 public InputStream getUnicodeStream(int colNum) throws SQLException
547 throw getException( CSQL_NOT_SUPPORTED );
549 public InputStream getBinaryStream(int colNum) throws SQLException
551 throw getException( CSQL_NOT_SUPPORTED );
553 public java.io.InputStream getUnicodeStream (String colName) throws SQLException
555 throw getException( CSQL_NOT_SUPPORTED );
557 public java.io.InputStream getBinaryStream (String colName) throws SQLException
559 throw getException( CSQL_NOT_SUPPORTED );
561 public void setMaxRows(int maxRows) throws SQLException
563 throw getException( CSQL_NOT_SUPPORTED );
565 public void setMaxFieldSize(int maxFieldSize) throws SQLException
567 throw getException( CSQL_NOT_SUPPORTED );
569 public boolean rowUpdated() throws SQLException
571 throw getException( CSQL_NOT_SUPPORTED );
573 public boolean rowInserted() throws SQLException
575 throw getException( CSQL_NOT_SUPPORTED );
577 public boolean rowDeleted() throws SQLException
579 throw getException( CSQL_NOT_SUPPORTED );
581 public void updateNull(int colNum) throws SQLException
583 throw getException( CSQL_NOT_SUPPORTED );
585 public void updateBoolean(int colNum, boolean x) throws SQLException
587 throw getException( CSQL_NOT_SUPPORTED );
589 public void updateByte(int colNum, byte x) throws SQLException
591 throw getException( CSQL_NOT_SUPPORTED );
593 public void updateShort(int colNum, short x) throws SQLException
595 throw getException( CSQL_NOT_SUPPORTED );
597 public void updateInt(int colNum, int x) throws SQLException
599 throw getException( CSQL_NOT_SUPPORTED );
601 public void updateLong(int colNum, long x) throws SQLException
603 throw getException( CSQL_NOT_SUPPORTED );
605 public void updateFloat(int colNum, float x) throws SQLException
607 throw getException( CSQL_NOT_SUPPORTED );
609 public void updateDouble(int colNum, double x) throws SQLException
611 throw getException( CSQL_NOT_SUPPORTED );
613 public void updateBigDecimal(int colNum, BigDecimal x) throws SQLException
615 throw getException( CSQL_NOT_SUPPORTED );
617 public void updateString(int colNum, String x) throws SQLException
619 throw getException( CSQL_NOT_SUPPORTED );
621 public void updateBytes(int colNum, byte x[]) throws SQLException
623 throw getException( CSQL_NOT_SUPPORTED );
625 public void updateDate(int colNum, java.sql.Date x) throws SQLException
627 throw getException( CSQL_NOT_SUPPORTED );
629 public void updateTime(int colNum, java.sql.Time x) throws SQLException
631 throw getException( CSQL_NOT_SUPPORTED );
633 public void updateTimestamp(int colNum, java.sql.Timestamp x)
634 throws SQLException
636 throw getException( CSQL_NOT_SUPPORTED );
638 public void updateAsciiStream(int colNum,
639 java.io.InputStream x, int length) throws SQLException
641 throw getException( CSQL_NOT_SUPPORTED );
643 public void updateBinaryStream(int colNum,
644 java.io.InputStream x, int length) throws SQLException
646 throw getException( CSQL_NOT_SUPPORTED );
648 public void updateCharacterStream(int colNum,
649 java.io.Reader x, int length) throws SQLException
651 throw getException( CSQL_NOT_SUPPORTED );
653 public void updateNull(String colName) throws SQLException
655 throw getException( CSQL_NOT_SUPPORTED );
657 public void updateBoolean(String colName, boolean x) throws SQLException
659 throw getException( CSQL_NOT_SUPPORTED );
661 public void updateByte(String colName, byte x) throws SQLException
663 throw getException( CSQL_NOT_SUPPORTED );
665 public void updateShort(String colName, short x) throws SQLException
667 throw getException( CSQL_NOT_SUPPORTED );
669 public void updateInt(String colName, int x) throws SQLException
671 throw getException( CSQL_NOT_SUPPORTED );
673 public void updateLong(String colName, long x) throws SQLException
675 throw getException( CSQL_NOT_SUPPORTED );
677 public void updateFloat(String colName, float x) throws SQLException
679 throw getException( CSQL_NOT_SUPPORTED );
681 public void updateDouble(String colName, double x) throws SQLException
683 throw getException( CSQL_NOT_SUPPORTED );
685 public void updateBigDecimal(String colName, BigDecimal x)
686 throws SQLException
688 throw getException( CSQL_NOT_SUPPORTED );
690 public void updateString(String colName, String x) throws SQLException
692 throw getException( CSQL_NOT_SUPPORTED );
694 public void updateBytes(String colName, byte x[]) throws SQLException
696 throw getException( CSQL_NOT_SUPPORTED );
698 public void updateDate(String colName, java.sql.Date x) throws SQLException
700 throw getException( CSQL_NOT_SUPPORTED );
702 public void updateTime(String colName, java.sql.Time x) throws SQLException
704 throw getException( CSQL_NOT_SUPPORTED );
706 public void updateTimestamp(String colName, java.sql.Timestamp x)
707 throws SQLException
709 throw getException( CSQL_NOT_SUPPORTED );
711 public void updateAsciiStream(String colName,
712 java.io.InputStream x, int length) throws SQLException
714 throw getException( CSQL_NOT_SUPPORTED );
716 public void updateBinaryStream(String colName,
717 java.io.InputStream x, int length) throws SQLException
719 throw getException( CSQL_NOT_SUPPORTED );
721 public void updateCharacterStream(String colName,
722 java.io.Reader reader, int length) throws SQLException
724 throw getException( CSQL_NOT_SUPPORTED );
726 public void updateObject(int colNum, Object x, int scale)
727 throws SQLException
729 throw getException( CSQL_NOT_SUPPORTED );
731 public void updateObject(int colNum, Object x) throws SQLException
733 throw getException( CSQL_NOT_SUPPORTED );
735 public void insertRow() throws SQLException
737 throw getException( CSQL_NOT_SUPPORTED );
739 public void updateRow() throws SQLException
741 throw getException( CSQL_NOT_SUPPORTED );
743 public void deleteRow() throws SQLException
745 throw getException( CSQL_NOT_SUPPORTED );
747 public void refreshRow() throws SQLException
749 throw getException( CSQL_NOT_SUPPORTED );
751 public void cancelRowUpdates() throws SQLException
753 throw getException( CSQL_NOT_SUPPORTED );
755 public void moveToInsertRow() throws SQLException
757 throw getException( CSQL_NOT_SUPPORTED );
759 public void moveToCurrentRow() throws SQLException
761 throw getException( CSQL_NOT_SUPPORTED );
763 public Ref getRef(int i) throws SQLException
765 throw getException( CSQL_NOT_SUPPORTED );
767 public Blob getBlob(int i) throws SQLException
769 throw getException( CSQL_NOT_SUPPORTED );
771 public Clob getClob(int i) throws SQLException
773 throw getException( CSQL_NOT_SUPPORTED );
775 public Array getArray(int i) throws SQLException
777 throw getException( CSQL_NOT_SUPPORTED );
779 public Ref getRef(String colName) throws SQLException
781 throw getException( CSQL_NOT_SUPPORTED );
783 public Blob getBlob(String colName) throws SQLException
785 throw getException( CSQL_NOT_SUPPORTED );
787 public Clob getClob(String colName) throws SQLException
789 throw getException( CSQL_NOT_SUPPORTED );
791 public Array getArray(String colName) throws SQLException
793 throw getException( CSQL_NOT_SUPPORTED );
795 public boolean isLast() throws SQLException
797 throw getException( CSQL_NOT_SUPPORTED );
799 public void updateObject(String colName, Object x) throws SQLException
801 throw getException( CSQL_NOT_SUPPORTED );
803 public void updateObject(String colName, Object x, int scale)
804 throws SQLException
806 throw getException( CSQL_NOT_SUPPORTED );
808 public URL getURL(int colNum)
809 throws SQLException
811 throw getException( CSQL_NOT_SUPPORTED );
813 public URL getURL(String colName)
814 throws SQLException
816 throw getException( CSQL_NOT_SUPPORTED );
818 public void updateRef(int colNum, Ref x)
819 throws SQLException
821 throw getException( CSQL_NOT_SUPPORTED );
823 public void updateRef(String colName, Ref x)
824 throws SQLException
826 throw getException( CSQL_NOT_SUPPORTED );
828 public void updateBlob(int colNum, Blob x)
829 throws SQLException
831 throw getException( CSQL_NOT_SUPPORTED );
833 public void updateBlob(String colName, Blob x)
834 throws SQLException
836 throw getException( CSQL_NOT_SUPPORTED );
838 public void updateClob(int colNum, Clob x)
839 throws SQLException
841 throw getException( CSQL_NOT_SUPPORTED );
843 public void updateClob(String colName, Clob x)
844 throws SQLException
846 throw getException( CSQL_NOT_SUPPORTED );
848 public void updateArray(int colNum, Array x)
849 throws SQLException
851 throw getException( CSQL_NOT_SUPPORTED );
853 public void updateArray(String colName, Array x)
854 throws SQLException
856 throw getException( CSQL_NOT_SUPPORTED );
858 //java 1.6 methods
859 public void updateRowId(int colIndex, RowId x)
860 throws SQLException
862 throw getException( CSQL_NOT_SUPPORTED );
864 public void updateRowId(String colLabel, RowId x)
865 throws SQLException
867 throw getException( CSQL_NOT_SUPPORTED );
869 public void updateSQLXML(int colIndex, SQLXML x)
870 throws SQLException
872 throw getException( CSQL_NOT_SUPPORTED );
874 public void updateSQLXML(String colLabel, SQLXML x)
875 throws SQLException
877 throw getException( CSQL_NOT_SUPPORTED );
879 public void updateNClob(int colIndex, NClob x)
880 throws SQLException
882 throw getException( CSQL_NOT_SUPPORTED );
884 public void updateNClob(int colIndex, Reader x)
885 throws SQLException
887 throw getException( CSQL_NOT_SUPPORTED );
889 public void updateNClob(int colIndex, Reader x, long length)
890 throws SQLException
892 throw getException( CSQL_NOT_SUPPORTED );
894 public void updateNClob(String colIndex, NClob x)
895 throws SQLException
897 throw getException( CSQL_NOT_SUPPORTED );
899 public void updateNClob(String colIndex, Reader x)
900 throws SQLException
902 throw getException( CSQL_NOT_SUPPORTED );
904 public void updateNClob(String colIndex, Reader x, long length)
905 throws SQLException
907 throw getException( CSQL_NOT_SUPPORTED );
909 public void updateNString(int colIndex, String x)
910 throws SQLException
912 throw getException( CSQL_NOT_SUPPORTED );
914 public void updateNString(String colIndex, String x)
915 throws SQLException
917 throw getException( CSQL_NOT_SUPPORTED );
919 public void updateNCharacterStream(int colIndex, Reader x)
920 throws SQLException
922 throw getException( CSQL_NOT_SUPPORTED );
924 public void updateNCharacterStream(int colIndex, Reader x, long length)
925 throws SQLException
927 throw getException( CSQL_NOT_SUPPORTED );
929 public void updateNCharacterStream(String colIndex, Reader x)
930 throws SQLException
932 throw getException( CSQL_NOT_SUPPORTED );
934 public void updateNCharacterStream(String colIndex, Reader x, long length)
935 throws SQLException
937 throw getException( CSQL_NOT_SUPPORTED );
939 public void updateCharacterStream(int colIndex, Reader x)
940 throws SQLException
942 throw getException( CSQL_NOT_SUPPORTED );
944 public void updateCharacterStream(String colIndex, Reader x)
945 throws SQLException
947 throw getException( CSQL_NOT_SUPPORTED );
949 public void updateCharacterStream(int colIndex, Reader x, long length)
950 throws SQLException
952 throw getException( CSQL_NOT_SUPPORTED );
954 public void updateCharacterStream(String colIndex, Reader x, long length)
955 throws SQLException
957 throw getException( CSQL_NOT_SUPPORTED );
959 public void updateBinaryStream(int colIndex, InputStream x)
960 throws SQLException
962 throw getException( CSQL_NOT_SUPPORTED );
964 public void updateBinaryStream(String colIndex, InputStream x)
965 throws SQLException
967 throw getException( CSQL_NOT_SUPPORTED );
969 public void updateBinaryStream(int colIndex, InputStream x, long length)
970 throws SQLException
972 throw getException( CSQL_NOT_SUPPORTED );
974 public void updateBinaryStream(String colIndex, InputStream x, long length)
975 throws SQLException
977 throw getException( CSQL_NOT_SUPPORTED );
979 public void updateAsciiStream(int colIndex, InputStream x)
980 throws SQLException
982 throw getException( CSQL_NOT_SUPPORTED );
984 public void updateAsciiStream(String colIndex, InputStream x)
985 throws SQLException
987 throw getException( CSQL_NOT_SUPPORTED );
989 public void updateAsciiStream(int colIndex, InputStream x, long length)
990 throws SQLException
992 throw getException( CSQL_NOT_SUPPORTED );
994 public void updateAsciiStream(String colIndex, InputStream x, long length)
995 throws SQLException
997 throw getException( CSQL_NOT_SUPPORTED );
999 public void updateClob(int colNum, Reader x) throws SQLException
1001 throw getException( CSQL_NOT_SUPPORTED );
1003 public void updateClob(String colNum, Reader x) throws SQLException
1005 throw getException( CSQL_NOT_SUPPORTED );
1007 public void updateClob(int colNum, Reader x, long length)
1008 throws SQLException
1010 throw getException( CSQL_NOT_SUPPORTED );
1012 public void updateClob(String colNum, Reader x, long length)
1013 throws SQLException
1015 throw getException( CSQL_NOT_SUPPORTED );
1017 public void updateBlob(int colNum, InputStream x) throws SQLException
1019 throw getException( CSQL_NOT_SUPPORTED );
1021 public void updateBlob(String colNum, InputStream x) throws SQLException
1023 throw getException( CSQL_NOT_SUPPORTED );
1025 public void updateBlob(int colNum, InputStream x, long length)
1026 throws SQLException
1028 throw getException( CSQL_NOT_SUPPORTED );
1030 public void updateBlob(String colNum, InputStream x, long length)
1031 throws SQLException
1033 throw getException( CSQL_NOT_SUPPORTED );
1035 public Reader getNCharacterStream(int colIndex) throws SQLException
1037 throw getException( CSQL_NOT_SUPPORTED );
1039 public Reader getNCharacterStream(String colLabel) throws SQLException
1041 throw getException( CSQL_NOT_SUPPORTED );
1043 public NClob getNClob(int colIndex) throws SQLException
1045 throw getException( CSQL_NOT_SUPPORTED );
1047 public NClob getNClob(String colLabel) throws SQLException
1049 throw getException( CSQL_NOT_SUPPORTED );
1051 public String getNString(int colIndex) throws SQLException
1053 throw getException( CSQL_NOT_SUPPORTED );
1055 public String getNString(String colLabel) throws SQLException
1057 throw getException( CSQL_NOT_SUPPORTED );
1059 public SQLXML getSQLXML(int colIndex) throws SQLException
1061 throw getException(CSQL_NOT_SUPPORTED);
1063 public SQLXML getSQLXML(String colLabel) throws SQLException
1065 throw getException(CSQL_NOT_SUPPORTED);
1067 public boolean isClosed()
1069 return closedFlag;
1071 public int getHoldability() throws SQLException
1073 throw getException(CSQL_NOT_SUPPORTED);
1075 public RowId getRowId(int val) throws SQLException
1077 throw getException(CSQL_NOT_SUPPORTED);
1079 public RowId getRowId(String val) throws SQLException
1081 throw getException(CSQL_NOT_SUPPORTED);
1083 public boolean isWrapperFor(Class ifact) throws SQLException
1085 throw getException(CSQL_NOT_SUPPORTED);
1087 public Class unwrap(Class iface) throws SQLException
1089 throw getException(CSQL_NOT_SUPPORTED);