16 package ai.heavy.jdbc;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
21 import java.io.InputStream;
22 import java.io.Reader;
23 import java.math.BigDecimal;
26 import java.util.Calendar;
27 import java.util.HashMap;
28 import java.util.List;
31 import ai.heavy.thrift.server.TColumnType;
32 import ai.heavy.thrift.server.TDatumType;
33 import ai.heavy.thrift.server.TQueryResult;
34 import ai.heavy.thrift.server.TRowSet;
42 final static Logger
logger = LoggerFactory.getLogger(HeavyAIResultSet.class);
60 rowSet = sqlResult.getRow_set();
64 if (rowDesc.isEmpty()) {
69 rowDesc.get(0).getCol_name();
73 for (
final TColumnType colType : rowDesc) {
74 columnMap.put(colType.getCol_name(), current);
77 if (
rowSet.columns.isEmpty()) {
80 numOfRecords = rowSet.getColumns().
get(0).getNullsSize();
92 public boolean next() throws SQLException {
103 public void close() throws SQLException {
111 public boolean wasNull() throws SQLException {
116 public String
getString(
int columnIndex)
throws SQLException {
118 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
123 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
125 if (type == TDatumType.STR
126 && !
sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.is_array) {
127 return rowSet.columns.get(columnIndex - 1).data.str_col.get(
offset);
135 if (
sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.is_array) {
136 return getArray(columnIndex).toString();
139 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
144 return String.valueOf(
getInt(columnIndex));
146 return String.valueOf(
getLong(columnIndex));
148 return String.valueOf(
getFloat(columnIndex));
150 return String.valueOf(
getFloat(columnIndex));
152 return String.valueOf(
getDouble(columnIndex));
156 return getTime(columnIndex).toString();
160 return getDate(columnIndex).toString();
166 case MULTILINESTRING:
171 throw new AssertionError(type.name());
177 throws SQLException {
179 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
185 if (
rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset) == 0) {
195 throws SQLException {
196 throw new UnsupportedOperationException(
"Not supported yet,"
197 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
198 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
199 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
204 throws SQLException {
206 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
212 Long lObj = rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
213 return lObj.shortValue();
219 throws SQLException {
221 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
227 Long lObj = rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
228 return lObj.intValue();
234 throws SQLException {
236 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
242 return rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
248 throws SQLException {
250 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
256 return rowSet.columns.get(columnIndex - 1).data.real_col.get(
offset).floatValue();
262 throws SQLException {
264 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
270 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
272 if (type == TDatumType.DOUBLE) {
273 return rowSet.columns.get(columnIndex - 1).data.real_col.get(
offset);
281 TDatumType
type = sqlResult.row_set.row_desc.get(columnIndex - 1).col_type.type;
286 return (
double)
getInt(columnIndex);
288 return (
double)
getLong(columnIndex);
290 return (
double)
getFloat(columnIndex);
292 return (
double)
getFloat(columnIndex);
296 return Double.valueOf(
getString(columnIndex));
298 return (
double)
getTime(columnIndex).getTime();
302 return (
double)
getDate(columnIndex).getTime();
304 return (
double) (
getBoolean(columnIndex) ? 1 : 0);
306 throw new AssertionError(type.name());
312 throws SQLException {
314 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
320 return BigDecimal.valueOf(
321 rowSet.columns.get(columnIndex - 1).data.real_col.get(
offset));
327 throws SQLException {
328 throw new UnsupportedOperationException(
"Not supported yet,"
329 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
330 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
331 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
336 throws SQLException {
337 return getDate(columnIndex, null);
342 throws SQLException {
343 return getTime(columnIndex, null);
348 throws SQLException {
353 long scale = (long) Math.pow(10, precision);
354 double nano_part = Math.abs(val) % scale;
355 if (val < 0) nano_part = -nano_part;
356 nano_part = (int) ((nano_part + scale) % scale) * (
long) Math.pow(10, 9 - precision);
357 long micro_sec_value = (long) (val / scale);
359 micro_sec_value = micro_sec_value - ((micro_sec_value < 0 && nano_part > 0) ? 1 : 0);
360 Timestamp tm =
new Timestamp(
361 micro_sec_value * 1000);
362 tm.setNanos((int) (nano_part));
369 return new Timestamp(val * 1000);
371 return new Timestamp(val);
376 throw new RuntimeException(
"Invalid precision [" +
Integer.toString(precision)
377 +
"] returned. Valid values 0,3,6,9");
383 throws SQLException {
384 throw new UnsupportedOperationException(
"Not supported yet,"
385 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
386 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
387 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
392 throws SQLException {
393 throw new UnsupportedOperationException(
"Not supported yet,"
394 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
395 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
396 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
401 throws SQLException {
402 throw new UnsupportedOperationException(
"Not supported yet,"
403 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
404 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
405 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
410 throws SQLException {
416 throws SQLException {
422 throws SQLException {
423 throw new UnsupportedOperationException(
"Not supported yet,"
424 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
425 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
426 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
431 throws SQLException {
437 throws SQLException {
443 throws SQLException {
449 throws SQLException {
455 throws SQLException {
461 throws SQLException {
467 throws SQLException {
468 throw new UnsupportedOperationException(
"Not supported yet,"
469 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
470 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
471 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
476 throws SQLException {
477 return getDate(columnLabel, null);
482 throws SQLException {
483 return getTime(columnLabel, null);
488 throws SQLException {
494 throws SQLException {
495 throw new UnsupportedOperationException(
"Not supported yet,"
496 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
497 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
498 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
503 throws SQLException {
504 throw new UnsupportedOperationException(
"Not supported yet,"
505 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
506 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
507 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
512 throws SQLException {
513 throw new UnsupportedOperationException(
"Not supported yet,"
514 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
515 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
516 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
531 throw new UnsupportedOperationException(
"Not supported yet,"
532 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
533 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
534 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
539 throws SQLException {
546 throws SQLException {
548 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
553 if (
rowDesc.get(columnIndex - 1).col_type.is_array) {
566 return this.rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
570 return this.rowSet.columns.get(columnIndex - 1).data.real_col.get(
offset);
575 case MULTILINESTRING:
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 {
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 {
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();
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)
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)
1304 elements =
new Timestamp[size];
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);
1350 case MULTILINESTRING:
1353 elements =
new String[size];
1354 for (
int i = 0; i < size; ++i) {
1355 elements[i] = rowSet.columns.get(columnIndex - 1)
1356 .data.arr_col.get(
offset)
1357 .data.str_col.get(i);
1361 throw new AssertionError(
rowDesc.get(columnIndex - 1).col_type.type.name());
1364 for (
int i = 0; i < size; ++i) {
1365 if (this.
rowSet.columns.get(columnIndex - 1)
1366 .data.arr_col.get(
offset)
1377 public Object
getObject(String columnLabel, Map<String, Class<?>> map)
1378 throws SQLException {
1379 throw new UnsupportedOperationException(
"Not supported yet,"
1380 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1381 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1382 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1387 throws SQLException {
1388 throw new UnsupportedOperationException(
"Not supported yet,"
1389 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1390 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1391 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1396 throws SQLException {
1397 throw new UnsupportedOperationException(
"Not supported yet,"
1398 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1399 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1400 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1405 throws SQLException {
1406 throw new UnsupportedOperationException(
"Not supported yet,"
1407 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1408 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1409 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1414 throws SQLException {
1423 if (cal.getTimeZone() != null) {
1424 offset = cal.getTimeZone().getOffset(actualmillis);
1426 offset = Calendar.getInstance().getTimeZone().getOffset(actualmillis);
1428 switch (precision) {
1430 return offset / 1000;
1434 return offset * 1000;
1436 return offset * 1000000;
1438 throw new RuntimeException(
"Invalid precision [" +
Integer.toString(precision)
1439 +
"] returned. Valid values 0,3,6,9");
1444 public Date getDate(
int columnIndex, Calendar cal)
throws SQLException {
1446 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
1452 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
1462 public Date getDate(String columnLabel, Calendar cal)
throws SQLException {
1468 throws SQLException {
1470 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
1476 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
1480 return new Time(val * 1000);
1486 throws SQLException {
1492 throws SQLException {
1494 if (
rowSet.columns.get(columnIndex - 1).nulls.get(
offset)) {
1500 long val = rowSet.columns.get(columnIndex - 1).data.int_col.get(
offset);
1501 int precision = rowSet.row_desc.get(columnIndex - 1).col_type.getPrecision();
1511 throws SQLException {
1517 throws SQLException {
1518 throw new UnsupportedOperationException(
"Not supported yet,"
1519 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1520 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1521 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1526 throws SQLException {
1527 throw new UnsupportedOperationException(
"Not supported yet,"
1528 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1529 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1530 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1535 throws SQLException {
1536 throw new UnsupportedOperationException(
"Not supported yet,"
1537 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1538 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1539 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1544 throws SQLException {
1545 throw new UnsupportedOperationException(
"Not supported yet,"
1546 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1547 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1548 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1553 throws SQLException {
1554 throw new UnsupportedOperationException(
"Not supported yet,"
1555 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1556 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1557 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1562 throws SQLException {
1563 throw new UnsupportedOperationException(
"Not supported yet,"
1564 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1565 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1566 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1571 throws SQLException {
1572 throw new UnsupportedOperationException(
"Not supported yet,"
1573 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1574 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1575 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1580 throws SQLException {
1581 throw new UnsupportedOperationException(
"Not supported yet,"
1582 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1583 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1584 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1589 throws SQLException {
1590 throw new UnsupportedOperationException(
"Not supported yet,"
1591 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1592 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1593 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1598 throws SQLException {
1599 throw new UnsupportedOperationException(
"Not supported yet,"
1600 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1601 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1602 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1607 throws SQLException {
1608 throw new UnsupportedOperationException(
"Not supported yet,"
1609 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1610 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1611 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1616 throws SQLException {
1617 throw new UnsupportedOperationException(
"Not supported yet,"
1618 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1619 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1620 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1625 throws SQLException {
1626 throw new UnsupportedOperationException(
"Not supported yet,"
1627 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1628 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1629 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1634 throws SQLException {
1635 throw new UnsupportedOperationException(
"Not supported yet,"
1636 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1637 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1638 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1643 throw new UnsupportedOperationException(
"Not supported yet,"
1644 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1645 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1646 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1656 throws SQLException {
1657 throw new UnsupportedOperationException(
"Not supported yet,"
1658 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1659 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1660 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1665 throws SQLException {
1666 throw new UnsupportedOperationException(
"Not supported yet,"
1667 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1668 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1669 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1674 throws SQLException {
1675 throw new UnsupportedOperationException(
"Not supported yet,"
1676 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1677 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1678 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1683 throws SQLException {
1684 throw new UnsupportedOperationException(
"Not supported yet,"
1685 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1686 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1687 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1692 throws SQLException {
1693 throw new UnsupportedOperationException(
"Not supported yet,"
1694 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1695 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1696 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1701 throws SQLException {
1702 throw new UnsupportedOperationException(
"Not supported yet,"
1703 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1704 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1705 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1710 throws SQLException {
1711 throw new UnsupportedOperationException(
"Not supported yet,"
1712 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1713 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1714 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1719 throws SQLException {
1720 throw new UnsupportedOperationException(
"Not supported yet,"
1721 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1722 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1723 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1728 throws SQLException {
1729 throw new UnsupportedOperationException(
"Not supported yet,"
1730 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1731 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1732 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1737 throws SQLException {
1738 throw new UnsupportedOperationException(
"Not supported yet,"
1739 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1740 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1741 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1746 throws SQLException {
1747 throw new UnsupportedOperationException(
"Not supported yet,"
1748 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1749 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1750 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1755 throws SQLException {
1756 throw new UnsupportedOperationException(
"Not supported yet,"
1757 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1758 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1759 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1764 throws SQLException {
1765 throw new UnsupportedOperationException(
"Not supported yet,"
1766 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1767 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1768 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1773 throws SQLException {
1774 throw new UnsupportedOperationException(
"Not supported yet,"
1775 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1776 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1777 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1782 throws SQLException {
1783 throw new UnsupportedOperationException(
"Not supported yet,"
1784 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1785 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1786 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1791 throws SQLException {
1792 throw new UnsupportedOperationException(
"Not supported yet,"
1793 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1794 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1795 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1800 throws SQLException {
1801 throw new UnsupportedOperationException(
"Not supported yet,"
1802 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1803 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1804 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1809 throws SQLException {
1810 throw new UnsupportedOperationException(
"Not supported yet,"
1811 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1812 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1813 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1818 throws SQLException {
1819 throw new UnsupportedOperationException(
"Not supported yet,"
1820 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1821 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1822 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1827 throws SQLException {
1828 throw new UnsupportedOperationException(
"Not supported yet,"
1829 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1830 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1831 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1836 throws SQLException {
1837 throw new UnsupportedOperationException(
"Not supported yet,"
1838 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1839 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1840 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1845 throws SQLException {
1846 throw new UnsupportedOperationException(
"Not supported yet,"
1847 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1848 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1849 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1853 public void updateBlob(
int columnIndex, InputStream inputStream,
long length)
1854 throws SQLException {
1855 throw new UnsupportedOperationException(
"Not supported yet,"
1856 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1857 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1858 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1862 public void updateBlob(String columnLabel, InputStream inputStream,
long length)
1863 throws SQLException {
1864 throw new UnsupportedOperationException(
"Not supported yet,"
1865 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1866 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1867 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1871 public void updateClob(
int columnIndex, Reader reader,
long length)
1872 throws SQLException {
1873 throw new UnsupportedOperationException(
"Not supported yet,"
1874 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1875 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1876 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1880 public void updateClob(String columnLabel, Reader reader,
long length)
1881 throws SQLException {
1882 throw new UnsupportedOperationException(
"Not supported yet,"
1883 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1884 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1885 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1890 throws SQLException {
1891 throw new UnsupportedOperationException(
"Not supported yet,"
1892 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1893 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1894 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1898 public void updateNClob(String columnLabel, Reader reader,
long length)
1899 throws SQLException {
1900 throw new UnsupportedOperationException(
"Not supported yet,"
1901 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1902 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1903 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1908 throws SQLException {
1909 throw new UnsupportedOperationException(
"Not supported yet,"
1910 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1911 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1912 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1917 throws SQLException {
1918 throw new UnsupportedOperationException(
"Not supported yet,"
1919 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1920 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1921 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1926 throws SQLException {
1927 throw new UnsupportedOperationException(
"Not supported yet,"
1928 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1929 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1930 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1935 throws SQLException {
1936 throw new UnsupportedOperationException(
"Not supported yet,"
1937 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1938 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1939 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1944 throws SQLException {
1945 throw new UnsupportedOperationException(
"Not supported yet,"
1946 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1947 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1948 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1953 throws SQLException {
1954 throw new UnsupportedOperationException(
"Not supported yet,"
1955 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1956 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1957 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1962 throws SQLException {
1963 throw new UnsupportedOperationException(
"Not supported yet,"
1964 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1965 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1966 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1971 throws SQLException {
1972 throw new UnsupportedOperationException(
"Not supported yet,"
1973 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1974 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1975 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1980 throws SQLException {
1981 throw new UnsupportedOperationException(
"Not supported yet,"
1982 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1983 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1984 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1988 public void updateBlob(String columnLabel, InputStream inputStream)
1989 throws SQLException {
1990 throw new UnsupportedOperationException(
"Not supported yet,"
1991 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
1992 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
1993 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
1998 throws SQLException {
1999 throw new UnsupportedOperationException(
"Not supported yet,"
2000 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2001 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2002 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2007 throws SQLException {
2008 throw new UnsupportedOperationException(
"Not supported yet,"
2009 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2010 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2011 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2016 throws SQLException {
2017 throw new UnsupportedOperationException(
"Not supported yet,"
2018 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2019 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2020 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2025 throws SQLException {
2026 throw new UnsupportedOperationException(
"Not supported yet,"
2027 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2028 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2029 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2034 throws SQLException {
2035 throw new UnsupportedOperationException(
"Not supported yet,"
2036 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2037 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2038 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2043 throws SQLException {
2044 throw new UnsupportedOperationException(
"Not supported yet,"
2045 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2046 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2047 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2052 throws SQLException {
2053 throw new UnsupportedOperationException(
"Not supported yet,"
2054 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2055 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2056 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2061 throws SQLException {
2062 throw new UnsupportedOperationException(
"Not supported yet,"
2063 +
" line:" +
new Throwable().getStackTrace()[0].getLineNumber()
2064 +
" class:" +
new Throwable().getStackTrace()[0].getClassName()
2065 +
" method:" +
new Throwable().getStackTrace()[0].getMethodName());
2070 if (colNum == null) {
2071 throw new SQLException(
"Could not find the column " +
name);
2078 throw new SQLException(
"ResultSet is closed.");
void updateClob(int columnIndex, Reader reader)
boolean getBoolean(String columnLabel)
void updateAsciiStream(String columnLabel, InputStream x, int length)
void updateNClob(String columnLabel, Reader reader, long length)
void updateShort(String columnLabel, short x)
void updateNClob(String columnLabel, Reader reader)
void updateTimestamp(int columnIndex, Timestamp x)
void updateLong(int columnIndex, long x)
void updateCharacterStream(String columnLabel, Reader reader, int length)
Ref getRef(int columnIndex)
Reader getCharacterStream(int columnIndex)
static final Logger logger
void updateBigDecimal(String columnLabel, BigDecimal x)
Timestamp adjust_precision(long val, int precision)
Array getArray(String columnLabel)
SQLXML getSQLXML(String columnLabel)
void updateNClob(String columnLabel, NClob nClob)
InputStream getAsciiStream(String columnLabel)
void updateAsciiStream(int columnIndex, InputStream x)
void updateString(int columnIndex, String x)
int getInt(String columnLabel)
void updateTime(String columnLabel, Time x)
void updateRowId(int columnIndex, RowId x)
void updateClob(String columnLabel, Reader reader)
void updateInt(String columnLabel, int x)
void updateClob(int columnIndex, Clob x)
boolean relative(int rows)
Timestamp getTimestamp(String columnLabel)
void updateTimestamp(String columnLabel, Timestamp x)
long getOffsetFromTZ(long actualmillis, Calendar cal, int precision)
void updateClob(int columnIndex, Reader reader, long length)
String getStringInternal(int columnIndex)
HeavyAIResultSet(TQueryResult tsqlResult, String sql)
void updateBlob(int columnIndex, Blob x)
int getInt(int columnIndex)
void updateDate(String columnLabel, Date x)
InputStream getUnicodeStream(int columnIndex)
byte[] getBytes(int columnIndex)
void updateBytes(String columnLabel, byte[] x)
void updateBinaryStream(int columnIndex, InputStream x)
void updateBlob(int columnIndex, InputStream inputStream, long length)
double getDouble(int columnIndex)
Clob getClob(String columnLabel)
void setFetchDirection(int direction)
Object getObject(int columnIndex)
byte getByte(int columnIndex)
void updateCharacterStream(int columnIndex, Reader x)
void updateClob(String columnLabel, Clob x)
Blob getBlob(String columnLabel)
void updateAsciiStream(int columnIndex, InputStream x, long length)
void updateNCharacterStream(int columnIndex, Reader x)
void updateBinaryStream(int columnIndex, InputStream x, int length)
Timestamp extract_complex_time(long val, int precision)
BigDecimal getBigDecimal(String columnLabel)
void updateBlob(String columnLabel, InputStream inputStream, long length)
void updateBytes(int columnIndex, byte[] x)
Time getTime(int columnIndex, Calendar cal)
String getString(int columnIndex)
void updateNCharacterStream(String columnLabel, Reader reader)
Clob getClob(int columnIndex)
Object getObject(String columnLabel)
public< T > T unwrap(Class< T > iface)
URL getURL(String columnLabel)
Date getDate(int columnIndex, Calendar cal)
void updateObject(String columnLabel, Object x, int scaleOrLength)
RowId getRowId(String columnLabel)
Integer findColumnByName(String name)
float getFloat(String columnLabel)
URL getURL(int columnIndex)
void updateBlob(int columnIndex, InputStream inputStream)
String getNString(int columnIndex)
InputStream getBinaryStream(String columnLabel)
Reader getNCharacterStream(int columnIndex)
long getLong(int columnIndex)
void updateBlob(String columnLabel, Blob x)
void updateRowId(String columnLabel, RowId x)
void updateByte(String columnLabel, byte x)
void updateSQLXML(int columnIndex, SQLXML xmlObject)
void setFetchSize(int rows)
void updateInt(int columnIndex, int x)
void updateShort(int columnIndex, short x)
void updateCharacterStream(int columnIndex, Reader x, int length)
SQLXML getSQLXML(int columnIndex)
Time getTime(String columnLabel)
Object getObject(String columnLabel, Map< String, Class<?>> map)
Date getDate(int columnIndex)
byte[] getBytes(String columnLabel)
BigDecimal getBigDecimal(int columnIndex)
void updateNString(String columnLabel, String nString)
void updateFloat(String columnLabel, float x)
InputStream getAsciiStream(int columnIndex)
void updateNClob(int columnIndex, Reader reader, long length)
void updateCharacterStream(String columnLabel, Reader reader)
BigDecimal getBigDecimal(String columnLabel, int scale)
void updateBoolean(String columnLabel, boolean x)
void updateLong(String columnLabel, long x)
RowId getRowId(int columnIndex)
void updateNCharacterStream(String columnLabel, Reader reader, long length)
Timestamp getTimestamp(int columnIndex, Calendar cal)
void updateDouble(int columnIndex, double x)
long getLong(String columnLabel)
void updateAsciiStream(String columnLabel, InputStream x, long length)
void updateAsciiStream(String columnLabel, InputStream x)
List< TColumnType > rowDesc
void updateRef(int columnIndex, Ref x)
void updateNString(int columnIndex, String nString)
double getDouble(String columnLabel)
void updateBinaryStream(String columnLabel, InputStream x, int length)
void updateBinaryStream(String columnLabel, InputStream x)
void updateBigDecimal(int columnIndex, BigDecimal x)
InputStream getUnicodeStream(String columnLabel)
void updateNClob(int columnIndex, Reader reader)
int findColumn(String columnLabel)
boolean absolute(int row)
short getShort(String columnLabel)
Reader getCharacterStream(String columnLabel)
void updateBinaryStream(String columnLabel, InputStream x, long length)
void updateDouble(String columnLabel, double x)
void updateBlob(String columnLabel, InputStream inputStream)
Date getDate(String columnLabel, Calendar cal)
void updateObject(int columnIndex, Object x, int scaleOrLength)
public< T > T getObject(String columnLabel, Class< T > type)
void updateSQLXML(String columnLabel, SQLXML xmlObject)
Timestamp getTimestamp(String columnLabel, Calendar cal)
void updateFloat(int columnIndex, float x)
void updateBoolean(int columnIndex, boolean x)
String getString(String columnLabel)
void updateArray(String columnLabel, Array x)
Date getDate(String columnLabel)
void updateRef(String columnLabel, Ref x)
Reader getNCharacterStream(String columnLabel)
void updateString(String columnLabel, String x)
void updateObject(String columnLabel, Object x)
void updateBinaryStream(int columnIndex, InputStream x, long length)
Time getTime(int columnIndex)
void updateArray(int columnIndex, Array x)
public< T > T getObject(int columnIndex, Class< T > type)
float getFloat(int columnIndex)
Blob getBlob(int columnIndex)
Ref getRef(String columnLabel)
NClob getNClob(String columnLabel)
ResultSetMetaData getMetaData()
void updateNClob(int columnIndex, NClob nClob)
Array getArray(int columnIndex)
Object getObject(int columnIndex, Map< String, Class<?>> map)
void updateByte(int columnIndex, byte x)
void updateTime(int columnIndex, Time x)
Timestamp getTimestamp(int columnIndex)
double getDoubleInternal(int columnIndex)
void updateCharacterStream(int columnIndex, Reader x, long length)
NClob getNClob(int columnIndex)
void updateObject(int columnIndex, Object x)
InputStream getBinaryStream(int columnIndex)
void updateCharacterStream(String columnLabel, Reader reader, long length)
void updateClob(String columnLabel, Reader reader, long length)
BigDecimal getBigDecimal(int columnIndex, int scale)
void updateNull(int columnIndex)
void updateDate(int columnIndex, Date x)
Map< String, Integer > columnMap
byte getByte(String columnLabel)
boolean getBoolean(int columnIndex)
void updateNCharacterStream(int columnIndex, Reader x, long length)
void updateAsciiStream(int columnIndex, InputStream x, int length)
Time getTime(String columnLabel, Calendar cal)
short getShort(int columnIndex)
void updateNull(String columnLabel)
boolean isWrapperFor(Class<?> iface)
String getNString(String columnLabel)