java/jdbc-loopback-driver/src/main/java/info/globalcode/jdbc/loopback/AbstractResultSet.java
tabular formatter: new option 'separateBy' to print horizontal separator on each change of given column
3 * Copyright © 2014 František Kučera (frantovo.cz)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package info.globalcode.jdbc.loopback;
19 import java.io.InputStream;
20 import java.io.Reader;
21 import java.math.BigDecimal;
23 import java.sql.Array;
27 import java.sql.NClob;
29 import java.sql.RowId;
30 import java.sql.SQLException;
31 import java.sql.SQLWarning;
32 import java.sql.SQLXML;
33 import java.sql.Statement;
35 import java.sql.Timestamp;
36 import java.util.Calendar;
41 * @author Ing. František Kučera (frantovo.cz)
43 public abstract class AbstractResultSet implements java.sql.ResultSet {
46 public boolean next() throws SQLException {
47 throw new SQLException("Not supported yet.");
51 public void close() throws SQLException {
52 throw new SQLException("Not supported yet.");
56 public boolean wasNull() throws SQLException {
57 throw new SQLException("Not supported yet.");
61 public String getString(int columnIndex) throws SQLException {
62 throw new SQLException("Not supported yet.");
66 public boolean getBoolean(int columnIndex) throws SQLException {
67 throw new SQLException("Not supported yet.");
71 public byte getByte(int columnIndex) throws SQLException {
72 throw new SQLException("Not supported yet.");
76 public short getShort(int columnIndex) throws SQLException {
77 throw new SQLException("Not supported yet.");
81 public int getInt(int columnIndex) throws SQLException {
82 throw new SQLException("Not supported yet.");
86 public long getLong(int columnIndex) throws SQLException {
87 throw new SQLException("Not supported yet.");
91 public float getFloat(int columnIndex) throws SQLException {
92 throw new SQLException("Not supported yet.");
96 public double getDouble(int columnIndex) throws SQLException {
97 throw new SQLException("Not supported yet.");
101 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
102 throw new SQLException("Not supported yet.");
106 public byte[] getBytes(int columnIndex) throws SQLException {
107 throw new SQLException("Not supported yet.");
111 public Date getDate(int columnIndex) throws SQLException {
112 throw new SQLException("Not supported yet.");
116 public Time getTime(int columnIndex) throws SQLException {
117 throw new SQLException("Not supported yet.");
121 public Timestamp getTimestamp(int columnIndex) throws SQLException {
122 throw new SQLException("Not supported yet.");
126 public InputStream getAsciiStream(int columnIndex) throws SQLException {
127 throw new SQLException("Not supported yet.");
131 public InputStream getUnicodeStream(int columnIndex) throws SQLException {
132 throw new SQLException("Not supported yet.");
136 public InputStream getBinaryStream(int columnIndex) throws SQLException {
137 throw new SQLException("Not supported yet.");
141 public String getString(String columnLabel) throws SQLException {
142 throw new SQLException("Not supported yet.");
146 public boolean getBoolean(String columnLabel) throws SQLException {
147 throw new SQLException("Not supported yet.");
151 public byte getByte(String columnLabel) throws SQLException {
152 throw new SQLException("Not supported yet.");
156 public short getShort(String columnLabel) throws SQLException {
157 throw new SQLException("Not supported yet.");
161 public int getInt(String columnLabel) throws SQLException {
162 throw new SQLException("Not supported yet.");
166 public long getLong(String columnLabel) throws SQLException {
167 throw new SQLException("Not supported yet.");
171 public float getFloat(String columnLabel) throws SQLException {
172 throw new SQLException("Not supported yet.");
176 public double getDouble(String columnLabel) throws SQLException {
177 throw new SQLException("Not supported yet.");
181 public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
182 throw new SQLException("Not supported yet.");
186 public byte[] getBytes(String columnLabel) throws SQLException {
187 throw new SQLException("Not supported yet.");
191 public Date getDate(String columnLabel) throws SQLException {
192 throw new SQLException("Not supported yet.");
196 public Time getTime(String columnLabel) throws SQLException {
197 throw new SQLException("Not supported yet.");
201 public Timestamp getTimestamp(String columnLabel) throws SQLException {
202 throw new SQLException("Not supported yet.");
206 public InputStream getAsciiStream(String columnLabel) throws SQLException {
207 throw new SQLException("Not supported yet.");
211 public InputStream getUnicodeStream(String columnLabel) throws SQLException {
212 throw new SQLException("Not supported yet.");
216 public InputStream getBinaryStream(String columnLabel) throws SQLException {
217 throw new SQLException("Not supported yet.");
221 public SQLWarning getWarnings() throws SQLException {
222 throw new SQLException("Not supported yet.");
226 public void clearWarnings() throws SQLException {
227 throw new SQLException("Not supported yet.");
231 public String getCursorName() throws SQLException {
232 throw new SQLException("Not supported yet.");
236 public java.sql.ResultSetMetaData getMetaData() throws SQLException {
237 throw new SQLException("Not supported yet.");
241 public Object getObject(int columnIndex) throws SQLException {
242 throw new SQLException("Not supported yet.");
246 public Object getObject(String columnLabel) throws SQLException {
247 throw new SQLException("Not supported yet.");
251 public int findColumn(String columnLabel) throws SQLException {
252 throw new SQLException("Not supported yet.");
256 public Reader getCharacterStream(int columnIndex) throws SQLException {
257 throw new SQLException("Not supported yet.");
261 public Reader getCharacterStream(String columnLabel) throws SQLException {
262 throw new SQLException("Not supported yet.");
266 public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
267 throw new SQLException("Not supported yet.");
271 public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
272 throw new SQLException("Not supported yet.");
276 public boolean isBeforeFirst() throws SQLException {
277 throw new SQLException("Not supported yet.");
281 public boolean isAfterLast() throws SQLException {
282 throw new SQLException("Not supported yet.");
286 public boolean isFirst() throws SQLException {
287 throw new SQLException("Not supported yet.");
291 public boolean isLast() throws SQLException {
292 throw new SQLException("Not supported yet.");
296 public void beforeFirst() throws SQLException {
297 throw new SQLException("Not supported yet.");
301 public void afterLast() throws SQLException {
302 throw new SQLException("Not supported yet.");
306 public boolean first() throws SQLException {
307 throw new SQLException("Not supported yet.");
311 public boolean last() throws SQLException {
312 throw new SQLException("Not supported yet.");
316 public int getRow() throws SQLException {
317 throw new SQLException("Not supported yet.");
321 public boolean absolute(int row) throws SQLException {
322 throw new SQLException("Not supported yet.");
326 public boolean relative(int rows) throws SQLException {
327 throw new SQLException("Not supported yet.");
331 public boolean previous() throws SQLException {
332 throw new SQLException("Not supported yet.");
336 public void setFetchDirection(int direction) throws SQLException {
337 throw new SQLException("Not supported yet.");
341 public int getFetchDirection() throws SQLException {
342 throw new SQLException("Not supported yet.");
346 public void setFetchSize(int rows) throws SQLException {
347 throw new SQLException("Not supported yet.");
351 public int getFetchSize() throws SQLException {
352 throw new SQLException("Not supported yet.");
356 public int getType() throws SQLException {
357 throw new SQLException("Not supported yet.");
361 public int getConcurrency() throws SQLException {
362 throw new SQLException("Not supported yet.");
366 public boolean rowUpdated() throws SQLException {
367 throw new SQLException("Not supported yet.");
371 public boolean rowInserted() throws SQLException {
372 throw new SQLException("Not supported yet.");
376 public boolean rowDeleted() throws SQLException {
377 throw new SQLException("Not supported yet.");
381 public void updateNull(int columnIndex) throws SQLException {
382 throw new SQLException("Not supported yet.");
386 public void updateBoolean(int columnIndex, boolean x) throws SQLException {
387 throw new SQLException("Not supported yet.");
391 public void updateByte(int columnIndex, byte x) throws SQLException {
392 throw new SQLException("Not supported yet.");
396 public void updateShort(int columnIndex, short x) throws SQLException {
397 throw new SQLException("Not supported yet.");
401 public void updateInt(int columnIndex, int x) throws SQLException {
402 throw new SQLException("Not supported yet.");
406 public void updateLong(int columnIndex, long x) throws SQLException {
407 throw new SQLException("Not supported yet.");
411 public void updateFloat(int columnIndex, float x) throws SQLException {
412 throw new SQLException("Not supported yet.");
416 public void updateDouble(int columnIndex, double x) throws SQLException {
417 throw new SQLException("Not supported yet.");
421 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
422 throw new SQLException("Not supported yet.");
426 public void updateString(int columnIndex, String x) throws SQLException {
427 throw new SQLException("Not supported yet.");
431 public void updateBytes(int columnIndex, byte[] x) throws SQLException {
432 throw new SQLException("Not supported yet.");
436 public void updateDate(int columnIndex, Date x) throws SQLException {
437 throw new SQLException("Not supported yet.");
441 public void updateTime(int columnIndex, Time x) throws SQLException {
442 throw new SQLException("Not supported yet.");
446 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
447 throw new SQLException("Not supported yet.");
451 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
452 throw new SQLException("Not supported yet.");
456 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
457 throw new SQLException("Not supported yet.");
461 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
462 throw new SQLException("Not supported yet.");
466 public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
467 throw new SQLException("Not supported yet.");
471 public void updateObject(int columnIndex, Object x) throws SQLException {
472 throw new SQLException("Not supported yet.");
476 public void updateNull(String columnLabel) throws SQLException {
477 throw new SQLException("Not supported yet.");
481 public void updateBoolean(String columnLabel, boolean x) throws SQLException {
482 throw new SQLException("Not supported yet.");
486 public void updateByte(String columnLabel, byte x) throws SQLException {
487 throw new SQLException("Not supported yet.");
491 public void updateShort(String columnLabel, short x) throws SQLException {
492 throw new SQLException("Not supported yet.");
496 public void updateInt(String columnLabel, int x) throws SQLException {
497 throw new SQLException("Not supported yet.");
501 public void updateLong(String columnLabel, long x) throws SQLException {
502 throw new SQLException("Not supported yet.");
506 public void updateFloat(String columnLabel, float x) throws SQLException {
507 throw new SQLException("Not supported yet.");
511 public void updateDouble(String columnLabel, double x) throws SQLException {
512 throw new SQLException("Not supported yet.");
516 public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
517 throw new SQLException("Not supported yet.");
521 public void updateString(String columnLabel, String x) throws SQLException {
522 throw new SQLException("Not supported yet.");
526 public void updateBytes(String columnLabel, byte[] x) throws SQLException {
527 throw new SQLException("Not supported yet.");
531 public void updateDate(String columnLabel, Date x) throws SQLException {
532 throw new SQLException("Not supported yet.");
536 public void updateTime(String columnLabel, Time x) throws SQLException {
537 throw new SQLException("Not supported yet.");
541 public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
542 throw new SQLException("Not supported yet.");
546 public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
547 throw new SQLException("Not supported yet.");
551 public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
552 throw new SQLException("Not supported yet.");
556 public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
557 throw new SQLException("Not supported yet.");
561 public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
562 throw new SQLException("Not supported yet.");
566 public void updateObject(String columnLabel, Object x) throws SQLException {
567 throw new SQLException("Not supported yet.");
571 public void insertRow() throws SQLException {
572 throw new SQLException("Not supported yet.");
576 public void updateRow() throws SQLException {
577 throw new SQLException("Not supported yet.");
581 public void deleteRow() throws SQLException {
582 throw new SQLException("Not supported yet.");
586 public void refreshRow() throws SQLException {
587 throw new SQLException("Not supported yet.");
591 public void cancelRowUpdates() throws SQLException {
592 throw new SQLException("Not supported yet.");
596 public void moveToInsertRow() throws SQLException {
597 throw new SQLException("Not supported yet.");
601 public void moveToCurrentRow() throws SQLException {
602 throw new SQLException("Not supported yet.");
606 public Statement getStatement() throws SQLException {
607 throw new SQLException("Not supported yet.");
611 public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
612 throw new SQLException("Not supported yet.");
616 public Ref getRef(int columnIndex) throws SQLException {
617 throw new SQLException("Not supported yet.");
621 public Blob getBlob(int columnIndex) throws SQLException {
622 throw new SQLException("Not supported yet.");
626 public Clob getClob(int columnIndex) throws SQLException {
627 throw new SQLException("Not supported yet.");
631 public Array getArray(int columnIndex) throws SQLException {
632 throw new SQLException("Not supported yet.");
636 public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
637 throw new SQLException("Not supported yet.");
641 public Ref getRef(String columnLabel) throws SQLException {
642 throw new SQLException("Not supported yet.");
646 public Blob getBlob(String columnLabel) throws SQLException {
647 throw new SQLException("Not supported yet.");
651 public Clob getClob(String columnLabel) throws SQLException {
652 throw new SQLException("Not supported yet.");
656 public Array getArray(String columnLabel) throws SQLException {
657 throw new SQLException("Not supported yet.");
661 public Date getDate(int columnIndex, Calendar cal) throws SQLException {
662 throw new SQLException("Not supported yet.");
666 public Date getDate(String columnLabel, Calendar cal) throws SQLException {
667 throw new SQLException("Not supported yet.");
671 public Time getTime(int columnIndex, Calendar cal) throws SQLException {
672 throw new SQLException("Not supported yet.");
676 public Time getTime(String columnLabel, Calendar cal) throws SQLException {
677 throw new SQLException("Not supported yet.");
681 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
682 throw new SQLException("Not supported yet.");
686 public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
687 throw new SQLException("Not supported yet.");
691 public URL getURL(int columnIndex) throws SQLException {
692 throw new SQLException("Not supported yet.");
696 public URL getURL(String columnLabel) throws SQLException {
697 throw new SQLException("Not supported yet.");
701 public void updateRef(int columnIndex, Ref x) throws SQLException {
702 throw new SQLException("Not supported yet.");
706 public void updateRef(String columnLabel, Ref x) throws SQLException {
707 throw new SQLException("Not supported yet.");
711 public void updateBlob(int columnIndex, Blob x) throws SQLException {
712 throw new SQLException("Not supported yet.");
716 public void updateBlob(String columnLabel, Blob x) throws SQLException {
717 throw new SQLException("Not supported yet.");
721 public void updateClob(int columnIndex, Clob x) throws SQLException {
722 throw new SQLException("Not supported yet.");
726 public void updateClob(String columnLabel, Clob x) throws SQLException {
727 throw new SQLException("Not supported yet.");
731 public void updateArray(int columnIndex, Array x) throws SQLException {
732 throw new SQLException("Not supported yet.");
736 public void updateArray(String columnLabel, Array x) throws SQLException {
737 throw new SQLException("Not supported yet.");
741 public RowId getRowId(int columnIndex) throws SQLException {
742 throw new SQLException("Not supported yet.");
746 public RowId getRowId(String columnLabel) throws SQLException {
747 throw new SQLException("Not supported yet.");
751 public void updateRowId(int columnIndex, RowId x) throws SQLException {
752 throw new SQLException("Not supported yet.");
756 public void updateRowId(String columnLabel, RowId x) throws SQLException {
757 throw new SQLException("Not supported yet.");
761 public int getHoldability() throws SQLException {
762 throw new SQLException("Not supported yet.");
766 public boolean isClosed() throws SQLException {
767 throw new SQLException("Not supported yet.");
771 public void updateNString(int columnIndex, String nString) throws SQLException {
772 throw new SQLException("Not supported yet.");
776 public void updateNString(String columnLabel, String nString) throws SQLException {
777 throw new SQLException("Not supported yet.");
781 public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
782 throw new SQLException("Not supported yet.");
786 public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
787 throw new SQLException("Not supported yet.");
791 public NClob getNClob(int columnIndex) throws SQLException {
792 throw new SQLException("Not supported yet.");
796 public NClob getNClob(String columnLabel) throws SQLException {
797 throw new SQLException("Not supported yet.");
801 public SQLXML getSQLXML(int columnIndex) throws SQLException {
802 throw new SQLException("Not supported yet.");
806 public SQLXML getSQLXML(String columnLabel) throws SQLException {
807 throw new SQLException("Not supported yet.");
811 public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
812 throw new SQLException("Not supported yet.");
816 public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
817 throw new SQLException("Not supported yet.");
821 public String getNString(int columnIndex) throws SQLException {
822 throw new SQLException("Not supported yet.");
826 public String getNString(String columnLabel) throws SQLException {
827 throw new SQLException("Not supported yet.");
831 public Reader getNCharacterStream(int columnIndex) throws SQLException {
832 throw new SQLException("Not supported yet.");
836 public Reader getNCharacterStream(String columnLabel) throws SQLException {
837 throw new SQLException("Not supported yet.");
841 public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
842 throw new SQLException("Not supported yet.");
846 public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
847 throw new SQLException("Not supported yet.");
851 public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
852 throw new SQLException("Not supported yet.");
856 public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
857 throw new SQLException("Not supported yet.");
861 public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
862 throw new SQLException("Not supported yet.");
866 public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
867 throw new SQLException("Not supported yet.");
871 public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
872 throw new SQLException("Not supported yet.");
876 public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
877 throw new SQLException("Not supported yet.");
881 public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
882 throw new SQLException("Not supported yet.");
886 public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
887 throw new SQLException("Not supported yet.");
891 public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
892 throw new SQLException("Not supported yet.");
896 public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
897 throw new SQLException("Not supported yet.");
901 public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
902 throw new SQLException("Not supported yet.");
906 public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
907 throw new SQLException("Not supported yet.");
911 public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
912 throw new SQLException("Not supported yet.");
916 public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
917 throw new SQLException("Not supported yet.");
921 public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
922 throw new SQLException("Not supported yet.");
926 public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
927 throw new SQLException("Not supported yet.");
931 public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
932 throw new SQLException("Not supported yet.");
936 public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
937 throw new SQLException("Not supported yet.");
941 public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
942 throw new SQLException("Not supported yet.");
946 public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
947 throw new SQLException("Not supported yet.");
951 public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
952 throw new SQLException("Not supported yet.");
956 public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
957 throw new SQLException("Not supported yet.");
961 public void updateClob(int columnIndex, Reader reader) throws SQLException {
962 throw new SQLException("Not supported yet.");
966 public void updateClob(String columnLabel, Reader reader) throws SQLException {
967 throw new SQLException("Not supported yet.");
971 public void updateNClob(int columnIndex, Reader reader) throws SQLException {
972 throw new SQLException("Not supported yet.");
976 public void updateNClob(String columnLabel, Reader reader) throws SQLException {
977 throw new SQLException("Not supported yet.");
981 public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
982 throw new SQLException("Not supported yet.");
986 public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
987 throw new SQLException("Not supported yet.");
991 public <T> T unwrap(Class<T> iface) throws SQLException {
992 throw new SQLException("Not supported yet.");
996 public boolean isWrapperFor(Class<?> iface) throws SQLException {
997 throw new SQLException("Not supported yet.");