1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_19) on Wed Dec 30 16:45:48 CET 2009 -->
<TITLE>
Support (jTDS API)
</TITLE>
<META NAME="keywords" CONTENT="net.sourceforge.jtds.jdbc.Support class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Support (jTDS API)";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Support.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../net/sourceforge/jtds/jdbc/SQLParser.CachedSQLQuery.html" title="class in net.sourceforge.jtds.jdbc"><B>PREV CLASS</B></A>
<A HREF="../../../../net/sourceforge/jtds/jdbc/TdsCore.html" title="class in net.sourceforge.jtds.jdbc"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Support.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
net.sourceforge.jtds.jdbc</FONT>
<BR>
Class Support</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>net.sourceforge.jtds.jdbc.Support</B>
</PRE>
<HR>
<DL>
<DT>public class <B>Support</B><DT>extends java.lang.Object</DL>
<P>
This class contains static utility methods designed to support the
main driver classes.
<p>
Implementation notes:
<ol>
<li>The methods in this class incorporate some code from previous versions
of jTDS to handle dates, BLobs etc.
<li>This class contains routines to generate runtime messages from the resource file.
<li>The key data conversion logic used in Statements and result sets is implemented here.
<li>There is nothing here which is TDS specific.
</ol>
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Id: Support.java,v 1.56.2.5 2009/10/22 07:28:23 ickzon Exp $</DD>
<DT><B>Author:</B></DT>
<DD>Mike Hutchinson, jTDS project</DD>
</DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigDecimal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#BIG_DECIMAL_ONE">BIG_DECIMAL_ONE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigDecimal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#BIG_DECIMAL_ZERO">BIG_DECIMAL_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.ThreadLocal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#calendar">calendar</A></B></CODE>
<BR>
Thread-bound utility Calendar object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.sql.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#DATE_ZERO">DATE_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#DOUBLE_ONE">DOUBLE_ONE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#DOUBLE_ZERO">DOUBLE_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#FLOAT_ONE">FLOAT_ONE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#FLOAT_ZERO">FLOAT_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static char[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#hex">hex</A></B></CODE>
<BR>
Hex constants to use in conversion routines.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Integer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#INTEGER_ONE">INTEGER_ONE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Integer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#INTEGER_ZERO">INTEGER_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#LONG_ONE">LONG_ONE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.Long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#LONG_ZERO">LONG_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigInteger</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MAX_VALUE_28">MAX_VALUE_28</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigInteger</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MAX_VALUE_38">MAX_VALUE_38</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigDecimal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MAX_VALUE_LONG_BD">MAX_VALUE_LONG_BD</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigInteger</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MAX_VALUE_LONG_BI">MAX_VALUE_LONG_BI</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigDecimal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MIN_VALUE_LONG_BD">MIN_VALUE_LONG_BD</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.math.BigInteger</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#MIN_VALUE_LONG_BI">MIN_VALUE_LONG_BI</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.sql.Time</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#TIME_ZERO">TIME_ZERO</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.util.HashMap</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#typeMap">typeMap</A></B></CODE>
<BR>
Convert java clases to java.sql.Type constant.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#Support()">Support</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#calculateNamedPipeBufferSize(int, int)">calculateNamedPipeBufferSize</A></B>(int tdsVersion,
int packetSize)</CODE>
<BR>
Calculate the buffer size to use when buffering the <code>InputStream</code>
for named pipes.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#castNumeric(java.lang.Object, int, int)">castNumeric</A></B>(java.lang.Object orig,
int sourceType,
int targetType)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#convert(java.lang.Object, java.lang.Object, int, java.lang.String)">convert</A></B>(java.lang.Object callerReference,
java.lang.Object x,
int jdbcType,
java.lang.String charSet)</CODE>
<BR>
Convert an existing data object to the specified JDBC type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#convertLOB(java.lang.Object)">convertLOB</A></B>(java.lang.Object value)</CODE>
<BR>
Converts a LOB to the equivalent Java type, i.e. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#convertLOBType(int)">convertLOBType</A></B>(int type)</CODE>
<BR>
Converts a LOB type constant to the equivalent Java type constant, i.e.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#embedData(java.lang.StringBuffer, java.lang.Object, boolean, net.sourceforge.jtds.jdbc.ConnectionJDBC2)">embedData</A></B>(java.lang.StringBuffer buf,
java.lang.Object value,
boolean isUnicode,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A> connection)</CODE>
<BR>
Embed the data object as a string literal in the buffer supplied.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#encodeString(java.lang.String, java.lang.String)">encodeString</A></B>(java.lang.String cs,
java.lang.String value)</CODE>
<BR>
Encode a string into a byte array using the specified character set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getClassName(int)">getClassName</A></B>(int jdbcType)</CODE>
<BR>
Retrieve the fully qualified java class name for the
supplied JDBC Types constant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static <A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getConnection(java.lang.Object)">getConnection</A></B>(java.lang.Object callerReference)</CODE>
<BR>
Returns the connection for a given <code>ResultSet</code>,
<code>Statement</code> or <code>Connection</code> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getJdbcType(java.lang.Class)">getJdbcType</A></B>(java.lang.Class typeClass)</CODE>
<BR>
Get the JDBC type constant which matches the supplied <code>Class</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getJdbcType(java.lang.Object)">getJdbcType</A></B>(java.lang.Object value)</CODE>
<BR>
Get the JDBC type constant which matches the supplied Object type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getJdbcTypeName(int)">getJdbcTypeName</A></B>(int jdbcType)</CODE>
<BR>
Get a String describing the supplied JDBC type constant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getParameterDefinitions(net.sourceforge.jtds.jdbc.ParamInfo[])">getParameterDefinitions</A></B>(<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] parameters)</CODE>
<BR>
Constructs a parameter definition string for use with
sp_executesql, sp_prepare, sp_prepexec, sp_cursoropen,
sp_cursorprepare and sp_cursorprepexec.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#getStatementKey(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[], int, java.lang.String, boolean, boolean)">getStatementKey</A></B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] params,
int serverType,
java.lang.String catalog,
boolean autoCommit,
boolean cursor)</CODE>
<BR>
Generates a unique statement key for a given SQL statement.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#isWindowsOS()">isWindowsOS</A></B>()</CODE>
<BR>
Checks the <code>os.name</code> system property to see if it starts
with "windows".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.Throwable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#linkException(java.lang.Exception, java.lang.Throwable)">linkException</A></B>(java.lang.Exception exception,
java.lang.Throwable cause)</CODE>
<BR>
Link the original cause to an <code>Exception</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.sql.SQLException</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#linkException(java.sql.SQLException, java.lang.Throwable)">linkException</A></B>(java.sql.SQLException sqle,
java.lang.Throwable cause)</CODE>
<BR>
Link the original cause to an <code>SQLException</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.sql.SQLWarning</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#linkException(java.sql.SQLWarning, java.lang.Throwable)">linkException</A></B>(java.sql.SQLWarning sqle,
java.lang.Throwable cause)</CODE>
<BR>
Link the original cause to an <code>SQLWarning</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.math.BigDecimal</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#normalizeBigDecimal(java.math.BigDecimal, int)">normalizeBigDecimal</A></B>(java.math.BigDecimal value,
int maxPrecision)</CODE>
<BR>
Normalize a BigDecimal value so that it fits within the
available precision.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#substituteParameters(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[], net.sourceforge.jtds.jdbc.ConnectionJDBC2)">substituteParameters</A></B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] list,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A> connection)</CODE>
<BR>
Substitute actual data for the parameter markers to simulate
parameter substitution in a PreparedStatement.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#substituteParamMarkers(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[])">substituteParamMarkers</A></B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] list)</CODE>
<BR>
Update the SQL string and replace the ? </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#timeFromZone(java.util.Date, java.util.Calendar)">timeFromZone</A></B>(java.util.Date value,
java.util.Calendar target)</CODE>
<BR>
Convert a timestamp from a different Timezone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#timeToZone(java.util.Date, java.util.Calendar)">timeToZone</A></B>(java.util.Date value,
java.util.Calendar target)</CODE>
<BR>
Convert a timestamp to a different Timezone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#toHex(byte[])">toHex</A></B>(byte[] bytes)</CODE>
<BR>
Convert a byte[] object to a hex string.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="INTEGER_ZERO"><!-- --></A><H3>
INTEGER_ZERO</H3>
<PRE>
private static final java.lang.Integer <B>INTEGER_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="INTEGER_ONE"><!-- --></A><H3>
INTEGER_ONE</H3>
<PRE>
private static final java.lang.Integer <B>INTEGER_ONE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="LONG_ZERO"><!-- --></A><H3>
LONG_ZERO</H3>
<PRE>
private static final java.lang.Long <B>LONG_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="LONG_ONE"><!-- --></A><H3>
LONG_ONE</H3>
<PRE>
private static final java.lang.Long <B>LONG_ONE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="FLOAT_ZERO"><!-- --></A><H3>
FLOAT_ZERO</H3>
<PRE>
private static final java.lang.Float <B>FLOAT_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="FLOAT_ONE"><!-- --></A><H3>
FLOAT_ONE</H3>
<PRE>
private static final java.lang.Float <B>FLOAT_ONE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="DOUBLE_ZERO"><!-- --></A><H3>
DOUBLE_ZERO</H3>
<PRE>
private static final java.lang.Double <B>DOUBLE_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="DOUBLE_ONE"><!-- --></A><H3>
DOUBLE_ONE</H3>
<PRE>
private static final java.lang.Double <B>DOUBLE_ONE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="BIG_DECIMAL_ZERO"><!-- --></A><H3>
BIG_DECIMAL_ZERO</H3>
<PRE>
private static final java.math.BigDecimal <B>BIG_DECIMAL_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="BIG_DECIMAL_ONE"><!-- --></A><H3>
BIG_DECIMAL_ONE</H3>
<PRE>
private static final java.math.BigDecimal <B>BIG_DECIMAL_ONE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="DATE_ZERO"><!-- --></A><H3>
DATE_ZERO</H3>
<PRE>
private static final java.sql.Date <B>DATE_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="TIME_ZERO"><!-- --></A><H3>
TIME_ZERO</H3>
<PRE>
private static final java.sql.Time <B>TIME_ZERO</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MIN_VALUE_LONG_BI"><!-- --></A><H3>
MIN_VALUE_LONG_BI</H3>
<PRE>
private static final java.math.BigInteger <B>MIN_VALUE_LONG_BI</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MAX_VALUE_LONG_BI"><!-- --></A><H3>
MAX_VALUE_LONG_BI</H3>
<PRE>
private static final java.math.BigInteger <B>MAX_VALUE_LONG_BI</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MIN_VALUE_LONG_BD"><!-- --></A><H3>
MIN_VALUE_LONG_BD</H3>
<PRE>
private static final java.math.BigDecimal <B>MIN_VALUE_LONG_BD</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MAX_VALUE_LONG_BD"><!-- --></A><H3>
MAX_VALUE_LONG_BD</H3>
<PRE>
private static final java.math.BigDecimal <B>MAX_VALUE_LONG_BD</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MAX_VALUE_28"><!-- --></A><H3>
MAX_VALUE_28</H3>
<PRE>
private static final java.math.BigInteger <B>MAX_VALUE_28</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="MAX_VALUE_38"><!-- --></A><H3>
MAX_VALUE_38</H3>
<PRE>
private static final java.math.BigInteger <B>MAX_VALUE_38</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="typeMap"><!-- --></A><H3>
typeMap</H3>
<PRE>
private static final java.util.HashMap <B>typeMap</B></PRE>
<DL>
<DD>Convert java clases to java.sql.Type constant.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="hex"><!-- --></A><H3>
hex</H3>
<PRE>
private static final char[] <B>hex</B></PRE>
<DL>
<DD>Hex constants to use in conversion routines.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="calendar"><!-- --></A><H3>
calendar</H3>
<PRE>
private static final java.lang.ThreadLocal <B>calendar</B></PRE>
<DL>
<DD>Thread-bound utility Calendar object.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Support()"><!-- --></A><H3>
Support</H3>
<PRE>
private <B>Support</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="toHex(byte[])"><!-- --></A><H3>
toHex</H3>
<PRE>
public static java.lang.String <B>toHex</B>(byte[] bytes)</PRE>
<DL>
<DD>Convert a byte[] object to a hex string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - The byte array to convert.
<DT><B>Returns:</B><DD>The hex equivalent as a <code>String</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="normalizeBigDecimal(java.math.BigDecimal, int)"><!-- --></A><H3>
normalizeBigDecimal</H3>
<PRE>
static java.math.BigDecimal <B>normalizeBigDecimal</B>(java.math.BigDecimal value,
int maxPrecision)
throws java.sql.SQLException</PRE>
<DL>
<DD>Normalize a BigDecimal value so that it fits within the
available precision.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The decimal value to normalize.<DD><CODE>maxPrecision</CODE> - The decimal precision supported by the server
(assumed to be a value of either 28 or 38).
<DT><B>Returns:</B><DD>The possibly normalized decimal value as a <code>BigDecimal</code>.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - If the number is too big.</DL>
</DD>
</DL>
<HR>
<A NAME="castNumeric(java.lang.Object, int, int)"><!-- --></A><H3>
castNumeric</H3>
<PRE>
static java.lang.Object <B>castNumeric</B>(java.lang.Object orig,
int sourceType,
int targetType)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="convert(java.lang.Object, java.lang.Object, int, java.lang.String)"><!-- --></A><H3>
convert</H3>
<PRE>
static java.lang.Object <B>convert</B>(java.lang.Object callerReference,
java.lang.Object x,
int jdbcType,
java.lang.String charSet)
throws java.sql.SQLException</PRE>
<DL>
<DD>Convert an existing data object to the specified JDBC type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callerReference</CODE> - an object reference to the caller of this method;
must be a <code>Connection</code>,
<code>Statement</code> or <code>ResultSet</code><DD><CODE>x</CODE> - the data object to convert<DD><CODE>jdbcType</CODE> - the required type constant from
<code>java.sql.Types</code>
<DT><B>Returns:</B><DD>the converted data object
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if the conversion is not supported or fails</DL>
</DD>
</DL>
<HR>
<A NAME="getJdbcType(java.lang.Object)"><!-- --></A><H3>
getJdbcType</H3>
<PRE>
static int <B>getJdbcType</B>(java.lang.Object value)</PRE>
<DL>
<DD>Get the JDBC type constant which matches the supplied Object type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The object to analyse.
<DT><B>Returns:</B><DD>The JDBC type constant as an <code>int</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="getJdbcType(java.lang.Class)"><!-- --></A><H3>
getJdbcType</H3>
<PRE>
static int <B>getJdbcType</B>(java.lang.Class typeClass)</PRE>
<DL>
<DD>Get the JDBC type constant which matches the supplied <code>Class</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>typeClass</CODE> - the <code>Class</code> to analyse
<DT><B>Returns:</B><DD>the JDBC type constant as an <code>int</code></DL>
</DD>
</DL>
<HR>
<A NAME="getJdbcTypeName(int)"><!-- --></A><H3>
getJdbcTypeName</H3>
<PRE>
static java.lang.String <B>getJdbcTypeName</B>(int jdbcType)</PRE>
<DL>
<DD>Get a String describing the supplied JDBC type constant.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jdbcType</CODE> - The constant to be decoded.
<DT><B>Returns:</B><DD>The text decode of the type constant as a <code>String</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="getClassName(int)"><!-- --></A><H3>
getClassName</H3>
<PRE>
static java.lang.String <B>getClassName</B>(int jdbcType)</PRE>
<DL>
<DD>Retrieve the fully qualified java class name for the
supplied JDBC Types constant.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jdbcType</CODE> - The JDBC Types constant.
<DT><B>Returns:</B><DD>The fully qualified java class name as a <code>String</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="embedData(java.lang.StringBuffer, java.lang.Object, boolean, net.sourceforge.jtds.jdbc.ConnectionJDBC2)"><!-- --></A><H3>
embedData</H3>
<PRE>
static void <B>embedData</B>(java.lang.StringBuffer buf,
java.lang.Object value,
boolean isUnicode,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A> connection)
throws java.sql.SQLException</PRE>
<DL>
<DD>Embed the data object as a string literal in the buffer supplied.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buf</CODE> - The buffer in which the data will be embedded.<DD><CODE>value</CODE> - The data object.<DD><CODE>isUnicode</CODE> - Set to <code>true</code> if Unicode strings should be used, else <code>false</code>.<DD><CODE>connection</CODE> - The <A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc"><CODE>ConnectionJDBC2</CODE></A> object.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getStatementKey(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[], int, java.lang.String, boolean, boolean)"><!-- --></A><H3>
getStatementKey</H3>
<PRE>
static java.lang.String <B>getStatementKey</B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] params,
int serverType,
java.lang.String catalog,
boolean autoCommit,
boolean cursor)</PRE>
<DL>
<DD>Generates a unique statement key for a given SQL statement.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sql</CODE> - the sql statement to generate the key for<DD><CODE>params</CODE> - the statement parameters<DD><CODE>serverType</CODE> - the type of server to generate the key for<DD><CODE>catalog</CODE> - the catalog is required for uniqueness on Microsoft
SQL Server<DD><CODE>autoCommit</CODE> - true if in auto commit mode<DD><CODE>cursor</CODE> - true if this is a prepared cursor
<DT><B>Returns:</B><DD>the unique statement key</DL>
</DD>
</DL>
<HR>
<A NAME="getParameterDefinitions(net.sourceforge.jtds.jdbc.ParamInfo[])"><!-- --></A><H3>
getParameterDefinitions</H3>
<PRE>
static java.lang.String <B>getParameterDefinitions</B>(<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] parameters)</PRE>
<DL>
<DD>Constructs a parameter definition string for use with
sp_executesql, sp_prepare, sp_prepexec, sp_cursoropen,
sp_cursorprepare and sp_cursorprepexec.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parameters</CODE> - Parameters to construct the definition for
<DT><B>Returns:</B><DD>a parameter definition string</DL>
</DD>
</DL>
<HR>
<A NAME="substituteParamMarkers(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[])"><!-- --></A><H3>
substituteParamMarkers</H3>
<PRE>
static java.lang.String <B>substituteParamMarkers</B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] list)</PRE>
<DL>
<DD>Update the SQL string and replace the ? markers with parameter names
eg @P0, @P1 etc.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL containing markers to substitute<DD><CODE>list</CODE> - the parameter list
<DT><B>Returns:</B><DD>the modified SQL as a <code>String</code></DL>
</DD>
</DL>
<HR>
<A NAME="substituteParameters(java.lang.String, net.sourceforge.jtds.jdbc.ParamInfo[], net.sourceforge.jtds.jdbc.ConnectionJDBC2)"><!-- --></A><H3>
substituteParameters</H3>
<PRE>
static java.lang.String <B>substituteParameters</B>(java.lang.String sql,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ParamInfo.html" title="class in net.sourceforge.jtds.jdbc">ParamInfo</A>[] list,
<A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A> connection)
throws java.sql.SQLException</PRE>
<DL>
<DD>Substitute actual data for the parameter markers to simulate
parameter substitution in a PreparedStatement.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sql</CODE> - The SQL containing parameter markers to substitute.<DD><CODE>list</CODE> - The parameter descriptors.<DD><CODE>connection</CODE> - The current connection.
<DT><B>Returns:</B><DD>The modified SQL statement.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="encodeString(java.lang.String, java.lang.String)"><!-- --></A><H3>
encodeString</H3>
<PRE>
static byte[] <B>encodeString</B>(java.lang.String cs,
java.lang.String value)</PRE>
<DL>
<DD>Encode a string into a byte array using the specified character set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cs</CODE> - The Charset name.<DD><CODE>value</CODE> - The value to encode.
<DT><B>Returns:</B><DD>The value of the String as a <code>byte[]</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="linkException(java.sql.SQLWarning, java.lang.Throwable)"><!-- --></A><H3>
linkException</H3>
<PRE>
public static java.sql.SQLWarning <B>linkException</B>(java.sql.SQLWarning sqle,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Link the original cause to an <code>SQLWarning</code>.
<p>
This convenience method calls <A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#linkException(java.lang.Exception, java.lang.Throwable)"><CODE>linkException(Exception, Throwable)</CODE></A>
and casts the result for cleaner code elsewhere.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sqle</CODE> - The <code>SQLWarning</code> to enhance.<DD><CODE>cause</CODE> - The <code>Throwable</code> to link.
<DT><B>Returns:</B><DD>The original <code>SQLWarning</code> object.</DL>
</DD>
</DL>
<HR>
<A NAME="linkException(java.sql.SQLException, java.lang.Throwable)"><!-- --></A><H3>
linkException</H3>
<PRE>
public static java.sql.SQLException <B>linkException</B>(java.sql.SQLException sqle,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Link the original cause to an <code>SQLException</code>.
<p>
This convenience method calls <A HREF="../../../../net/sourceforge/jtds/jdbc/Support.html#linkException(java.lang.Exception, java.lang.Throwable)"><CODE>linkException(Exception, Throwable)</CODE></A>
and casts the result for cleaner code elsewhere.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sqle</CODE> - The <code>SQLException</code> to enhance.<DD><CODE>cause</CODE> - The <code>Throwable</code> to link.
<DT><B>Returns:</B><DD>The original <code>SQLException</code> object.</DL>
</DD>
</DL>
<HR>
<A NAME="linkException(java.lang.Exception, java.lang.Throwable)"><!-- --></A><H3>
linkException</H3>
<PRE>
public static java.lang.Throwable <B>linkException</B>(java.lang.Exception exception,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Link the original cause to an <code>Exception</code>.
<p>
If running under JVM 1.4+ the <code>Throwable.initCause(Throwable)</code>
method will be invoked to chain the exception, else the exception is
logged via the <A HREF="../../../../net/sourceforge/jtds/util/Logger.html" title="class in net.sourceforge.jtds.util"><CODE>Logger</CODE></A> class.
Modeled after the code written by Brian Heineman.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>exception</CODE> - The <code>Exception</code> to enhance.<DD><CODE>cause</CODE> - The <code>Throwable</code> to link.
<DT><B>Returns:</B><DD>The original <code>Exception</code> object.</DL>
</DD>
</DL>
<HR>
<A NAME="timeToZone(java.util.Date, java.util.Calendar)"><!-- --></A><H3>
timeToZone</H3>
<PRE>
public static long <B>timeToZone</B>(java.util.Date value,
java.util.Calendar target)</PRE>
<DL>
<DD>Convert a timestamp to a different Timezone.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the timestamp value<DD><CODE>target</CODE> - the <code>Calendar</code> containing the TimeZone
<DT><B>Returns:</B><DD>the new timestamp value as a <code>long</code></DL>
</DD>
</DL>
<HR>
<A NAME="timeFromZone(java.util.Date, java.util.Calendar)"><!-- --></A><H3>
timeFromZone</H3>
<PRE>
public static long <B>timeFromZone</B>(java.util.Date value,
java.util.Calendar target)</PRE>
<DL>
<DD>Convert a timestamp from a different Timezone.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the timestamp value.<DD><CODE>target</CODE> - the Calendar containing the TimeZone.
<DT><B>Returns:</B><DD>The new timestamp value as a <code>long</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="convertLOB(java.lang.Object)"><!-- --></A><H3>
convertLOB</H3>
<PRE>
public static java.lang.Object <B>convertLOB</B>(java.lang.Object value)
throws java.sql.SQLException</PRE>
<DL>
<DD>Converts a LOB to the equivalent Java type, i.e. <code>Clob</code> to
<code>String</code> and <code>Blob</code> to <code>byte[]</code>. If the
value passed is not a LOB object, it is left unchanged and no exception
is thrown; the idea is to transparently convert only LOBs.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - an object that may be a LOB
<DT><B>Returns:</B><DD>if the value was a LOB, the equivalent Java object, otherwise
the original value
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if an error occurs while reading the LOB contents</DL>
</DD>
</DL>
<HR>
<A NAME="convertLOBType(int)"><!-- --></A><H3>
convertLOBType</H3>
<PRE>
public static int <B>convertLOBType</B>(int type)</PRE>
<DL>
<DD>Converts a LOB type constant to the equivalent Java type constant, i.e.
<code>Types.CLOB</code> to <code>Types.LONGVARCHAR</code> and
<code>Types.BLOB</code> to <code>Types.LONGVARBINARY</code>. If the
type passed is not that of a LOB, it is left unchanged and no exception
is thrown; the idea is to transparently convert only LOB types.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - a <CODE>Types</CODE> constant defining a JDBC type, possibly a
LOB
<DT><B>Returns:</B><DD>if the type was that of a LOB, the equivalent Java object type,
otherwise the original type</DL>
</DD>
</DL>
<HR>
<A NAME="isWindowsOS()"><!-- --></A><H3>
isWindowsOS</H3>
<PRE>
public static boolean <B>isWindowsOS</B>()</PRE>
<DL>
<DD>Checks the <code>os.name</code> system property to see if it starts
with "windows".
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if <code>os.name</code> starts with "windows",
else <code>false</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="getConnection(java.lang.Object)"><!-- --></A><H3>
getConnection</H3>
<PRE>
private static <A HREF="../../../../net/sourceforge/jtds/jdbc/ConnectionJDBC2.html" title="class in net.sourceforge.jtds.jdbc">ConnectionJDBC2</A> <B>getConnection</B>(java.lang.Object callerReference)</PRE>
<DL>
<DD>Returns the connection for a given <code>ResultSet</code>,
<code>Statement</code> or <code>Connection</code> object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callerReference</CODE> - an object reference to the caller of this method;
must be a <code>Connection</code>, <code>Statement</code> or
<code>ResultSet</code>
<DT><B>Returns:</B><DD>a connection</DL>
</DD>
</DL>
<HR>
<A NAME="calculateNamedPipeBufferSize(int, int)"><!-- --></A><H3>
calculateNamedPipeBufferSize</H3>
<PRE>
static int <B>calculateNamedPipeBufferSize</B>(int tdsVersion,
int packetSize)</PRE>
<DL>
<DD>Calculate the buffer size to use when buffering the <code>InputStream</code>
for named pipes.
<p/>
The buffer size is tied directly to the packet size because each request
to the <code>SmbNamedPipe</code> will send a request for a particular
size of packet. In other words, if you only request 1 byte, the
<code>SmbNamedPipe</code> will send a request out and only ask for 1 byte
back. Buffering the expected packet size ensures that all of the data
will be returned in the buffer without wasting any space.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tdsVersion</CODE> - the TDS version for the connection<DD><CODE>packetSize</CODE> - requested packet size for the connection
<DT><B>Returns:</B><DD>minimum default packet size if <code>packetSize == 0</code>,
else <code>packetSize</code></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Support.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../net/sourceforge/jtds/jdbc/SQLParser.CachedSQLQuery.html" title="class in net.sourceforge.jtds.jdbc"><B>PREV CLASS</B></A>
<A HREF="../../../../net/sourceforge/jtds/jdbc/TdsCore.html" title="class in net.sourceforge.jtds.jdbc"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Support.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Generated on December 30 2009
</BODY>
</HTML>
|