16 package com.omnisci.jdbc;
23 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory;
26 import java.io.InputStream;
27 import java.io.Reader;
28 import java.math.BigDecimal;
31 import java.util.Calendar;
32 import java.util.HashMap;
33 import java.util.List;
61 sqlResult = tsqlResult;
64 rowSet = sqlResult.getRow_set();
65 rowDesc = rowSet.getRow_desc();
68 if (rowDesc.isEmpty()) {
73 rowDesc.get(0).getCol_name();
75 columnMap =
new HashMap();
77 for (
final TColumnType colType : rowDesc) {
78 columnMap.put(colType.getCol_name(), current);
81 if (rowSet.columns.isEmpty()) {
84 numOfRecords = rowSet.getColumns().get(0).getNullsSize();
87 logger.debug(
"number of records is " + numOfRecords);
96 public boolean next() throws SQLException {
100 if (offset < numOfRecords) {
107 public void close() throws SQLException {
115 public boolean wasNull() throws SQLException {
120 public String
getString(
int columnIndex)
throws SQLException {
122 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
127 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
129 if (type == TDatumType.STR
130 && !sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.is_array) {
131 return rowSet.columns.get(columnIndex - 1).data.str_col.get(offset);
139 if (sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.is_array) {
140 return getArray(columnIndex).toString();
143 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
148 return String.valueOf(
getInt(columnIndex));
150 return String.valueOf(
getLong(columnIndex));
152 return String.valueOf(
getFloat(columnIndex));
154 return String.valueOf(
getFloat(columnIndex));
156 return String.valueOf(
getDouble(columnIndex));
160 return getTime(columnIndex).toString();
164 return getDate(columnIndex).toString();
173 throw new AssertionError(type.name());
179 throws SQLException {
181 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
187 if (rowSet.columns.get(columnIndex - 1).data.int_col.get(offset) == 0) {
197 throws SQLException {
198 throw new UnsupportedOperationException(
"Not supported yet," 199 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
200 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
201 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
206 throws SQLException {
208 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
214 Long lObj = rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
215 return lObj.shortValue();
221 throws SQLException {
223 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
229 Long lObj = rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
230 return lObj.intValue();
236 throws SQLException {
238 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
244 return rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
250 throws SQLException {
252 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
258 return rowSet.columns.get(columnIndex - 1).data.real_col.get(offset).floatValue();
264 throws SQLException {
266 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
272 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
274 if (type == TDatumType.DOUBLE) {
275 return rowSet.columns.get(columnIndex - 1).data.real_col.get(offset);
283 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
288 return (
double)
getInt(columnIndex);
290 return (
double)
getLong(columnIndex);
292 return (
double)
getFloat(columnIndex);
294 return (
double)
getFloat(columnIndex);
300 return (
double)
getTime(columnIndex).getTime();
304 return (
double)
getDate(columnIndex).getTime();
306 return (
double) (
getBoolean(columnIndex) ? 1 : 0);
308 throw new AssertionError(type.name());
314 throws SQLException {
316 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
322 return BigDecimal.valueOf(
323 rowSet.columns.get(columnIndex - 1).data.real_col.get(offset));
329 throws SQLException {
330 throw new UnsupportedOperationException(
"Not supported yet," 331 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
332 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
333 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
338 throws SQLException {
339 return getDate(columnIndex, null);
344 throws SQLException {
345 return getTime(columnIndex, null);
350 throws SQLException {
355 long scale = (long) Math.pow(10, precision);
356 double nano_part = Math.abs(val) % scale;
357 if (val < 0) nano_part = -nano_part;
358 nano_part = (int) ((nano_part + scale) % scale) * (
long) Math.pow(10, 9 - precision);
359 long micro_sec_value = (long) (val / scale);
361 micro_sec_value = micro_sec_value - ((micro_sec_value < 0 && nano_part > 0) ? 1 : 0);
363 micro_sec_value * 1000);
364 tm.setNanos((
int) (nano_part));
378 throw new RuntimeException(
"Invalid precision [" + Integer.toString(precision)
379 +
"] returned. Valid values 0,3,6,9");
385 throws SQLException {
386 throw new UnsupportedOperationException(
"Not supported yet," 387 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
388 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
389 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
394 throws SQLException {
395 throw new UnsupportedOperationException(
"Not supported yet," 396 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
397 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
398 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
403 throws SQLException {
404 throw new UnsupportedOperationException(
"Not supported yet," 405 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
406 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
407 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
412 throws SQLException {
418 throws SQLException {
424 throws SQLException {
425 throw new UnsupportedOperationException(
"Not supported yet," 426 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
427 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
428 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
433 throws SQLException {
439 throws SQLException {
445 throws SQLException {
451 throws SQLException {
457 throws SQLException {
463 throws SQLException {
469 throws SQLException {
470 throw new UnsupportedOperationException(
"Not supported yet," 471 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
472 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
473 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
478 throws SQLException {
479 return getDate(columnLabel, null);
484 throws SQLException {
485 return getTime(columnLabel, null);
490 throws SQLException {
496 throws SQLException {
497 throw new UnsupportedOperationException(
"Not supported yet," 498 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
499 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
500 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
505 throws SQLException {
506 throw new UnsupportedOperationException(
"Not supported yet," 507 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
508 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
509 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
514 throws SQLException {
515 throw new UnsupportedOperationException(
"Not supported yet," 516 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
517 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
518 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
533 throw new UnsupportedOperationException(
"Not supported yet," 534 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
535 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
536 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
541 throws SQLException {
548 throws SQLException {
550 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
555 if (rowDesc.get(columnIndex - 1).col_type.is_array) {
559 switch (rowDesc.get(columnIndex - 1).col_type.type) {
568 return this.rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
572 return this.rowSet.columns.get(columnIndex - 1).data.real_col.get(offset);
578 return this.rowSet.columns.get(columnIndex - 1).data.str_col.get(offset);
580 throw new AssertionError(rowDesc.get(columnIndex - 1).col_type.type.name());
587 throws SQLException {
588 return getObject(columnMap.get(columnLabel));
593 throws SQLException {
594 throw new UnsupportedOperationException(
"Not supported yet," 595 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
596 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
597 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
602 throws SQLException {
603 throw new UnsupportedOperationException(
"Not supported yet," 604 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
605 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
606 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
611 throws SQLException {
612 throw new UnsupportedOperationException(
"Not supported yet," 613 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
614 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
615 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
620 throws SQLException {
622 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
628 return BigDecimal.valueOf(
629 rowSet.columns.get(columnIndex - 1).data.real_col.get(offset));
635 throws SQLException {
650 public boolean isFirst() throws SQLException {
655 public boolean isLast() throws SQLException {
656 return offset == numOfRecords - 1;
661 throw new UnsupportedOperationException(
"Not supported yet," 662 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
663 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
664 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
669 throw new UnsupportedOperationException(
"Not supported yet," 670 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
671 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
672 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
676 public boolean first() throws SQLException {
677 throw new UnsupportedOperationException(
"Not supported yet," 678 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
679 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
680 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
684 public boolean last() throws SQLException {
685 throw new UnsupportedOperationException(
"Not supported yet," 686 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
687 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
688 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
692 public int getRow() throws SQLException {
693 throw new UnsupportedOperationException(
"Not supported yet," 694 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
695 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
696 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
701 throws SQLException {
702 throw new UnsupportedOperationException(
"Not supported yet," 703 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
704 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
705 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
710 throws SQLException {
711 throw new UnsupportedOperationException(
"Not supported yet," 712 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
713 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
714 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
719 throw new UnsupportedOperationException(
"Not supported yet," 720 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
721 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
722 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
727 throws SQLException {
728 throw new UnsupportedOperationException(
"Not supported yet," 729 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
730 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
731 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
736 return FETCH_FORWARD;
741 throws SQLException {
747 throw new UnsupportedOperationException(
"Not supported yet," 748 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
749 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
750 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
755 return TYPE_FORWARD_ONLY;
760 throw new UnsupportedOperationException(
"Not supported yet," 761 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
762 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
763 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
768 throw new UnsupportedOperationException(
"Not supported yet," 769 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
770 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
771 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
776 throw new UnsupportedOperationException(
"Not supported yet," 777 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
778 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
779 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
784 throw new UnsupportedOperationException(
"Not supported yet," 785 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
786 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
787 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
792 throws SQLException {
793 throw new UnsupportedOperationException(
"Not supported yet," 794 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
795 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
796 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
801 throws SQLException {
802 throw new UnsupportedOperationException(
"Not supported yet," 803 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
804 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
805 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
810 throws SQLException {
811 throw new UnsupportedOperationException(
"Not supported yet," 812 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
813 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
814 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
819 throws SQLException {
820 throw new UnsupportedOperationException(
"Not supported yet," 821 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
822 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
823 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
828 throws SQLException {
829 throw new UnsupportedOperationException(
"Not supported yet," 830 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
831 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
832 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
837 throws SQLException {
838 throw new UnsupportedOperationException(
"Not supported yet," 839 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
840 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
841 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
846 throws SQLException {
847 throw new UnsupportedOperationException(
"Not supported yet," 848 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
849 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
850 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
855 throws SQLException {
856 throw new UnsupportedOperationException(
"Not supported yet," 857 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
858 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
859 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
864 throws SQLException {
865 throw new UnsupportedOperationException(
"Not supported yet," 866 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
867 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
868 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
873 throws SQLException {
874 throw new UnsupportedOperationException(
"Not supported yet," 875 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
876 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
877 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
882 throws SQLException {
883 throw new UnsupportedOperationException(
"Not supported yet," 884 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
885 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
886 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
891 throws SQLException {
892 throw new UnsupportedOperationException(
"Not supported yet," 893 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
894 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
895 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
900 throws SQLException {
901 throw new UnsupportedOperationException(
"Not supported yet," 902 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
903 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
904 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
909 throws SQLException {
910 throw new UnsupportedOperationException(
"Not supported yet," 911 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
912 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
913 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
918 throws SQLException {
919 throw new UnsupportedOperationException(
"Not supported yet," 920 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
921 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
922 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
927 throws SQLException {
928 throw new UnsupportedOperationException(
"Not supported yet," 929 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
930 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
931 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
936 throws SQLException {
937 throw new UnsupportedOperationException(
"Not supported yet," 938 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
939 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
940 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
945 throws SQLException {
946 throw new UnsupportedOperationException(
"Not supported yet," 947 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
948 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
949 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
954 throws SQLException {
955 throw new UnsupportedOperationException(
"Not supported yet," 956 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
957 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
958 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
963 throws SQLException {
964 throw new UnsupportedOperationException(
"Not supported yet," 965 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
966 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
967 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
972 throws SQLException {
973 throw new UnsupportedOperationException(
"Not supported yet," 974 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
975 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
976 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
981 throws SQLException {
982 throw new UnsupportedOperationException(
"Not supported yet," 983 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
984 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
985 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
990 throws SQLException {
991 throw new UnsupportedOperationException(
"Not supported yet," 992 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
993 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
994 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
999 throws SQLException {
1000 throw new UnsupportedOperationException(
"Not supported yet," 1001 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1002 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1003 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1008 throws SQLException {
1009 throw new UnsupportedOperationException(
"Not supported yet," 1010 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1011 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1012 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1017 throws SQLException {
1018 throw new UnsupportedOperationException(
"Not supported yet," 1019 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1020 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1021 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1026 throws SQLException {
1027 throw new UnsupportedOperationException(
"Not supported yet," 1028 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1029 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1030 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1035 throws SQLException {
1036 throw new UnsupportedOperationException(
"Not supported yet," 1037 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1038 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1039 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1044 throws SQLException {
1045 throw new UnsupportedOperationException(
"Not supported yet," 1046 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1047 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1048 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1053 throws SQLException {
1054 throw new UnsupportedOperationException(
"Not supported yet," 1055 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1056 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1057 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1062 throws SQLException {
1063 throw new UnsupportedOperationException(
"Not supported yet," 1064 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1065 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1066 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1071 throws SQLException {
1072 throw new UnsupportedOperationException(
"Not supported yet," 1073 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1074 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1075 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1080 throws SQLException {
1081 throw new UnsupportedOperationException(
"Not supported yet," 1082 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1083 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1084 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1089 throws SQLException {
1090 throw new UnsupportedOperationException(
"Not supported yet," 1091 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1092 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1093 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1098 throws SQLException {
1099 throw new UnsupportedOperationException(
"Not supported yet," 1100 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1101 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1102 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1107 throws SQLException {
1108 throw new UnsupportedOperationException(
"Not supported yet," 1109 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1110 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1111 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1116 throws SQLException {
1117 throw new UnsupportedOperationException(
"Not supported yet," 1118 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1119 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1120 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1125 throws SQLException {
1126 throw new UnsupportedOperationException(
"Not supported yet," 1127 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1128 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1129 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1134 throw new UnsupportedOperationException(
"Not supported yet," 1135 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1136 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1137 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1142 throw new UnsupportedOperationException(
"Not supported yet," 1143 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1144 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1145 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1150 throw new UnsupportedOperationException(
"Not supported yet," 1151 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1152 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1153 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1158 throw new UnsupportedOperationException(
"Not supported yet," 1159 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1160 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1161 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1166 throw new UnsupportedOperationException(
"Not supported yet," 1167 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1168 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1169 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1174 throw new UnsupportedOperationException(
"Not supported yet," 1175 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1176 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1177 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1182 throw new UnsupportedOperationException(
"Not supported yet," 1183 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1184 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1185 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1190 throw new UnsupportedOperationException(
"Not supported yet," 1191 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1192 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1193 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1197 public Object
getObject(
int columnIndex, Map<String, Class<?>> map)
1198 throws SQLException {
1199 throw new UnsupportedOperationException(
"Not supported yet," 1200 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1201 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1202 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1207 throws SQLException {
1208 throw new UnsupportedOperationException(
"Not supported yet," 1209 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1210 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1211 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1216 throws SQLException {
1217 throw new UnsupportedOperationException(
"Not supported yet," 1218 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1219 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1220 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1225 throws SQLException {
1226 throw new UnsupportedOperationException(
"Not supported yet," 1227 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1228 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1229 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1234 throws SQLException {
1236 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
1241 if (!rowDesc.get(columnIndex - 1).col_type.is_array) {
1242 throw new SQLException(
1243 "Column " + rowDesc.get(columnIndex - 1).col_name +
" is not an array");
1248 rowSet.columns.get(columnIndex - 1).data.arr_col.get(offset).nulls.size();
1249 switch (rowDesc.get(columnIndex - 1).col_type.type) {
1251 elements =
new Byte[size];
1252 for (
int i = 0; i < size; ++i) {
1253 elements[i] = rowSet.columns.get(columnIndex - 1)
1254 .data.arr_col.get(offset)
1255 .data.int_col.get(i)
1260 elements =
new Short[size];
1261 for (
int i = 0; i < size; ++i) {
1262 elements[i] = rowSet.columns.get(columnIndex - 1)
1263 .data.arr_col.get(offset)
1264 .data.int_col.get(i)
1269 elements =
new Integer[size];
1270 for (
int i = 0; i < size; ++i) {
1271 elements[i] = rowSet.columns.get(columnIndex - 1)
1272 .data.arr_col.get(offset)
1273 .data.int_col.get(i)
1278 elements =
new Long[size];
1279 for (
int i = 0; i < size; ++i) {
1280 elements[i] = rowSet.columns.get(columnIndex - 1)
1281 .data.arr_col.get(offset)
1282 .data.int_col.get(i);
1286 elements =
new Boolean[size];
1287 for (
int i = 0; i < size; ++i) {
1288 elements[i] = rowSet.columns.get(columnIndex - 1)
1289 .data.arr_col.get(offset)
1290 .data.int_col.get(i)
1295 elements =
new Time[size];
1296 for (
int i = 0; i < size; ++i) {
1297 elements[i] =
new Time(rowSet.columns.get(columnIndex - 1)
1298 .data.arr_col.get(offset)
1299 .data.int_col.get(i)
1305 for (
int i = 0; i < size; ++i) {
1307 .data.arr_col.get(offset)
1308 .data.int_col.get(i),
1309 rowSet.row_desc.get(columnIndex - 1).col_type.getPrecision());
1313 elements =
new Date[size];
1314 for (
int i = 0; i < size; ++i) {
1315 elements[i] =
new Date(rowSet.columns.get(columnIndex - 1)
1316 .data.arr_col.get(offset)
1317 .data.int_col.get(i)
1322 elements =
new Float[size];
1323 for (
int i = 0; i < size; ++i) {
1324 elements[i] = rowSet.columns.get(columnIndex - 1)
1325 .data.arr_col.get(offset)
1326 .data.real_col.get(i)
1331 elements =
new BigDecimal[size];
1332 for (
int i = 0; i < size; ++i) {
1333 elements[i] = BigDecimal.valueOf(rowSet.columns.get(columnIndex - 1)
1334 .data.arr_col.get(offset)
1335 .data.real_col.get(i));
1339 elements =
new Double[size];
1340 for (
int i = 0; i < size; ++i) {
1341 elements[i] = rowSet.columns.get(columnIndex - 1)
1342 .data.arr_col.get(offset)
1343 .data.real_col.get(i);
1351 elements =
new String[size];
1352 for (
int i = 0; i < size; ++i) {
1353 elements[i] = rowSet.columns.get(columnIndex - 1)
1354 .data.arr_col.get(offset)
1355 .data.str_col.get(i);
1359 throw new AssertionError(rowDesc.get(columnIndex - 1).col_type.type.name());
1362 for (
int i = 0; i < size; ++i) {
1363 if (this.rowSet.columns.get(columnIndex - 1)
1364 .data.arr_col.get(offset)
1370 return new OmniSciArray(rowDesc.get(columnIndex - 1).col_type.type, elements);
1375 public Object
getObject(String columnLabel, Map<String, Class<?>> map)
1376 throws SQLException {
1377 throw new UnsupportedOperationException(
"Not supported yet," 1378 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1379 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1380 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1385 throws SQLException {
1386 throw new UnsupportedOperationException(
"Not supported yet," 1387 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1388 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1389 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1394 throws SQLException {
1395 throw new UnsupportedOperationException(
"Not supported yet," 1396 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1397 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1398 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1403 throws SQLException {
1404 throw new UnsupportedOperationException(
"Not supported yet," 1405 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1406 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1407 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1412 throws SQLException {
1420 if (cal.getTimeZone() != null) {
1421 offset = cal.getTimeZone().getOffset(actualmillis);
1423 offset = Calendar.getInstance().getTimeZone().getOffset(actualmillis);
1425 switch (precision) {
1427 return offset / 1000;
1431 return offset * 1000;
1433 return offset * 1000000;
1435 throw new RuntimeException(
"Invalid precision [" + Integer.toString(precision)
1436 +
"] returned. Valid values 0,3,6,9");
1441 public Date getDate(
int columnIndex, Calendar cal)
throws SQLException {
1443 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
1449 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
1459 public Date getDate(String columnLabel, Calendar cal)
throws SQLException {
1465 throws SQLException {
1467 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
1473 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
1477 return new Time(val * 1000);
1483 throws SQLException {
1489 throws SQLException {
1491 if (rowSet.columns.get(columnIndex - 1).nulls.get(offset)) {
1497 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(offset);
1498 int precision = rowSet.row_desc.get(columnIndex - 1).col_type.getPrecision();
1508 throws SQLException {
1514 throws SQLException {
1515 throw new UnsupportedOperationException(
"Not supported yet," 1516 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1517 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1518 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1523 throws SQLException {
1524 throw new UnsupportedOperationException(
"Not supported yet," 1525 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1526 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1527 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1532 throws SQLException {
1533 throw new UnsupportedOperationException(
"Not supported yet," 1534 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1535 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1536 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1541 throws SQLException {
1542 throw new UnsupportedOperationException(
"Not supported yet," 1543 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1544 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1545 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1550 throws SQLException {
1551 throw new UnsupportedOperationException(
"Not supported yet," 1552 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1553 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1554 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1559 throws SQLException {
1560 throw new UnsupportedOperationException(
"Not supported yet," 1561 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1562 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1563 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1568 throws SQLException {
1569 throw new UnsupportedOperationException(
"Not supported yet," 1570 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1571 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1572 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1577 throws SQLException {
1578 throw new UnsupportedOperationException(
"Not supported yet," 1579 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1580 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1581 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1586 throws SQLException {
1587 throw new UnsupportedOperationException(
"Not supported yet," 1588 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1589 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1590 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1595 throws SQLException {
1596 throw new UnsupportedOperationException(
"Not supported yet," 1597 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1598 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1599 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1604 throws SQLException {
1605 throw new UnsupportedOperationException(
"Not supported yet," 1606 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1607 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1608 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1613 throws SQLException {
1614 throw new UnsupportedOperationException(
"Not supported yet," 1615 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1616 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1617 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1622 throws SQLException {
1623 throw new UnsupportedOperationException(
"Not supported yet," 1624 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1625 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1626 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1631 throws SQLException {
1632 throw new UnsupportedOperationException(
"Not supported yet," 1633 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1634 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1635 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1640 throw new UnsupportedOperationException(
"Not supported yet," 1641 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1642 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1643 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1653 throws SQLException {
1654 throw new UnsupportedOperationException(
"Not supported yet," 1655 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1656 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1657 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1662 throws SQLException {
1663 throw new UnsupportedOperationException(
"Not supported yet," 1664 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1665 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1666 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1671 throws SQLException {
1672 throw new UnsupportedOperationException(
"Not supported yet," 1673 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1674 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1675 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1680 throws SQLException {
1681 throw new UnsupportedOperationException(
"Not supported yet," 1682 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1683 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1684 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1689 throws SQLException {
1690 throw new UnsupportedOperationException(
"Not supported yet," 1691 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1692 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1693 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1698 throws SQLException {
1699 throw new UnsupportedOperationException(
"Not supported yet," 1700 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1701 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1702 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1707 throws SQLException {
1708 throw new UnsupportedOperationException(
"Not supported yet," 1709 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1710 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1711 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1716 throws SQLException {
1717 throw new UnsupportedOperationException(
"Not supported yet," 1718 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1719 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1720 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1725 throws SQLException {
1726 throw new UnsupportedOperationException(
"Not supported yet," 1727 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1728 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1729 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1734 throws SQLException {
1735 throw new UnsupportedOperationException(
"Not supported yet," 1736 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1737 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1738 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1743 throws SQLException {
1744 throw new UnsupportedOperationException(
"Not supported yet," 1745 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1746 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1747 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1752 throws SQLException {
1753 throw new UnsupportedOperationException(
"Not supported yet," 1754 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1755 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1756 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1761 throws SQLException {
1762 throw new UnsupportedOperationException(
"Not supported yet," 1763 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1764 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1765 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1770 throws SQLException {
1771 throw new UnsupportedOperationException(
"Not supported yet," 1772 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1773 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1774 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1779 throws SQLException {
1780 throw new UnsupportedOperationException(
"Not supported yet," 1781 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1782 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1783 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1788 throws SQLException {
1789 throw new UnsupportedOperationException(
"Not supported yet," 1790 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1791 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1792 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1797 throws SQLException {
1798 throw new UnsupportedOperationException(
"Not supported yet," 1799 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1800 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1801 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1806 throws SQLException {
1807 throw new UnsupportedOperationException(
"Not supported yet," 1808 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1809 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1810 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1815 throws SQLException {
1816 throw new UnsupportedOperationException(
"Not supported yet," 1817 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1818 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1819 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1824 throws SQLException {
1825 throw new UnsupportedOperationException(
"Not supported yet," 1826 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1827 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1828 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1833 throws SQLException {
1834 throw new UnsupportedOperationException(
"Not supported yet," 1835 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1836 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1837 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1842 throws SQLException {
1843 throw new UnsupportedOperationException(
"Not supported yet," 1844 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1845 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1846 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1850 public void updateBlob(
int columnIndex, InputStream inputStream,
long length)
1851 throws SQLException {
1852 throw new UnsupportedOperationException(
"Not supported yet," 1853 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1854 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1855 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1859 public void updateBlob(String columnLabel, InputStream inputStream,
long length)
1860 throws SQLException {
1861 throw new UnsupportedOperationException(
"Not supported yet," 1862 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1863 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1864 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1868 public void updateClob(
int columnIndex, Reader reader,
long length)
1869 throws SQLException {
1870 throw new UnsupportedOperationException(
"Not supported yet," 1871 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1872 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1873 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1877 public void updateClob(String columnLabel, Reader reader,
long length)
1878 throws SQLException {
1879 throw new UnsupportedOperationException(
"Not supported yet," 1880 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1881 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1882 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1887 throws SQLException {
1888 throw new UnsupportedOperationException(
"Not supported yet," 1889 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1890 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1891 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1895 public void updateNClob(String columnLabel, Reader reader,
long length)
1896 throws SQLException {
1897 throw new UnsupportedOperationException(
"Not supported yet," 1898 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1899 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1900 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1905 throws SQLException {
1906 throw new UnsupportedOperationException(
"Not supported yet," 1907 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1908 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1909 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1914 throws SQLException {
1915 throw new UnsupportedOperationException(
"Not supported yet," 1916 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1917 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1918 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1923 throws SQLException {
1924 throw new UnsupportedOperationException(
"Not supported yet," 1925 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1926 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1927 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1932 throws SQLException {
1933 throw new UnsupportedOperationException(
"Not supported yet," 1934 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1935 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1936 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1941 throws SQLException {
1942 throw new UnsupportedOperationException(
"Not supported yet," 1943 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1944 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1945 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1950 throws SQLException {
1951 throw new UnsupportedOperationException(
"Not supported yet," 1952 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1953 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1954 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1959 throws SQLException {
1960 throw new UnsupportedOperationException(
"Not supported yet," 1961 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1962 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1963 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1968 throws SQLException {
1969 throw new UnsupportedOperationException(
"Not supported yet," 1970 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1971 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1972 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1977 throws SQLException {
1978 throw new UnsupportedOperationException(
"Not supported yet," 1979 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1980 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1981 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1985 public void updateBlob(String columnLabel, InputStream inputStream)
1986 throws SQLException {
1987 throw new UnsupportedOperationException(
"Not supported yet," 1988 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1989 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1990 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1995 throws SQLException {
1996 throw new UnsupportedOperationException(
"Not supported yet," 1997 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1998 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1999 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2004 throws SQLException {
2005 throw new UnsupportedOperationException(
"Not supported yet," 2006 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2007 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2008 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2013 throws SQLException {
2014 throw new UnsupportedOperationException(
"Not supported yet," 2015 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2016 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2017 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2022 throws SQLException {
2023 throw new UnsupportedOperationException(
"Not supported yet," 2024 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2025 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2026 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2031 throws SQLException {
2032 throw new UnsupportedOperationException(
"Not supported yet," 2033 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2034 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2035 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2040 throws SQLException {
2041 throw new UnsupportedOperationException(
"Not supported yet," 2042 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2043 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2044 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2049 throws SQLException {
2050 throw new UnsupportedOperationException(
"Not supported yet," 2051 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2052 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2053 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2058 throws SQLException {
2059 throw new UnsupportedOperationException(
"Not supported yet," 2060 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2061 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2062 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2066 Integer colNum = columnMap.get(
name);
2067 if (colNum == null) {
2068 throw new SQLException(
"Could not find the column " +
name);
2075 throw new SQLException(
"ResultSet is closed.");
void updateNClob(String columnLabel, Reader reader)
Reader getCharacterStream(String columnLabel)
Date getDate(String columnLabel)
InputStream getAsciiStream(String columnLabel)
String getNString(int columnIndex)
BigDecimal getBigDecimal(String columnLabel, int scale)
void updateTime(int columnIndex, Time x)
NClob getNClob(int columnIndex)
void updateNString(int columnIndex, String nString)
void updateNCharacterStream(int columnIndex, Reader x)
void updateCharacterStream(int columnIndex, Reader x, long length)
void updateArray(int columnIndex, Array x)
URL getURL(int columnIndex)
void updateDate(int columnIndex, Date x)
float getFloat(String columnLabel)
public< T > T getObject(String columnLabel, Class< T > type)
boolean getBoolean(String columnLabel)
void updateRowId(String columnLabel, RowId x)
void updateRef(int columnIndex, Ref x)
byte [] getBytes(String columnLabel)
double getDouble(int columnIndex)
void updateTimestamp(int columnIndex, Timestamp x)
void updateBlob(String columnLabel, Blob x)
double getDouble(String columnLabel)
Map< String, Integer > columnMap
long getLong(String columnLabel)
Object getObject(int columnIndex, Map< String, Class<?>> map)
long getLong(int columnIndex)
short getShort(String columnLabel)
void updateNCharacterStream(String columnLabel, Reader reader, long length)
Timestamp extract_complex_time(long val, int precision)
void updateBoolean(int columnIndex, boolean x)
void updateCharacterStream(String columnLabel, Reader reader, int length)
void updateObject(String columnLabel, Object x)
void setFetchSize(int rows)
InputStream getBinaryStream(int columnIndex)
RowId getRowId(String columnLabel)
void updateShort(int columnIndex, short x)
String getString(String columnLabel)
BigDecimal getBigDecimal(int columnIndex, int scale)
void updateNull(String columnLabel)
void updateRef(String columnLabel, Ref x)
void updateBlob(int columnIndex, Blob x)
public< T > T unwrap(Class< T > iface)
NClob getNClob(String columnLabel)
boolean absolute(int row)
void updateNClob(String columnLabel, NClob nClob)
Time getTime(String columnLabel, Calendar cal)
void updateNCharacterStream(int columnIndex, Reader x, long length)
void updateFloat(String columnLabel, float x)
Blob getBlob(String columnLabel)
String getString(int columnIndex)
void updateClob(String columnLabel, Clob x)
void updateAsciiStream(String columnLabel, InputStream x)
void updateAsciiStream(int columnIndex, InputStream x, int length)
InputStream getBinaryStream(String columnLabel)
Date getDate(String columnLabel, Calendar cal)
OmniSciResultSet(TQueryResult tsqlResult, String sql)
RowId getRowId(int columnIndex)
void updateNCharacterStream(String columnLabel, Reader reader)
void updateBigDecimal(String columnLabel, BigDecimal x)
void updateAsciiStream(int columnIndex, InputStream x)
Timestamp getTimestamp(String columnLabel, Calendar cal)
boolean getBoolean(int columnIndex)
InputStream getUnicodeStream(int columnIndex)
BigDecimal getBigDecimal(int columnIndex)
URL getURL(String columnLabel)
Timestamp getTimestamp(int columnIndex, Calendar cal)
Array getArray(String columnLabel)
void updateBinaryStream(int columnIndex, InputStream x)
Time getTime(int columnIndex)
List< TColumnType > rowDesc
Ref getRef(String columnLabel)
Integer findColumnByName(String name)
void updateBoolean(String columnLabel, boolean x)
void updateNString(String columnLabel, String nString)
Time getTime(String columnLabel)
void setFetchDirection(int direction)
void updateArray(String columnLabel, Array x)
float getFloat(int columnIndex)
void updateShort(String columnLabel, short x)
short getShort(int columnIndex)
void updateLong(int columnIndex, long x)
void updateAsciiStream(String columnLabel, InputStream x, long length)
void updateBinaryStream(int columnIndex, InputStream x, long length)
void updateByte(String columnLabel, byte x)
byte getByte(String columnLabel)
void updateBinaryStream(String columnLabel, InputStream x, long length)
void updateAsciiStream(String columnLabel, InputStream x, int length)
void updateClob(String columnLabel, Reader reader, long length)
void updateNClob(int columnIndex, Reader reader)
Reader getNCharacterStream(String columnLabel)
SQLXML getSQLXML(String columnLabel)
void updateObject(int columnIndex, Object x, int scaleOrLength)
int findColumn(String columnLabel)
double getDoubleInternal(int columnIndex)
void updateCharacterStream(int columnIndex, Reader x, int length)
void updateBytes(int columnIndex, byte[] x)
void updateClob(int columnIndex, Reader reader, long length)
void updateCharacterStream(int columnIndex, Reader x)
void updateBlob(String columnLabel, InputStream inputStream, long length)
void updateInt(String columnLabel, int x)
Object getObject(String columnLabel, Map< String, Class<?>> map)
void updateBinaryStream(int columnIndex, InputStream x, int length)
void updateDate(String columnLabel, Date x)
Date getDate(int columnIndex)
public< T > T getObject(int columnIndex, Class< T > type)
byte getByte(int columnIndex)
byte [] getBytes(int columnIndex)
void updateDouble(int columnIndex, double x)
String getNString(String columnLabel)
ResultSetMetaData getMetaData()
void updateBinaryStream(String columnLabel, InputStream x)
int getInt(int columnIndex)
void updateLong(String columnLabel, long x)
Clob getClob(int columnIndex)
InputStream getUnicodeStream(String columnLabel)
Timestamp adjust_precision(long val, int precision)
void updateClob(int columnIndex, Reader reader)
void updateRowId(int columnIndex, RowId x)
Array getArray(int columnIndex)
SQLXML getSQLXML(int columnIndex)
int getInt(String columnLabel)
Blob getBlob(int columnIndex)
void updateNull(int columnIndex)
void updateObject(String columnLabel, Object x, int scaleOrLength)
boolean isWrapperFor(Class<?> iface)
Reader getCharacterStream(int columnIndex)
void updateDouble(String columnLabel, double x)
boolean relative(int rows)
Ref getRef(int columnIndex)
Timestamp getTimestamp(int columnIndex)
void updateTimestamp(String columnLabel, Timestamp x)
void updateFloat(int columnIndex, float x)
InputStream getAsciiStream(int columnIndex)
void updateSQLXML(int columnIndex, SQLXML xmlObject)
void updateBytes(String columnLabel, byte[] x)
void updateNClob(int columnIndex, Reader reader, long length)
void updateAsciiStream(int columnIndex, InputStream x, long length)
Timestamp getTimestamp(String columnLabel)
void updateCharacterStream(String columnLabel, Reader reader, long length)
Object getObject(int columnIndex)
void updateBigDecimal(int columnIndex, BigDecimal x)
void updateBlob(int columnIndex, InputStream inputStream, long length)
void updateInt(int columnIndex, int x)
BigDecimal getBigDecimal(String columnLabel)
long getOffsetFromTZ(long actualmillis, Calendar cal, int precision)
void updateNClob(String columnLabel, Reader reader, long length)
void updateClob(int columnIndex, Clob x)
Date getDate(int columnIndex, Calendar cal)
void updateObject(int columnIndex, Object x)
void updateString(int columnIndex, String x)
void updateCharacterStream(String columnLabel, Reader reader)
void updateString(String columnLabel, String x)
Object getObject(String columnLabel)
void updateClob(String columnLabel, Reader reader)
Clob getClob(String columnLabel)
void updateBinaryStream(String columnLabel, InputStream x, int length)
String getStringInternal(int columnIndex)
void updateSQLXML(String columnLabel, SQLXML xmlObject)
Reader getNCharacterStream(int columnIndex)
void updateNClob(int columnIndex, NClob nClob)
Time getTime(int columnIndex, Calendar cal)
void updateByte(int columnIndex, byte x)
void updateBlob(int columnIndex, InputStream inputStream)
void updateTime(String columnLabel, Time x)
void updateBlob(String columnLabel, InputStream inputStream)