java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/AbstractResultSet.java
Tabular formatter: fix problem with CR (carriage return).
Less command or orher programs shows it as ^M (two characters) and it breaks the table layout – so we need to translate it to a single symbol.
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, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package info.globalcode.jdbc.loopback;
20 import java.io.InputStream;
21 import java.io.Reader;
22 import java.math.BigDecimal;
24 import java.sql.Array;
28 import java.sql.NClob;
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;
36 import java.sql.Timestamp;
37 import java.util.Calendar;
42 * @author Ing. František Kučera (frantovo.cz)
44 public abstract class AbstractResultSet implements java.sql.ResultSet {
47 public boolean next() throws SQLException {
48 throw new SQLException("Not supported yet.");
52 public void close() throws SQLException {
53 throw new SQLException("Not supported yet.");
57 public boolean wasNull() throws SQLException {
58 throw new SQLException("Not supported yet.");
62 public String getString(int columnIndex) throws SQLException {
63 throw new SQLException("Not supported yet.");
67 public boolean getBoolean(int columnIndex) throws SQLException {
68 throw new SQLException("Not supported yet.");
72 public byte getByte(int columnIndex) throws SQLException {
73 throw new SQLException("Not supported yet.");
77 public short getShort(int columnIndex) throws SQLException {
78 throw new SQLException("Not supported yet.");
82 public int getInt(int columnIndex) throws SQLException {
83 throw new SQLException("Not supported yet.");
87 public long getLong(int columnIndex) throws SQLException {
88 throw new SQLException("Not supported yet.");
92 public float getFloat(int columnIndex) throws SQLException {
93 throw new SQLException("Not supported yet.");
97 public double getDouble(int columnIndex) throws SQLException {
98 throw new SQLException("Not supported yet.");
102 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
103 throw new SQLException("Not supported yet.");
107 public byte[] getBytes(int columnIndex) throws SQLException {
108 throw new SQLException("Not supported yet.");
112 public Date getDate(int columnIndex) throws SQLException {
113 throw new SQLException("Not supported yet.");
117 public Time getTime(int columnIndex) throws SQLException {
118 throw new SQLException("Not supported yet.");
122 public Timestamp getTimestamp(int columnIndex) throws SQLException {
123 throw new SQLException("Not supported yet.");
127 public InputStream getAsciiStream(int columnIndex) throws SQLException {
128 throw new SQLException("Not supported yet.");
132 public InputStream getUnicodeStream(int columnIndex) throws SQLException {
133 throw new SQLException("Not supported yet.");
137 public InputStream getBinaryStream(int columnIndex) throws SQLException {
138 throw new SQLException("Not supported yet.");
142 public String getString(String columnLabel) throws SQLException {
143 throw new SQLException("Not supported yet.");
147 public boolean getBoolean(String columnLabel) throws SQLException {
148 throw new SQLException("Not supported yet.");
152 public byte getByte(String columnLabel) throws SQLException {
153 throw new SQLException("Not supported yet.");
157 public short getShort(String columnLabel) throws SQLException {
158 throw new SQLException("Not supported yet.");
162 public int getInt(String columnLabel) throws SQLException {
163 throw new SQLException("Not supported yet.");
167 public long getLong(String columnLabel) throws SQLException {
168 throw new SQLException("Not supported yet.");
172 public float getFloat(String columnLabel) throws SQLException {
173 throw new SQLException("Not supported yet.");
177 public double getDouble(String columnLabel) throws SQLException {
178 throw new SQLException("Not supported yet.");
182 public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
183 throw new SQLException("Not supported yet.");
187 public byte[] getBytes(String columnLabel) throws SQLException {
188 throw new SQLException("Not supported yet.");
192 public Date getDate(String columnLabel) throws SQLException {
193 throw new SQLException("Not supported yet.");
197 public Time getTime(String columnLabel) throws SQLException {
198 throw new SQLException("Not supported yet.");
202 public Timestamp getTimestamp(String columnLabel) throws SQLException {
203 throw new SQLException("Not supported yet.");
207 public InputStream getAsciiStream(String columnLabel) throws SQLException {
208 throw new SQLException("Not supported yet.");
212 public InputStream getUnicodeStream(String columnLabel) throws SQLException {
213 throw new SQLException("Not supported yet.");
217 public InputStream getBinaryStream(String columnLabel) throws SQLException {
218 throw new SQLException("Not supported yet.");
222 public SQLWarning getWarnings() throws SQLException {
223 throw new SQLException("Not supported yet.");
227 public void clearWarnings() throws SQLException {
228 throw new SQLException("Not supported yet.");
232 public String getCursorName() throws SQLException {
233 throw new SQLException("Not supported yet.");
237 public java.sql.ResultSetMetaData getMetaData() throws SQLException {
238 throw new SQLException("Not supported yet.");
242 public Object getObject(int columnIndex) throws SQLException {
243 throw new SQLException("Not supported yet.");
247 public Object getObject(String columnLabel) throws SQLException {
248 throw new SQLException("Not supported yet.");
252 public int findColumn(String columnLabel) throws SQLException {
253 throw new SQLException("Not supported yet.");
257 public Reader getCharacterStream(int columnIndex) throws SQLException {
258 throw new SQLException("Not supported yet.");
262 public Reader getCharacterStream(String columnLabel) throws SQLException {
263 throw new SQLException("Not supported yet.");
267 public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
268 throw new SQLException("Not supported yet.");
272 public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
273 throw new SQLException("Not supported yet.");
277 public boolean isBeforeFirst() throws SQLException {
278 throw new SQLException("Not supported yet.");
282 public boolean isAfterLast() throws SQLException {
283 throw new SQLException("Not supported yet.");
287 public boolean isFirst() throws SQLException {
288 throw new SQLException("Not supported yet.");
292 public boolean isLast() throws SQLException {
293 throw new SQLException("Not supported yet.");
297 public void beforeFirst() throws SQLException {
298 throw new SQLException("Not supported yet.");
302 public void afterLast() throws SQLException {
303 throw new SQLException("Not supported yet.");
307 public boolean first() throws SQLException {
308 throw new SQLException("Not supported yet.");
312 public boolean last() throws SQLException {
313 throw new SQLException("Not supported yet.");
317 public int getRow() throws SQLException {
318 throw new SQLException("Not supported yet.");
322 public boolean absolute(int row) throws SQLException {
323 throw new SQLException("Not supported yet.");
327 public boolean relative(int rows) throws SQLException {
328 throw new SQLException("Not supported yet.");
332 public boolean previous() throws SQLException {
333 throw new SQLException("Not supported yet.");
337 public void setFetchDirection(int direction) throws SQLException {
338 throw new SQLException("Not supported yet.");
342 public int getFetchDirection() throws SQLException {
343 throw new SQLException("Not supported yet.");
347 public void setFetchSize(int rows) throws SQLException {
348 throw new SQLException("Not supported yet.");
352 public int getFetchSize() throws SQLException {
353 throw new SQLException("Not supported yet.");
357 public int getType() throws SQLException {
358 throw new SQLException("Not supported yet.");
362 public int getConcurrency() throws SQLException {
363 throw new SQLException("Not supported yet.");
367 public boolean rowUpdated() throws SQLException {
368 throw new SQLException("Not supported yet.");
372 public boolean rowInserted() throws SQLException {
373 throw new SQLException("Not supported yet.");
377 public boolean rowDeleted() throws SQLException {
378 throw new SQLException("Not supported yet.");
382 public void updateNull(int columnIndex) throws SQLException {
383 throw new SQLException("Not supported yet.");
387 public void updateBoolean(int columnIndex, boolean x) throws SQLException {
388 throw new SQLException("Not supported yet.");
392 public void updateByte(int columnIndex, byte x) throws SQLException {
393 throw new SQLException("Not supported yet.");
397 public void updateShort(int columnIndex, short x) throws SQLException {
398 throw new SQLException("Not supported yet.");
402 public void updateInt(int columnIndex, int x) throws SQLException {
403 throw new SQLException("Not supported yet.");
407 public void updateLong(int columnIndex, long x) throws SQLException {
408 throw new SQLException("Not supported yet.");
412 public void updateFloat(int columnIndex, float x) throws SQLException {
413 throw new SQLException("Not supported yet.");
417 public void updateDouble(int columnIndex, double x) throws SQLException {
418 throw new SQLException("Not supported yet.");
422 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
423 throw new SQLException("Not supported yet.");
427 public void updateString(int columnIndex, String x) throws SQLException {
428 throw new SQLException("Not supported yet.");
432 public void updateBytes(int columnIndex, byte[] x) throws SQLException {
433 throw new SQLException("Not supported yet.");
437 public void updateDate(int columnIndex, Date x) throws SQLException {
438 throw new SQLException("Not supported yet.");
442 public void updateTime(int columnIndex, Time x) throws SQLException {
443 throw new SQLException("Not supported yet.");
447 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
448 throw new SQLException("Not supported yet.");
452 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
453 throw new SQLException("Not supported yet.");
457 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
458 throw new SQLException("Not supported yet.");
462 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
463 throw new SQLException("Not supported yet.");
467 public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
468 throw new SQLException("Not supported yet.");
472 public void updateObject(int columnIndex, Object x) throws SQLException {
473 throw new SQLException("Not supported yet.");
477 public void updateNull(String columnLabel) throws SQLException {
478 throw new SQLException("Not supported yet.");
482 public void updateBoolean(String columnLabel, boolean x) throws SQLException {
483 throw new SQLException("Not supported yet.");
487 public void updateByte(String columnLabel, byte x) throws SQLException {
488 throw new SQLException("Not supported yet.");
492 public void updateShort(String columnLabel, short x) throws SQLException {
493 throw new SQLException("Not supported yet.");
497 public void updateInt(String columnLabel, int x) throws SQLException {
498 throw new SQLException("Not supported yet.");
502 public void updateLong(String columnLabel, long x) throws SQLException {
503 throw new SQLException("Not supported yet.");
507 public void updateFloat(String columnLabel, float x) throws SQLException {
508 throw new SQLException("Not supported yet.");
512 public void updateDouble(String columnLabel, double x) throws SQLException {
513 throw new SQLException("Not supported yet.");
517 public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
518 throw new SQLException("Not supported yet.");
522 public void updateString(String columnLabel, String x) throws SQLException {
523 throw new SQLException("Not supported yet.");
527 public void updateBytes(String columnLabel, byte[] x) throws SQLException {
528 throw new SQLException("Not supported yet.");
532 public void updateDate(String columnLabel, Date x) throws SQLException {
533 throw new SQLException("Not supported yet.");
537 public void updateTime(String columnLabel, Time x) throws SQLException {
538 throw new SQLException("Not supported yet.");
542 public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
543 throw new SQLException("Not supported yet.");
547 public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
548 throw new SQLException("Not supported yet.");
552 public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
553 throw new SQLException("Not supported yet.");
557 public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
558 throw new SQLException("Not supported yet.");
562 public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
563 throw new SQLException("Not supported yet.");
567 public void updateObject(String columnLabel, Object x) throws SQLException {
568 throw new SQLException("Not supported yet.");
572 public void insertRow() throws SQLException {
573 throw new SQLException("Not supported yet.");
577 public void updateRow() throws SQLException {
578 throw new SQLException("Not supported yet.");
582 public void deleteRow() throws SQLException {
583 throw new SQLException("Not supported yet.");
587 public void refreshRow() throws SQLException {
588 throw new SQLException("Not supported yet.");
592 public void cancelRowUpdates() throws SQLException {
593 throw new SQLException("Not supported yet.");
597 public void moveToInsertRow() throws SQLException {
598 throw new SQLException("Not supported yet.");
602 public void moveToCurrentRow() throws SQLException {
603 throw new SQLException("Not supported yet.");
607 public Statement getStatement() throws SQLException {
608 throw new SQLException("Not supported yet.");
612 public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
613 throw new SQLException("Not supported yet.");
617 public Ref getRef(int columnIndex) throws SQLException {
618 throw new SQLException("Not supported yet.");
622 public Blob getBlob(int columnIndex) throws SQLException {
623 throw new SQLException("Not supported yet.");
627 public Clob getClob(int columnIndex) throws SQLException {
628 throw new SQLException("Not supported yet.");
632 public Array getArray(int columnIndex) throws SQLException {
633 throw new SQLException("Not supported yet.");
637 public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
638 throw new SQLException("Not supported yet.");
642 public Ref getRef(String columnLabel) throws SQLException {
643 throw new SQLException("Not supported yet.");
647 public Blob getBlob(String columnLabel) throws SQLException {
648 throw new SQLException("Not supported yet.");
652 public Clob getClob(String columnLabel) throws SQLException {
653 throw new SQLException("Not supported yet.");
657 public Array getArray(String columnLabel) throws SQLException {
658 throw new SQLException("Not supported yet.");
662 public Date getDate(int columnIndex, Calendar cal) throws SQLException {
663 throw new SQLException("Not supported yet.");
667 public Date getDate(String columnLabel, Calendar cal) throws SQLException {
668 throw new SQLException("Not supported yet.");
672 public Time getTime(int columnIndex, Calendar cal) throws SQLException {
673 throw new SQLException("Not supported yet.");
677 public Time getTime(String columnLabel, Calendar cal) throws SQLException {
678 throw new SQLException("Not supported yet.");
682 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
683 throw new SQLException("Not supported yet.");
687 public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
688 throw new SQLException("Not supported yet.");
692 public URL getURL(int columnIndex) throws SQLException {
693 throw new SQLException("Not supported yet.");
697 public URL getURL(String columnLabel) throws SQLException {
698 throw new SQLException("Not supported yet.");
702 public void updateRef(int columnIndex, Ref x) throws SQLException {
703 throw new SQLException("Not supported yet.");
707 public void updateRef(String columnLabel, Ref x) throws SQLException {
708 throw new SQLException("Not supported yet.");
712 public void updateBlob(int columnIndex, Blob x) throws SQLException {
713 throw new SQLException("Not supported yet.");
717 public void updateBlob(String columnLabel, Blob x) throws SQLException {
718 throw new SQLException("Not supported yet.");
722 public void updateClob(int columnIndex, Clob x) throws SQLException {
723 throw new SQLException("Not supported yet.");
727 public void updateClob(String columnLabel, Clob x) throws SQLException {
728 throw new SQLException("Not supported yet.");
732 public void updateArray(int columnIndex, Array x) throws SQLException {
733 throw new SQLException("Not supported yet.");
737 public void updateArray(String columnLabel, Array x) throws SQLException {
738 throw new SQLException("Not supported yet.");
742 public RowId getRowId(int columnIndex) throws SQLException {
743 throw new SQLException("Not supported yet.");
747 public RowId getRowId(String columnLabel) throws SQLException {
748 throw new SQLException("Not supported yet.");
752 public void updateRowId(int columnIndex, RowId x) throws SQLException {
753 throw new SQLException("Not supported yet.");
757 public void updateRowId(String columnLabel, RowId x) throws SQLException {
758 throw new SQLException("Not supported yet.");
762 public int getHoldability() throws SQLException {
763 throw new SQLException("Not supported yet.");
767 public boolean isClosed() throws SQLException {
768 throw new SQLException("Not supported yet.");
772 public void updateNString(int columnIndex, String nString) throws SQLException {
773 throw new SQLException("Not supported yet.");
777 public void updateNString(String columnLabel, String nString) throws SQLException {
778 throw new SQLException("Not supported yet.");
782 public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
783 throw new SQLException("Not supported yet.");
787 public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
788 throw new SQLException("Not supported yet.");
792 public NClob getNClob(int columnIndex) throws SQLException {
793 throw new SQLException("Not supported yet.");
797 public NClob getNClob(String columnLabel) throws SQLException {
798 throw new SQLException("Not supported yet.");
802 public SQLXML getSQLXML(int columnIndex) throws SQLException {
803 throw new SQLException("Not supported yet.");
807 public SQLXML getSQLXML(String columnLabel) throws SQLException {
808 throw new SQLException("Not supported yet.");
812 public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
813 throw new SQLException("Not supported yet.");
817 public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
818 throw new SQLException("Not supported yet.");
822 public String getNString(int columnIndex) throws SQLException {
823 throw new SQLException("Not supported yet.");
827 public String getNString(String columnLabel) throws SQLException {
828 throw new SQLException("Not supported yet.");
832 public Reader getNCharacterStream(int columnIndex) throws SQLException {
833 throw new SQLException("Not supported yet.");
837 public Reader getNCharacterStream(String columnLabel) throws SQLException {
838 throw new SQLException("Not supported yet.");
842 public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
843 throw new SQLException("Not supported yet.");
847 public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
848 throw new SQLException("Not supported yet.");
852 public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
853 throw new SQLException("Not supported yet.");
857 public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
858 throw new SQLException("Not supported yet.");
862 public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
863 throw new SQLException("Not supported yet.");
867 public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
868 throw new SQLException("Not supported yet.");
872 public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
873 throw new SQLException("Not supported yet.");
877 public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
878 throw new SQLException("Not supported yet.");
882 public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
883 throw new SQLException("Not supported yet.");
887 public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
888 throw new SQLException("Not supported yet.");
892 public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
893 throw new SQLException("Not supported yet.");
897 public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
898 throw new SQLException("Not supported yet.");
902 public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
903 throw new SQLException("Not supported yet.");
907 public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
908 throw new SQLException("Not supported yet.");
912 public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
913 throw new SQLException("Not supported yet.");
917 public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
918 throw new SQLException("Not supported yet.");
922 public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
923 throw new SQLException("Not supported yet.");
927 public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
928 throw new SQLException("Not supported yet.");
932 public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
933 throw new SQLException("Not supported yet.");
937 public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
938 throw new SQLException("Not supported yet.");
942 public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
943 throw new SQLException("Not supported yet.");
947 public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
948 throw new SQLException("Not supported yet.");
952 public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
953 throw new SQLException("Not supported yet.");
957 public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
958 throw new SQLException("Not supported yet.");
962 public void updateClob(int columnIndex, Reader reader) throws SQLException {
963 throw new SQLException("Not supported yet.");
967 public void updateClob(String columnLabel, Reader reader) throws SQLException {
968 throw new SQLException("Not supported yet.");
972 public void updateNClob(int columnIndex, Reader reader) throws SQLException {
973 throw new SQLException("Not supported yet.");
977 public void updateNClob(String columnLabel, Reader reader) throws SQLException {
978 throw new SQLException("Not supported yet.");
982 public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
983 throw new SQLException("Not supported yet.");
987 public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
988 throw new SQLException("Not supported yet.");
992 public <T> T unwrap(Class<T> iface) throws SQLException {
993 throw new SQLException("Not supported yet.");
997 public boolean isWrapperFor(Class<?> iface) throws SQLException {
998 throw new SQLException("Not supported yet.");