View Javadoc
1   /*******************************************************************************
2    * Copyright 2012 pw999
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   ******************************************************************************/
16  package net.sf.oqt.driver;
17  
18  import java.io.InputStream;
19  import java.io.Reader;
20  import java.math.BigDecimal;
21  import java.net.URL;
22  import java.sql.Array;
23  import java.sql.Blob;
24  import java.sql.Clob;
25  import java.sql.Date;
26  import java.sql.NClob;
27  import java.sql.Ref;
28  import java.sql.ResultSet;
29  import java.sql.ResultSetMetaData;
30  import java.sql.RowId;
31  import java.sql.SQLException;
32  import java.sql.SQLWarning;
33  import java.sql.SQLXML;
34  import java.sql.Statement;
35  import java.sql.Time;
36  import java.sql.Timestamp;
37  import java.util.Calendar;
38  import java.util.Map;
39  
40  class NullResultSet implements ResultSet {
41  
42      NullResultSet() {
43          // TODO Auto-generated constructor stub
44      }
45  
46      @Override
47      public boolean isWrapperFor(final Class<?> arg0) throws SQLException {
48  
49          return false;
50      }
51  
52      @Override
53      public <T> T unwrap(final Class<T> arg0) throws SQLException {
54  
55          return null;
56      }
57  
58      @Override
59      public boolean absolute(final int row) throws SQLException {
60  
61          return false;
62      }
63  
64      @Override
65      public void afterLast() throws SQLException {
66  
67      }
68  
69      @Override
70      public void beforeFirst() throws SQLException {
71  
72      }
73  
74      @Override
75      public void cancelRowUpdates() throws SQLException {
76  
77      }
78  
79      @Override
80      public void clearWarnings() throws SQLException {
81  
82      }
83  
84      @Override
85      public void close() throws SQLException {
86  
87      }
88  
89      @Override
90      public void deleteRow() throws SQLException {
91  
92      }
93  
94      @Override
95      public int findColumn(final String columnLabel) throws SQLException {
96  
97          return 0;
98      }
99  
100     @Override
101     public boolean first() throws SQLException {
102 
103         return false;
104     }
105 
106     @Override
107     public Array getArray(final int columnIndex) throws SQLException {
108 
109         return null;
110     }
111 
112     @Override
113     public Array getArray(final String columnLabel) throws SQLException {
114 
115         return null;
116     }
117 
118     @Override
119     public InputStream getAsciiStream(final int columnIndex) throws SQLException {
120 
121         return null;
122     }
123 
124     @Override
125     public InputStream getAsciiStream(final String columnLabel) throws SQLException {
126 
127         return null;
128     }
129 
130     @Override
131     public BigDecimal getBigDecimal(final int columnIndex) throws SQLException {
132 
133         return null;
134     }
135 
136     @Override
137     public BigDecimal getBigDecimal(final String columnLabel) throws SQLException {
138 
139         return null;
140     }
141 
142     @Override
143     public BigDecimal getBigDecimal(final int columnIndex, final int scale) throws SQLException {
144 
145         return null;
146     }
147 
148     @Override
149     public BigDecimal getBigDecimal(final String columnLabel, final int scale) throws SQLException {
150 
151         return null;
152     }
153 
154     @Override
155     public InputStream getBinaryStream(final int columnIndex) throws SQLException {
156 
157         return null;
158     }
159 
160     @Override
161     public InputStream getBinaryStream(final String columnLabel) throws SQLException {
162 
163         return null;
164     }
165 
166     @Override
167     public Blob getBlob(final int columnIndex) throws SQLException {
168 
169         return null;
170     }
171 
172     @Override
173     public Blob getBlob(final String columnLabel) throws SQLException {
174 
175         return null;
176     }
177 
178     @Override
179     public boolean getBoolean(final int columnIndex) throws SQLException {
180 
181         return false;
182     }
183 
184     @Override
185     public boolean getBoolean(final String columnLabel) throws SQLException {
186 
187         return false;
188     }
189 
190     @Override
191     public byte getByte(final int columnIndex) throws SQLException {
192 
193         return 0;
194     }
195 
196     @Override
197     public byte getByte(final String columnLabel) throws SQLException {
198 
199         return 0;
200     }
201 
202     @Override
203     public byte[] getBytes(final int columnIndex) throws SQLException {
204 
205         return null;
206     }
207 
208     @Override
209     public byte[] getBytes(final String columnLabel) throws SQLException {
210 
211         return null;
212     }
213 
214     @Override
215     public Reader getCharacterStream(final int columnIndex) throws SQLException {
216 
217         return null;
218     }
219 
220     @Override
221     public Reader getCharacterStream(final String columnLabel) throws SQLException {
222 
223         return null;
224     }
225 
226     @Override
227     public Clob getClob(final int columnIndex) throws SQLException {
228 
229         return null;
230     }
231 
232     @Override
233     public Clob getClob(final String columnLabel) throws SQLException {
234 
235         return null;
236     }
237 
238     @Override
239     public int getConcurrency() throws SQLException {
240 
241         return 0;
242     }
243 
244     @Override
245     public String getCursorName() throws SQLException {
246 
247         return null;
248     }
249 
250     @Override
251     public Date getDate(final int columnIndex) throws SQLException {
252 
253         return null;
254     }
255 
256     @Override
257     public Date getDate(final String columnLabel) throws SQLException {
258 
259         return null;
260     }
261 
262     @Override
263     public Date getDate(final int columnIndex, final Calendar cal) throws SQLException {
264 
265         return null;
266     }
267 
268     @Override
269     public Date getDate(final String columnLabel, final Calendar cal) throws SQLException {
270 
271         return null;
272     }
273 
274     @Override
275     public double getDouble(final int columnIndex) throws SQLException {
276 
277         return 0;
278     }
279 
280     @Override
281     public double getDouble(final String columnLabel) throws SQLException {
282 
283         return 0;
284     }
285 
286     @Override
287     public int getFetchDirection() throws SQLException {
288 
289         return 0;
290     }
291 
292     @Override
293     public int getFetchSize() throws SQLException {
294 
295         return 0;
296     }
297 
298     @Override
299     public float getFloat(final int columnIndex) throws SQLException {
300 
301         return 0;
302     }
303 
304     @Override
305     public float getFloat(final String columnLabel) throws SQLException {
306 
307         return 0;
308     }
309 
310     @Override
311     public int getHoldability() throws SQLException {
312 
313         return 0;
314     }
315 
316     @Override
317     public int getInt(final int columnIndex) throws SQLException {
318 
319         return 0;
320     }
321 
322     @Override
323     public int getInt(final String columnLabel) throws SQLException {
324 
325         return 0;
326     }
327 
328     @Override
329     public long getLong(final int columnIndex) throws SQLException {
330 
331         return 0;
332     }
333 
334     @Override
335     public long getLong(final String columnLabel) throws SQLException {
336 
337         return 0;
338     }
339 
340     @Override
341     public ResultSetMetaData getMetaData() throws SQLException {
342 
343         return null;
344     }
345 
346     @Override
347     public Reader getNCharacterStream(final int columnIndex) throws SQLException {
348 
349         return null;
350     }
351 
352     @Override
353     public Reader getNCharacterStream(final String columnLabel) throws SQLException {
354 
355         return null;
356     }
357 
358     @Override
359     public NClob getNClob(final int columnIndex) throws SQLException {
360 
361         return null;
362     }
363 
364     @Override
365     public NClob getNClob(final String columnLabel) throws SQLException {
366 
367         return null;
368     }
369 
370     @Override
371     public String getNString(final int columnIndex) throws SQLException {
372 
373         return null;
374     }
375 
376     @Override
377     public String getNString(final String columnLabel) throws SQLException {
378 
379         return null;
380     }
381 
382     @Override
383     public Object getObject(final int columnIndex) throws SQLException {
384 
385         return null;
386     }
387 
388     @Override
389     public Object getObject(final String columnLabel) throws SQLException {
390 
391         return null;
392     }
393 
394     @Override
395     public Object getObject(final int columnIndex, final Map<String, Class<?>> map) throws SQLException {
396 
397         return null;
398     }
399 
400     @Override
401     public Object getObject(final String columnLabel, final Map<String, Class<?>> map) throws SQLException {
402 
403         return null;
404     }
405 
406     @Override
407     public <T> T getObject(final int columnIndex, final Class<T> type) throws SQLException {
408 
409         return null;
410     }
411 
412     @Override
413     public <T> T getObject(final String columnLabel, final Class<T> type) throws SQLException {
414 
415         return null;
416     }
417 
418     @Override
419     public Ref getRef(final int columnIndex) throws SQLException {
420 
421         return null;
422     }
423 
424     @Override
425     public Ref getRef(final String columnLabel) throws SQLException {
426 
427         return null;
428     }
429 
430     @Override
431     public int getRow() throws SQLException {
432 
433         return 0;
434     }
435 
436     @Override
437     public RowId getRowId(final int columnIndex) throws SQLException {
438 
439         return null;
440     }
441 
442     @Override
443     public RowId getRowId(final String columnLabel) throws SQLException {
444 
445         return null;
446     }
447 
448     @Override
449     public SQLXML getSQLXML(final int columnIndex) throws SQLException {
450 
451         return null;
452     }
453 
454     @Override
455     public SQLXML getSQLXML(final String columnLabel) throws SQLException {
456 
457         return null;
458     }
459 
460     @Override
461     public short getShort(final int columnIndex) throws SQLException {
462 
463         return 0;
464     }
465 
466     @Override
467     public short getShort(final String columnLabel) throws SQLException {
468 
469         return 0;
470     }
471 
472     @Override
473     public Statement getStatement() throws SQLException {
474 
475         return null;
476     }
477 
478     @Override
479     public String getString(final int columnIndex) throws SQLException {
480 
481         return null;
482     }
483 
484     @Override
485     public String getString(final String columnLabel) throws SQLException {
486 
487         return null;
488     }
489 
490     @Override
491     public Time getTime(final int columnIndex) throws SQLException {
492 
493         return null;
494     }
495 
496     @Override
497     public Time getTime(final String columnLabel) throws SQLException {
498 
499         return null;
500     }
501 
502     @Override
503     public Time getTime(final int columnIndex, final Calendar cal) throws SQLException {
504 
505         return null;
506     }
507 
508     @Override
509     public Time getTime(final String columnLabel, final Calendar cal) throws SQLException {
510 
511         return null;
512     }
513 
514     @Override
515     public Timestamp getTimestamp(final int columnIndex) throws SQLException {
516 
517         return null;
518     }
519 
520     @Override
521     public Timestamp getTimestamp(final String columnLabel) throws SQLException {
522 
523         return null;
524     }
525 
526     @Override
527     public Timestamp getTimestamp(final int columnIndex, final Calendar cal) throws SQLException {
528 
529         return null;
530     }
531 
532     @Override
533     public Timestamp getTimestamp(final String columnLabel, final Calendar cal) throws SQLException {
534 
535         return null;
536     }
537 
538     @Override
539     public int getType() throws SQLException {
540 
541         return 0;
542     }
543 
544     @Override
545     public URL getURL(final int columnIndex) throws SQLException {
546 
547         return null;
548     }
549 
550     @Override
551     public URL getURL(final String columnLabel) throws SQLException {
552 
553         return null;
554     }
555 
556     @Override
557     public InputStream getUnicodeStream(final int columnIndex) throws SQLException {
558 
559         return null;
560     }
561 
562     @Override
563     public InputStream getUnicodeStream(final String columnLabel) throws SQLException {
564 
565         return null;
566     }
567 
568     @Override
569     public SQLWarning getWarnings() throws SQLException {
570 
571         return null;
572     }
573 
574     @Override
575     public void insertRow() throws SQLException {
576 
577     }
578 
579     @Override
580     public boolean isAfterLast() throws SQLException {
581 
582         return false;
583     }
584 
585     @Override
586     public boolean isBeforeFirst() throws SQLException {
587 
588         return false;
589     }
590 
591     @Override
592     public boolean isClosed() throws SQLException {
593 
594         return false;
595     }
596 
597     @Override
598     public boolean isFirst() throws SQLException {
599 
600         return false;
601     }
602 
603     @Override
604     public boolean isLast() throws SQLException {
605 
606         return false;
607     }
608 
609     @Override
610     public boolean last() throws SQLException {
611 
612         return false;
613     }
614 
615     @Override
616     public void moveToCurrentRow() throws SQLException {
617 
618     }
619 
620     @Override
621     public void moveToInsertRow() throws SQLException {
622 
623     }
624 
625     @Override
626     public boolean next() throws SQLException {
627 
628         return false;
629     }
630 
631     @Override
632     public boolean previous() throws SQLException {
633 
634         return false;
635     }
636 
637     @Override
638     public void refreshRow() throws SQLException {
639 
640     }
641 
642     @Override
643     public boolean relative(final int rows) throws SQLException {
644 
645         return false;
646     }
647 
648     @Override
649     public boolean rowDeleted() throws SQLException {
650 
651         return false;
652     }
653 
654     @Override
655     public boolean rowInserted() throws SQLException {
656 
657         return false;
658     }
659 
660     @Override
661     public boolean rowUpdated() throws SQLException {
662 
663         return false;
664     }
665 
666     @Override
667     public void setFetchDirection(final int direction) throws SQLException {
668 
669     }
670 
671     @Override
672     public void setFetchSize(final int rows) throws SQLException {
673 
674     }
675 
676     @Override
677     public void updateArray(final int columnIndex, final Array x) throws SQLException {
678 
679     }
680 
681     @Override
682     public void updateArray(final String columnLabel, final Array x) throws SQLException {
683 
684     }
685 
686     @Override
687     public void updateAsciiStream(final int columnIndex, final InputStream x) throws SQLException {
688 
689     }
690 
691     @Override
692     public void updateAsciiStream(final String columnLabel, final InputStream x) throws SQLException {
693 
694     }
695 
696     @Override
697     public void updateAsciiStream(final int columnIndex, final InputStream x, final int length) throws SQLException {
698 
699     }
700 
701     @Override
702     public void updateAsciiStream(final String columnLabel, final InputStream x, final int length) throws SQLException {
703 
704     }
705 
706     @Override
707     public void updateAsciiStream(final int columnIndex, final InputStream x, final long length) throws SQLException {
708 
709     }
710 
711     @Override
712     public void updateAsciiStream(final String columnLabel, final InputStream x, final long length) throws SQLException {
713 
714     }
715 
716     @Override
717     public void updateBigDecimal(final int columnIndex, final BigDecimal x) throws SQLException {
718 
719     }
720 
721     @Override
722     public void updateBigDecimal(final String columnLabel, final BigDecimal x) throws SQLException {
723 
724     }
725 
726     @Override
727     public void updateBinaryStream(final int columnIndex, final InputStream x) throws SQLException {
728 
729     }
730 
731     @Override
732     public void updateBinaryStream(final String columnLabel, final InputStream x) throws SQLException {
733 
734     }
735 
736     @Override
737     public void updateBinaryStream(final int columnIndex, final InputStream x, final int length) throws SQLException {
738 
739     }
740 
741     @Override
742     public void updateBinaryStream(final String columnLabel, final InputStream x, final int length) throws SQLException {
743 
744     }
745 
746     @Override
747     public void updateBinaryStream(final int columnIndex, final InputStream x, final long length) throws SQLException {
748 
749     }
750 
751     @Override
752     public void updateBinaryStream(final String columnLabel, final InputStream x, final long length) throws SQLException {
753 
754     }
755 
756     @Override
757     public void updateBlob(final int columnIndex, final Blob x) throws SQLException {
758 
759     }
760 
761     @Override
762     public void updateBlob(final String columnLabel, final Blob x) throws SQLException {
763 
764     }
765 
766     @Override
767     public void updateBlob(final int columnIndex, final InputStream inputStream) throws SQLException {
768 
769     }
770 
771     @Override
772     public void updateBlob(final String columnLabel, final InputStream inputStream) throws SQLException {
773 
774     }
775 
776     @Override
777     public void updateBlob(final int columnIndex, final InputStream inputStream, final long length) throws SQLException {
778 
779     }
780 
781     @Override
782     public void updateBlob(final String columnLabel, final InputStream inputStream, final long length) throws SQLException {
783 
784     }
785 
786     @Override
787     public void updateBoolean(final int columnIndex, final boolean x) throws SQLException {
788 
789     }
790 
791     @Override
792     public void updateBoolean(final String columnLabel, final boolean x) throws SQLException {
793 
794     }
795 
796     @Override
797     public void updateByte(final int columnIndex, final byte x) throws SQLException {
798 
799     }
800 
801     @Override
802     public void updateByte(final String columnLabel, final byte x) throws SQLException {
803 
804     }
805 
806     @Override
807     public void updateBytes(final int columnIndex, final byte[] x) throws SQLException {
808 
809     }
810 
811     @Override
812     public void updateBytes(final String columnLabel, final byte[] x) throws SQLException {
813 
814     }
815 
816     @Override
817     public void updateCharacterStream(final int columnIndex, final Reader x) throws SQLException {
818 
819     }
820 
821     @Override
822     public void updateCharacterStream(final String columnLabel, final Reader reader) throws SQLException {
823 
824     }
825 
826     @Override
827     public void updateCharacterStream(final int columnIndex, final Reader x, final int length) throws SQLException {
828 
829     }
830 
831     @Override
832     public void updateCharacterStream(final String columnLabel, final Reader reader, final int length) throws SQLException {
833 
834     }
835 
836     @Override
837     public void updateCharacterStream(final int columnIndex, final Reader x, final long length) throws SQLException {
838 
839     }
840 
841     @Override
842     public void updateCharacterStream(final String columnLabel, final Reader reader, final long length) throws SQLException {
843 
844     }
845 
846     @Override
847     public void updateClob(final int columnIndex, final Clob x) throws SQLException {
848 
849     }
850 
851     @Override
852     public void updateClob(final String columnLabel, final Clob x) throws SQLException {
853 
854     }
855 
856     @Override
857     public void updateClob(final int columnIndex, final Reader reader) throws SQLException {
858 
859     }
860 
861     @Override
862     public void updateClob(final String columnLabel, final Reader reader) throws SQLException {
863 
864     }
865 
866     @Override
867     public void updateClob(final int columnIndex, final Reader reader, final long length) throws SQLException {
868 
869     }
870 
871     @Override
872     public void updateClob(final String columnLabel, final Reader reader, final long length) throws SQLException {
873 
874     }
875 
876     @Override
877     public void updateDate(final int columnIndex, final Date x) throws SQLException {
878 
879     }
880 
881     @Override
882     public void updateDate(final String columnLabel, final Date x) throws SQLException {
883 
884     }
885 
886     @Override
887     public void updateDouble(final int columnIndex, final double x) throws SQLException {
888 
889     }
890 
891     @Override
892     public void updateDouble(final String columnLabel, final double x) throws SQLException {
893 
894     }
895 
896     @Override
897     public void updateFloat(final int columnIndex, final float x) throws SQLException {
898 
899     }
900 
901     @Override
902     public void updateFloat(final String columnLabel, final float x) throws SQLException {
903 
904     }
905 
906     @Override
907     public void updateInt(final int columnIndex, final int x) throws SQLException {
908 
909     }
910 
911     @Override
912     public void updateInt(final String columnLabel, final int x) throws SQLException {
913 
914     }
915 
916     @Override
917     public void updateLong(final int columnIndex, final long x) throws SQLException {
918 
919     }
920 
921     @Override
922     public void updateLong(final String columnLabel, final long x) throws SQLException {
923 
924     }
925 
926     @Override
927     public void updateNCharacterStream(final int columnIndex, final Reader x) throws SQLException {
928 
929     }
930 
931     @Override
932     public void updateNCharacterStream(final String columnLabel, final Reader reader) throws SQLException {
933 
934     }
935 
936     @Override
937     public void updateNCharacterStream(final int columnIndex, final Reader x, final long length) throws SQLException {
938 
939     }
940 
941     @Override
942     public void updateNCharacterStream(final String columnLabel, final Reader reader, final long length) throws SQLException {
943 
944     }
945 
946     @Override
947     public void updateNClob(final int columnIndex, final NClob nClob) throws SQLException {
948 
949     }
950 
951     @Override
952     public void updateNClob(final String columnLabel, final NClob nClob) throws SQLException {
953 
954     }
955 
956     @Override
957     public void updateNClob(final int columnIndex, final Reader reader) throws SQLException {
958 
959     }
960 
961     @Override
962     public void updateNClob(final String columnLabel, final Reader reader) throws SQLException {
963 
964     }
965 
966     @Override
967     public void updateNClob(final int columnIndex, final Reader reader, final long length) throws SQLException {
968 
969     }
970 
971     @Override
972     public void updateNClob(final String columnLabel, final Reader reader, final long length) throws SQLException {
973 
974     }
975 
976     @Override
977     public void updateNString(final int columnIndex, final String nString) throws SQLException {
978 
979     }
980 
981     @Override
982     public void updateNString(final String columnLabel, final String nString) throws SQLException {
983 
984     }
985 
986     @Override
987     public void updateNull(final int columnIndex) throws SQLException {
988 
989     }
990 
991     @Override
992     public void updateNull(final String columnLabel) throws SQLException {
993 
994     }
995 
996     @Override
997     public void updateObject(final int columnIndex, final Object x) throws SQLException {
998 
999     }
1000 
1001     @Override
1002     public void updateObject(final String columnLabel, final Object x) throws SQLException {
1003 
1004     }
1005 
1006     @Override
1007     public void updateObject(final int columnIndex, final Object x, final int scaleOrLength) throws SQLException {
1008 
1009     }
1010 
1011     @Override
1012     public void updateObject(final String columnLabel, final Object x, final int scaleOrLength) throws SQLException {
1013 
1014     }
1015 
1016     @Override
1017     public void updateRef(final int columnIndex, final Ref x) throws SQLException {
1018 
1019     }
1020 
1021     @Override
1022     public void updateRef(final String columnLabel, final Ref x) throws SQLException {
1023 
1024     }
1025 
1026     @Override
1027     public void updateRow() throws SQLException {
1028 
1029     }
1030 
1031     @Override
1032     public void updateRowId(final int columnIndex, final RowId x) throws SQLException {
1033 
1034     }
1035 
1036     @Override
1037     public void updateRowId(final String columnLabel, final RowId x) throws SQLException {
1038 
1039     }
1040 
1041     @Override
1042     public void updateSQLXML(final int columnIndex, final SQLXML xmlObject) throws SQLException {
1043 
1044     }
1045 
1046     @Override
1047     public void updateSQLXML(final String columnLabel, final SQLXML xmlObject) throws SQLException {
1048 
1049     }
1050 
1051     @Override
1052     public void updateShort(final int columnIndex, final short x) throws SQLException {
1053 
1054     }
1055 
1056     @Override
1057     public void updateShort(final String columnLabel, final short x) throws SQLException {
1058 
1059     }
1060 
1061     @Override
1062     public void updateString(final int columnIndex, final String x) throws SQLException {
1063 
1064     }
1065 
1066     @Override
1067     public void updateString(final String columnLabel, final String x) throws SQLException {
1068 
1069     }
1070 
1071     @Override
1072     public void updateTime(final int columnIndex, final Time x) throws SQLException {
1073 
1074     }
1075 
1076     @Override
1077     public void updateTime(final String columnLabel, final Time x) throws SQLException {
1078 
1079     }
1080 
1081     @Override
1082     public void updateTimestamp(final int columnIndex, final Timestamp x) throws SQLException {
1083 
1084     }
1085 
1086     @Override
1087     public void updateTimestamp(final String columnLabel, final Timestamp x) throws SQLException {
1088 
1089     }
1090 
1091     @Override
1092     public boolean wasNull() throws SQLException {
1093 
1094         return false;
1095     }
1096 
1097 }