1 package net.jaekl.cfb.db;
3 import java.io.InputStream;
5 import java.math.BigDecimal;
11 import java.sql.NClob;
13 import java.sql.ResultSet;
14 import java.sql.ResultSetMetaData;
15 import java.sql.RowId;
16 import java.sql.SQLException;
17 import java.sql.SQLWarning;
18 import java.sql.SQLXML;
19 import java.sql.Statement;
21 import java.sql.Timestamp;
22 import java.util.Calendar;
25 public class ResultSetMock implements ResultSet {
28 public boolean isWrapperFor(Class<?> iface) throws SQLException {
29 // TODO Auto-generated method stub
34 public <T> T unwrap(Class<T> iface) throws SQLException {
35 // TODO Auto-generated method stub
40 public boolean absolute(int arg0) throws SQLException {
41 // TODO Auto-generated method stub
46 public void afterLast() throws SQLException {
47 // TODO Auto-generated method stub
52 public void beforeFirst() throws SQLException {
53 // TODO Auto-generated method stub
58 public void cancelRowUpdates() throws SQLException {
59 // TODO Auto-generated method stub
64 public void clearWarnings() throws SQLException {
65 // TODO Auto-generated method stub
70 public void close() throws SQLException {
71 // TODO Auto-generated method stub
76 public void deleteRow() throws SQLException {
77 // TODO Auto-generated method stub
82 public int findColumn(String arg0) throws SQLException {
83 // TODO Auto-generated method stub
88 public boolean first() throws SQLException {
89 // TODO Auto-generated method stub
94 public Array getArray(int arg0) throws SQLException {
95 // TODO Auto-generated method stub
100 public Array getArray(String arg0) throws SQLException {
101 // TODO Auto-generated method stub
106 public InputStream getAsciiStream(int arg0) throws SQLException {
107 // TODO Auto-generated method stub
112 public InputStream getAsciiStream(String arg0) throws SQLException {
113 // TODO Auto-generated method stub
118 public BigDecimal getBigDecimal(int arg0) throws SQLException {
119 // TODO Auto-generated method stub
124 public BigDecimal getBigDecimal(String arg0) throws SQLException {
125 // TODO Auto-generated method stub
130 public BigDecimal getBigDecimal(int arg0, int arg1) throws SQLException {
131 // TODO Auto-generated method stub
136 public BigDecimal getBigDecimal(String arg0, int arg1) throws SQLException {
137 // TODO Auto-generated method stub
142 public InputStream getBinaryStream(int arg0) throws SQLException {
143 // TODO Auto-generated method stub
148 public InputStream getBinaryStream(String arg0) throws SQLException {
149 // TODO Auto-generated method stub
154 public Blob getBlob(int arg0) throws SQLException {
155 // TODO Auto-generated method stub
160 public Blob getBlob(String arg0) throws SQLException {
161 // TODO Auto-generated method stub
166 public boolean getBoolean(int arg0) throws SQLException {
167 // TODO Auto-generated method stub
172 public boolean getBoolean(String arg0) throws SQLException {
173 // TODO Auto-generated method stub
178 public byte getByte(int arg0) throws SQLException {
179 // TODO Auto-generated method stub
184 public byte getByte(String arg0) throws SQLException {
185 // TODO Auto-generated method stub
190 public byte[] getBytes(int arg0) throws SQLException {
191 // TODO Auto-generated method stub
196 public byte[] getBytes(String arg0) throws SQLException {
197 // TODO Auto-generated method stub
202 public Reader getCharacterStream(int arg0) throws SQLException {
203 // TODO Auto-generated method stub
208 public Reader getCharacterStream(String arg0) throws SQLException {
209 // TODO Auto-generated method stub
214 public Clob getClob(int arg0) throws SQLException {
215 // TODO Auto-generated method stub
220 public Clob getClob(String arg0) throws SQLException {
221 // TODO Auto-generated method stub
226 public int getConcurrency() throws SQLException {
227 // TODO Auto-generated method stub
232 public String getCursorName() throws SQLException {
233 // TODO Auto-generated method stub
238 public Date getDate(int arg0) throws SQLException {
239 // TODO Auto-generated method stub
244 public Date getDate(String arg0) throws SQLException {
245 // TODO Auto-generated method stub
250 public Date getDate(int arg0, Calendar arg1) throws SQLException {
251 // TODO Auto-generated method stub
256 public Date getDate(String arg0, Calendar arg1) throws SQLException {
257 // TODO Auto-generated method stub
262 public double getDouble(int arg0) throws SQLException {
263 // TODO Auto-generated method stub
268 public double getDouble(String arg0) throws SQLException {
269 // TODO Auto-generated method stub
274 public int getFetchDirection() throws SQLException {
275 // TODO Auto-generated method stub
280 public int getFetchSize() throws SQLException {
281 // TODO Auto-generated method stub
286 public float getFloat(int arg0) throws SQLException {
287 // TODO Auto-generated method stub
292 public float getFloat(String arg0) throws SQLException {
293 // TODO Auto-generated method stub
298 public int getHoldability() throws SQLException {
299 // TODO Auto-generated method stub
304 public int getInt(int arg0) throws SQLException {
305 // TODO Auto-generated method stub
310 public int getInt(String arg0) throws SQLException {
311 // TODO Auto-generated method stub
316 public long getLong(int arg0) throws SQLException {
317 // TODO Auto-generated method stub
322 public long getLong(String arg0) throws SQLException {
323 // TODO Auto-generated method stub
328 public ResultSetMetaData getMetaData() throws SQLException {
329 // TODO Auto-generated method stub
334 public Reader getNCharacterStream(int arg0) throws SQLException {
335 // TODO Auto-generated method stub
340 public Reader getNCharacterStream(String arg0) throws SQLException {
341 // TODO Auto-generated method stub
346 public NClob getNClob(int arg0) throws SQLException {
347 // TODO Auto-generated method stub
352 public NClob getNClob(String arg0) throws SQLException {
353 // TODO Auto-generated method stub
358 public String getNString(int arg0) throws SQLException {
359 // TODO Auto-generated method stub
364 public String getNString(String arg0) throws SQLException {
365 // TODO Auto-generated method stub
370 public Object getObject(int arg0) throws SQLException {
371 // TODO Auto-generated method stub
376 public Object getObject(String arg0) throws SQLException {
377 // TODO Auto-generated method stub
382 public Object getObject(int arg0, Map<String, Class<?>> arg1)
383 throws SQLException {
384 // TODO Auto-generated method stub
389 public Object getObject(String arg0, Map<String, Class<?>> arg1)
390 throws SQLException {
391 // TODO Auto-generated method stub
396 public <T> T getObject(int arg0, Class<T> arg1) throws SQLException {
397 // TODO Auto-generated method stub
402 public <T> T getObject(String arg0, Class<T> arg1) throws SQLException {
403 // TODO Auto-generated method stub
408 public Ref getRef(int arg0) throws SQLException {
409 // TODO Auto-generated method stub
414 public Ref getRef(String arg0) throws SQLException {
415 // TODO Auto-generated method stub
420 public int getRow() throws SQLException {
421 // TODO Auto-generated method stub
426 public RowId getRowId(int arg0) throws SQLException {
427 // TODO Auto-generated method stub
432 public RowId getRowId(String arg0) throws SQLException {
433 // TODO Auto-generated method stub
438 public SQLXML getSQLXML(int arg0) throws SQLException {
439 // TODO Auto-generated method stub
444 public SQLXML getSQLXML(String arg0) throws SQLException {
445 // TODO Auto-generated method stub
450 public short getShort(int arg0) throws SQLException {
451 // TODO Auto-generated method stub
456 public short getShort(String arg0) throws SQLException {
457 // TODO Auto-generated method stub
462 public Statement getStatement() throws SQLException {
463 // TODO Auto-generated method stub
468 public String getString(int arg0) throws SQLException {
469 // TODO Auto-generated method stub
474 public String getString(String arg0) throws SQLException {
475 // TODO Auto-generated method stub
480 public Time getTime(int arg0) throws SQLException {
481 // TODO Auto-generated method stub
486 public Time getTime(String arg0) throws SQLException {
487 // TODO Auto-generated method stub
492 public Time getTime(int arg0, Calendar arg1) throws SQLException {
493 // TODO Auto-generated method stub
498 public Time getTime(String arg0, Calendar arg1) throws SQLException {
499 // TODO Auto-generated method stub
504 public Timestamp getTimestamp(int arg0) throws SQLException {
505 // TODO Auto-generated method stub
510 public Timestamp getTimestamp(String arg0) throws SQLException {
511 // TODO Auto-generated method stub
516 public Timestamp getTimestamp(int arg0, Calendar arg1) throws SQLException {
517 // TODO Auto-generated method stub
522 public Timestamp getTimestamp(String arg0, Calendar arg1)
523 throws SQLException {
524 // TODO Auto-generated method stub
529 public int getType() throws SQLException {
530 // TODO Auto-generated method stub
535 public URL getURL(int arg0) throws SQLException {
536 // TODO Auto-generated method stub
541 public URL getURL(String arg0) throws SQLException {
542 // TODO Auto-generated method stub
547 public InputStream getUnicodeStream(int arg0) throws SQLException {
548 // TODO Auto-generated method stub
553 public InputStream getUnicodeStream(String arg0) throws SQLException {
554 // TODO Auto-generated method stub
559 public SQLWarning getWarnings() throws SQLException {
560 // TODO Auto-generated method stub
565 public void insertRow() throws SQLException {
566 // TODO Auto-generated method stub
571 public boolean isAfterLast() throws SQLException {
572 // TODO Auto-generated method stub
577 public boolean isBeforeFirst() throws SQLException {
578 // TODO Auto-generated method stub
583 public boolean isClosed() throws SQLException {
584 // TODO Auto-generated method stub
589 public boolean isFirst() throws SQLException {
590 // TODO Auto-generated method stub
595 public boolean isLast() throws SQLException {
596 // TODO Auto-generated method stub
601 public boolean last() throws SQLException {
602 // TODO Auto-generated method stub
607 public void moveToCurrentRow() throws SQLException {
608 // TODO Auto-generated method stub
613 public void moveToInsertRow() throws SQLException {
614 // TODO Auto-generated method stub
619 public boolean next() throws SQLException {
620 // TODO Auto-generated method stub
625 public boolean previous() throws SQLException {
626 // TODO Auto-generated method stub
631 public void refreshRow() throws SQLException {
632 // TODO Auto-generated method stub
637 public boolean relative(int arg0) throws SQLException {
638 // TODO Auto-generated method stub
643 public boolean rowDeleted() throws SQLException {
644 // TODO Auto-generated method stub
649 public boolean rowInserted() throws SQLException {
650 // TODO Auto-generated method stub
655 public boolean rowUpdated() throws SQLException {
656 // TODO Auto-generated method stub
661 public void setFetchDirection(int arg0) throws SQLException {
662 // TODO Auto-generated method stub
667 public void setFetchSize(int arg0) throws SQLException {
668 // TODO Auto-generated method stub
673 public void updateArray(int arg0, Array arg1) throws SQLException {
674 // TODO Auto-generated method stub
679 public void updateArray(String arg0, Array arg1) throws SQLException {
680 // TODO Auto-generated method stub
685 public void updateAsciiStream(int arg0, InputStream arg1)
686 throws SQLException {
687 // TODO Auto-generated method stub
692 public void updateAsciiStream(String arg0, InputStream arg1)
693 throws SQLException {
694 // TODO Auto-generated method stub
699 public void updateAsciiStream(int arg0, InputStream arg1, int arg2)
700 throws SQLException {
701 // TODO Auto-generated method stub
706 public void updateAsciiStream(String arg0, InputStream arg1, int arg2)
707 throws SQLException {
708 // TODO Auto-generated method stub
713 public void updateAsciiStream(int arg0, InputStream arg1, long arg2)
714 throws SQLException {
715 // TODO Auto-generated method stub
720 public void updateAsciiStream(String arg0, InputStream arg1, long arg2)
721 throws SQLException {
722 // TODO Auto-generated method stub
727 public void updateBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
728 // TODO Auto-generated method stub
733 public void updateBigDecimal(String arg0, BigDecimal arg1)
734 throws SQLException {
735 // TODO Auto-generated method stub
740 public void updateBinaryStream(int arg0, InputStream arg1)
741 throws SQLException {
742 // TODO Auto-generated method stub
747 public void updateBinaryStream(String arg0, InputStream arg1)
748 throws SQLException {
749 // TODO Auto-generated method stub
754 public void updateBinaryStream(int arg0, InputStream arg1, int arg2)
755 throws SQLException {
756 // TODO Auto-generated method stub
761 public void updateBinaryStream(String arg0, InputStream arg1, int arg2)
762 throws SQLException {
763 // TODO Auto-generated method stub
768 public void updateBinaryStream(int arg0, InputStream arg1, long arg2)
769 throws SQLException {
770 // TODO Auto-generated method stub
775 public void updateBinaryStream(String arg0, InputStream arg1, long arg2)
776 throws SQLException {
777 // TODO Auto-generated method stub
782 public void updateBlob(int arg0, Blob arg1) throws SQLException {
783 // TODO Auto-generated method stub
788 public void updateBlob(String arg0, Blob arg1) throws SQLException {
789 // TODO Auto-generated method stub
794 public void updateBlob(int arg0, InputStream arg1) throws SQLException {
795 // TODO Auto-generated method stub
800 public void updateBlob(String arg0, InputStream arg1) throws SQLException {
801 // TODO Auto-generated method stub
806 public void updateBlob(int arg0, InputStream arg1, long arg2)
807 throws SQLException {
808 // TODO Auto-generated method stub
813 public void updateBlob(String arg0, InputStream arg1, long arg2)
814 throws SQLException {
815 // TODO Auto-generated method stub
820 public void updateBoolean(int arg0, boolean arg1) throws SQLException {
821 // TODO Auto-generated method stub
826 public void updateBoolean(String arg0, boolean arg1) throws SQLException {
827 // TODO Auto-generated method stub
832 public void updateByte(int arg0, byte arg1) throws SQLException {
833 // TODO Auto-generated method stub
838 public void updateByte(String arg0, byte arg1) throws SQLException {
839 // TODO Auto-generated method stub
844 public void updateBytes(int arg0, byte[] arg1) throws SQLException {
845 // TODO Auto-generated method stub
850 public void updateBytes(String arg0, byte[] arg1) throws SQLException {
851 // TODO Auto-generated method stub
856 public void updateCharacterStream(int arg0, Reader arg1)
857 throws SQLException {
858 // TODO Auto-generated method stub
863 public void updateCharacterStream(String arg0, Reader arg1)
864 throws SQLException {
865 // TODO Auto-generated method stub
870 public void updateCharacterStream(int arg0, Reader arg1, int arg2)
871 throws SQLException {
872 // TODO Auto-generated method stub
877 public void updateCharacterStream(String arg0, Reader arg1, int arg2)
878 throws SQLException {
879 // TODO Auto-generated method stub
884 public void updateCharacterStream(int arg0, Reader arg1, long arg2)
885 throws SQLException {
886 // TODO Auto-generated method stub
891 public void updateCharacterStream(String arg0, Reader arg1, long arg2)
892 throws SQLException {
893 // TODO Auto-generated method stub
898 public void updateClob(int arg0, Clob arg1) throws SQLException {
899 // TODO Auto-generated method stub
904 public void updateClob(String arg0, Clob arg1) throws SQLException {
905 // TODO Auto-generated method stub
910 public void updateClob(int arg0, Reader arg1) throws SQLException {
911 // TODO Auto-generated method stub
916 public void updateClob(String arg0, Reader arg1) throws SQLException {
917 // TODO Auto-generated method stub
922 public void updateClob(int arg0, Reader arg1, long arg2)
923 throws SQLException {
924 // TODO Auto-generated method stub
929 public void updateClob(String arg0, Reader arg1, long arg2)
930 throws SQLException {
931 // TODO Auto-generated method stub
936 public void updateDate(int arg0, Date arg1) throws SQLException {
937 // TODO Auto-generated method stub
942 public void updateDate(String arg0, Date arg1) throws SQLException {
943 // TODO Auto-generated method stub
948 public void updateDouble(int arg0, double arg1) throws SQLException {
949 // TODO Auto-generated method stub
954 public void updateDouble(String arg0, double arg1) throws SQLException {
955 // TODO Auto-generated method stub
960 public void updateFloat(int arg0, float arg1) throws SQLException {
961 // TODO Auto-generated method stub
966 public void updateFloat(String arg0, float arg1) throws SQLException {
967 // TODO Auto-generated method stub
972 public void updateInt(int arg0, int arg1) throws SQLException {
973 // TODO Auto-generated method stub
978 public void updateInt(String arg0, int arg1) throws SQLException {
979 // TODO Auto-generated method stub
984 public void updateLong(int arg0, long arg1) throws SQLException {
985 // TODO Auto-generated method stub
990 public void updateLong(String arg0, long arg1) throws SQLException {
991 // TODO Auto-generated method stub
996 public void updateNCharacterStream(int arg0, Reader arg1)
997 throws SQLException {
998 // TODO Auto-generated method stub
1003 public void updateNCharacterStream(String arg0, Reader arg1)
1004 throws SQLException {
1005 // TODO Auto-generated method stub
1010 public void updateNCharacterStream(int arg0, Reader arg1, long arg2)
1011 throws SQLException {
1012 // TODO Auto-generated method stub
1017 public void updateNCharacterStream(String arg0, Reader arg1, long arg2)
1018 throws SQLException {
1019 // TODO Auto-generated method stub
1024 public void updateNClob(int arg0, NClob arg1) throws SQLException {
1025 // TODO Auto-generated method stub
1030 public void updateNClob(String arg0, NClob arg1) throws SQLException {
1031 // TODO Auto-generated method stub
1036 public void updateNClob(int arg0, Reader arg1) throws SQLException {
1037 // TODO Auto-generated method stub
1042 public void updateNClob(String arg0, Reader arg1) throws SQLException {
1043 // TODO Auto-generated method stub
1048 public void updateNClob(int arg0, Reader arg1, long arg2)
1049 throws SQLException {
1050 // TODO Auto-generated method stub
1055 public void updateNClob(String arg0, Reader arg1, long arg2)
1056 throws SQLException {
1057 // TODO Auto-generated method stub
1062 public void updateNString(int arg0, String arg1) throws SQLException {
1063 // TODO Auto-generated method stub
1068 public void updateNString(String arg0, String arg1) throws SQLException {
1069 // TODO Auto-generated method stub
1074 public void updateNull(int arg0) throws SQLException {
1075 // TODO Auto-generated method stub
1080 public void updateNull(String arg0) throws SQLException {
1081 // TODO Auto-generated method stub
1086 public void updateObject(int arg0, Object arg1) throws SQLException {
1087 // TODO Auto-generated method stub
1092 public void updateObject(String arg0, Object arg1) throws SQLException {
1093 // TODO Auto-generated method stub
1098 public void updateObject(int arg0, Object arg1, int arg2)
1099 throws SQLException {
1100 // TODO Auto-generated method stub
1105 public void updateObject(String arg0, Object arg1, int arg2)
1106 throws SQLException {
1107 // TODO Auto-generated method stub
1112 public void updateRef(int arg0, Ref arg1) throws SQLException {
1113 // TODO Auto-generated method stub
1118 public void updateRef(String arg0, Ref arg1) throws SQLException {
1119 // TODO Auto-generated method stub
1124 public void updateRow() throws SQLException {
1125 // TODO Auto-generated method stub
1130 public void updateRowId(int arg0, RowId arg1) throws SQLException {
1131 // TODO Auto-generated method stub
1136 public void updateRowId(String arg0, RowId arg1) throws SQLException {
1137 // TODO Auto-generated method stub
1142 public void updateSQLXML(int arg0, SQLXML arg1) throws SQLException {
1143 // TODO Auto-generated method stub
1148 public void updateSQLXML(String arg0, SQLXML arg1) throws SQLException {
1149 // TODO Auto-generated method stub
1154 public void updateShort(int arg0, short arg1) throws SQLException {
1155 // TODO Auto-generated method stub
1160 public void updateShort(String arg0, short arg1) throws SQLException {
1161 // TODO Auto-generated method stub
1166 public void updateString(int arg0, String arg1) throws SQLException {
1167 // TODO Auto-generated method stub
1172 public void updateString(String arg0, String arg1) throws SQLException {
1173 // TODO Auto-generated method stub
1178 public void updateTime(int arg0, Time arg1) throws SQLException {
1179 // TODO Auto-generated method stub
1184 public void updateTime(String arg0, Time arg1) throws SQLException {
1185 // TODO Auto-generated method stub
1190 public void updateTimestamp(int arg0, Timestamp arg1) throws SQLException {
1191 // TODO Auto-generated method stub
1196 public void updateTimestamp(String arg0, Timestamp arg1)
1197 throws SQLException {
1198 // TODO Auto-generated method stub
1203 public boolean wasNull() throws SQLException {
1204 // TODO Auto-generated method stub