ConnectionProperties.java 36.3 KB
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 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428
/*
  Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.

  The MySQL Connector/J is licensed under the terms of the GPLv2
  <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
  There are special exceptions to the terms and conditions of the GPLv2 as it is applied to
  this software, see the FOSS License Exception
  <http://www.mysql.com/about/legal/licensing/foss-exception.html>.

  This program is free software; you can redistribute it and/or modify it under the terms
  of the GNU General Public License as published by the Free Software Foundation; version 2
  of the License.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this
  program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
  Floor, Boston, MA 02110-1301  USA

 */

package com.mysql.jdbc;

import java.sql.SQLException;

public interface ConnectionProperties {

    /**
     * Returns a description of the connection properties as an XML document.
     * 
     * @return the connection properties as an XML document.
     * @throws SQLException
     *             if an error occurs.
     */
    public String exposeAsXml() throws SQLException;

    public boolean getAllowLoadLocalInfile();

    public boolean getAllowMultiQueries();

    /**
     * @return Returns the allowNanAndInf.
     */
    public boolean getAllowNanAndInf();

    /**
     * @return Returns the allowUrlInLocalInfile.
     */
    public boolean getAllowUrlInLocalInfile();

    /**
     * @return Returns the alwaysSendSetIsolation.
     */
    public boolean getAlwaysSendSetIsolation();

    /**
     * @return Returns the autoDeserialize.
     */
    public boolean getAutoDeserialize();

    public boolean getAutoGenerateTestcaseScript();

    public boolean getAutoReconnectForPools();

    /**
     * @return Returns the blobSendChunkSize.
     */
    public int getBlobSendChunkSize();

    /**
     * @return Returns if cacheCallableStatements is enabled
     */
    public boolean getCacheCallableStatements();

    /**
     * @return Returns the cachePreparedStatements.
     */
    public boolean getCachePreparedStatements();

    public boolean getCacheResultSetMetadata();

    /**
     * @return Returns the cacheServerConfiguration.
     */
    public boolean getCacheServerConfiguration();

    /**
     * @return Returns the callableStatementCacheSize.
     */
    public int getCallableStatementCacheSize();

    public boolean getCapitalizeTypeNames();

    /**
     * @return Returns the characterSetResults.
     */
    public String getCharacterSetResults();

    /**
     * @return Returns the clobberStreamingResults.
     */
    public boolean getClobberStreamingResults();

    public String getClobCharacterEncoding();

    /**
     * @return Returns the connectionCollation.
     */
    public String getConnectionCollation();

    public int getConnectTimeout();

    public boolean getContinueBatchOnError();

    public boolean getCreateDatabaseIfNotExist();

    public int getDefaultFetchSize();

    /**
     * @return Returns the dontTrackOpenResources.
     */
    public boolean getDontTrackOpenResources();

    /**
     * @return Returns the dumpQueriesOnException.
     */
    public boolean getDumpQueriesOnException();

    /**
     * @return Returns the dynamicCalendars.
     */
    public boolean getDynamicCalendars();

    /**
     * @return Returns the elideSetAutoCommits.
     */
    public boolean getElideSetAutoCommits();

    public boolean getEmptyStringsConvertToZero();

    public boolean getEmulateLocators();

    /**
     * @return Returns the emulateUnsupportedPstmts.
     */
    public boolean getEmulateUnsupportedPstmts();

    /**
     * @return Returns the enablePacketDebug.
     */
    public boolean getEnablePacketDebug();

    public String getEncoding();

    /**
     * @return Returns the explainSlowQueries.
     */
    public boolean getExplainSlowQueries();

    /**
     * @return Returns the failOverReadOnly.
     */
    public boolean getFailOverReadOnly();

    /**
     * @return Returns the gatherPerformanceMetrics.
     */
    public boolean getGatherPerformanceMetrics();

    /**
     * @return Returns the holdResultsOpenOverStatementClose.
     */
    public boolean getHoldResultsOpenOverStatementClose();

    public boolean getIgnoreNonTxTables();

    public int getInitialTimeout();

    public boolean getInteractiveClient();

    /**
     * @return Returns the isInteractiveClient.
     */
    public boolean getIsInteractiveClient();

    /**
     * @return Returns the jdbcCompliantTruncation.
     */
    public boolean getJdbcCompliantTruncation();

    /**
     * @return Returns the dontTrackOpenResources.
     */
    public int getLocatorFetchBufferSize();

    public String getLogger();

    /**
     * @return Returns the loggerClassName.
     */
    public String getLoggerClassName();

    /**
     * @return Returns the logSlowQueries.
     */
    public boolean getLogSlowQueries();

    public boolean getMaintainTimeStats();

    /**
     * @return Returns the maxQuerySizeToLog.
     */
    public int getMaxQuerySizeToLog();

    public int getMaxReconnects();

    public int getMaxRows();

    /**
     * Returns the number of queries that metadata can be cached if caching is
     * enabled.
     * 
     * @return the number of queries to cache metadata for.
     */
    public int getMetadataCacheSize();

    /**
     * @return Returns the noDatetimeStringSync.
     */
    public boolean getNoDatetimeStringSync();

    public boolean getNullCatalogMeansCurrent();

    public boolean getNullNamePatternMatchesAll();

    /**
     * @return Returns the packetDebugBufferSize.
     */
    public int getPacketDebugBufferSize();

    public boolean getParanoid();

    public boolean getPedantic();

    /**
     * @return Returns the preparedStatementCacheSize.
     */
    public int getPreparedStatementCacheSize();

    /**
     * @return Returns the preparedStatementCacheSqlLimit.
     */
    public int getPreparedStatementCacheSqlLimit();

    public boolean getProfileSql();

    /**
     * @return Returns the profileSQL flag
     */
    public boolean getProfileSQL();

    /**
     * @return Returns the propertiesTransform.
     */
    public String getPropertiesTransform();

    public int getQueriesBeforeRetryMaster();

    public boolean getReconnectAtTxEnd();

    public boolean getRelaxAutoCommit();

    /**
     * @return Returns the reportMetricsIntervalMillis.
     */
    public int getReportMetricsIntervalMillis();

    public boolean getRequireSSL();

    /**
     * @return Returns the rollbackOnPooledClose.
     */
    public boolean getRollbackOnPooledClose();

    /**
     * Returns whether or not hosts will be picked in a round-robin fashion.
     * 
     * @return Returns the roundRobinLoadBalance property.
     */
    public boolean getRoundRobinLoadBalance();

    /**
     * @return Returns the runningCTS13.
     */
    public boolean getRunningCTS13();

    public int getSecondsBeforeRetryMaster();

    /**
     * Returns the 'serverTimezone' property.
     * 
     * @return the configured server timezone property.
     */
    public String getServerTimezone();

    /**
     * @return Returns the sessionVariables.
     */
    public String getSessionVariables();

    /**
     * @return Returns the slowQueryThresholdMillis.
     */
    public int getSlowQueryThresholdMillis();

    public String getSocketFactoryClassName();

    public int getSocketTimeout();

    public boolean getStrictFloatingPoint();

    public boolean getStrictUpdates();

    /**
     * @return Returns the tinyInt1isBit.
     */
    public boolean getTinyInt1isBit();

    /**
     * @return Returns the logProtocol.
     */
    public boolean getTraceProtocol();

    public boolean getTransformedBitIsBoolean();

    public boolean getUseCompression();

    /**
     * @return Returns the useFastIntParsing.
     */
    public boolean getUseFastIntParsing();

    public boolean getUseHostsInPrivileges();

    public boolean getUseInformationSchema();

    /**
     * @return Returns the useLocalSessionState.
     */
    public boolean getUseLocalSessionState();

    /**
     * @return Returns the useOldUTF8Behavior.
     */
    public boolean getUseOldUTF8Behavior();

    /**
     * @return Returns the useOnlyServerErrorMessages.
     */
    public boolean getUseOnlyServerErrorMessages();

    /**
     * @return Returns the useReadAheadInput.
     */
    public boolean getUseReadAheadInput();

    public boolean getUseServerPreparedStmts();

    /**
     * @return Returns the useSqlStateCodes state.
     */
    public boolean getUseSqlStateCodes();

    public boolean getUseSSL();

    boolean isUseSSLExplicit();

    public boolean getUseStreamLengthsInPrepStmts();

    public boolean getUseTimezone();

    public boolean getUseUltraDevWorkAround();

    /**
     * @return Returns the useUnbufferedInput.
     */
    public boolean getUseUnbufferedInput();

    public boolean getUseUnicode();

    /**
     * Returns whether or not the driver advises of proper usage.
     * 
     * @return the value of useUsageAdvisor
     */
    public boolean getUseUsageAdvisor();

    public boolean getYearIsDateType();

    /**
     * @return Returns the zeroDateTimeBehavior.
     */
    public String getZeroDateTimeBehavior();

    public void setAllowLoadLocalInfile(boolean property);

    /**
     * @param property
     */
    public void setAllowMultiQueries(boolean property);

    /**
     * @param allowNanAndInf
     *            The allowNanAndInf to set.
     */
    public void setAllowNanAndInf(boolean flag);

    /**
     * @param allowUrlInLocalInfile
     *            The allowUrlInLocalInfile to set.
     */
    public void setAllowUrlInLocalInfile(boolean flag);

    /**
     * @param alwaysSendSetIsolation
     *            The alwaysSendSetIsolation to set.
     */
    public void setAlwaysSendSetIsolation(boolean flag);

    /**
     * @param autoDeserialize
     *            The autoDeserialize to set.
     */
    public void setAutoDeserialize(boolean flag);

    public void setAutoGenerateTestcaseScript(boolean flag);

    /**
     * @param flag
     *            The autoReconnect to set.
     */
    public void setAutoReconnect(boolean flag);

    public void setAutoReconnectForConnectionPools(boolean property);

    /**
     * @param flag
     *            The autoReconnectForPools to set.
     */
    public void setAutoReconnectForPools(boolean flag);

    /**
     * @param blobSendChunkSize
     *            The blobSendChunkSize to set.
     */
    public void setBlobSendChunkSize(String value) throws SQLException;

    /**
     * @param flag
     *            The cacheCallableStatements to set.
     */
    public void setCacheCallableStatements(boolean flag);

    /**
     * @param flag
     *            The cachePreparedStatements to set.
     */
    public void setCachePreparedStatements(boolean flag);

    /**
     * Sets whether or not we should cache result set metadata.
     * 
     * @param property
     */
    public void setCacheResultSetMetadata(boolean property);

    /**
     * @param cacheServerConfiguration
     *            The cacheServerConfiguration to set.
     */
    public void setCacheServerConfiguration(boolean flag);

    /**
     * Configures the number of callable statements to cache. (this is
     * configurable during the life of the connection).
     * 
     * @param size
     *            The callableStatementCacheSize to set.
     * @throws SQLException
     */
    public void setCallableStatementCacheSize(int size) throws SQLException;

    public void setCapitalizeDBMDTypes(boolean property);

    /**
     * @param flag
     *            The capitalizeTypeNames to set.
     */
    public void setCapitalizeTypeNames(boolean flag);

    /**
     * @param encoding
     *            The characterEncoding to set.
     */
    public void setCharacterEncoding(String encoding);

    /**
     * @param characterSet
     *            The characterSetResults to set.
     */
    public void setCharacterSetResults(String characterSet);

    /**
     * @param flag
     *            The clobberStreamingResults to set.
     */
    public void setClobberStreamingResults(boolean flag);

    public void setClobCharacterEncoding(String encoding);

    /**
     * @param collation
     *            The connectionCollation to set.
     */
    public void setConnectionCollation(String collation);

    /**
     * @param timeoutMs
     * @throws SQLException
     */
    public void setConnectTimeout(int timeoutMs) throws SQLException;

    /**
     * @param property
     */
    public void setContinueBatchOnError(boolean property);

    public void setCreateDatabaseIfNotExist(boolean flag);

    public void setDefaultFetchSize(int n) throws SQLException;

    /**
     * @param property
     */
    public void setDetectServerPreparedStmts(boolean property);

    /**
     * @param dontTrackOpenResources
     *            The dontTrackOpenResources to set.
     */
    public void setDontTrackOpenResources(boolean flag);

    /**
     * @param flag
     *            The dumpQueriesOnException to set.
     */
    public void setDumpQueriesOnException(boolean flag);

    /**
     * @param dynamicCalendars
     *            The dynamicCalendars to set.
     */
    public void setDynamicCalendars(boolean flag);

    /**
     * @param flag
     *            The elideSetAutoCommits to set.
     */
    public void setElideSetAutoCommits(boolean flag);

    public void setEmptyStringsConvertToZero(boolean flag);

    /**
     * @param property
     */
    public void setEmulateLocators(boolean property);

    /**
     * @param emulateUnsupportedPstmts
     *            The emulateUnsupportedPstmts to set.
     */
    public void setEmulateUnsupportedPstmts(boolean flag);

    /**
     * @param flag
     *            The enablePacketDebug to set.
     */
    public void setEnablePacketDebug(boolean flag);

    /**
     * @param property
     */
    public void setEncoding(String property);

    /**
     * @param flag
     *            The explainSlowQueries to set.
     */
    public void setExplainSlowQueries(boolean flag);

    /**
     * @param flag
     *            The failOverReadOnly to set.
     */
    public void setFailOverReadOnly(boolean flag);

    /**
     * @param flag
     *            The gatherPerformanceMetrics to set.
     */
    public void setGatherPerformanceMetrics(boolean flag);

    /**
     * @param holdResultsOpenOverStatementClose
     *            The holdResultsOpenOverStatementClose to set.
     */
    public void setHoldResultsOpenOverStatementClose(boolean flag);

    /**
     * @param property
     */
    public void setIgnoreNonTxTables(boolean property);

    /**
     * @param property
     * @throws SQLException
     */
    public void setInitialTimeout(int property) throws SQLException;

    /**
     * @param property
     */
    public void setIsInteractiveClient(boolean property);

    /**
     * @param flag
     *            The jdbcCompliantTruncation to set.
     */
    public void setJdbcCompliantTruncation(boolean flag);

    /**
     * @param locatorFetchBufferSize
     *            The locatorFetchBufferSize to set.
     */
    public void setLocatorFetchBufferSize(String value) throws SQLException;

    /**
     * @param property
     */
    public void setLogger(String property);

    /**
     * @param className
     *            The loggerClassName to set.
     */
    public void setLoggerClassName(String className);

    /**
     * @param flag
     *            The logSlowQueries to set.
     */
    public void setLogSlowQueries(boolean flag);

    public void setMaintainTimeStats(boolean flag);

    /**
     * @param sizeInBytes
     *            The maxQuerySizeToLog to set.
     * @throws SQLException
     */
    public void setMaxQuerySizeToLog(int sizeInBytes) throws SQLException;

    /**
     * @param property
     * @throws SQLException
     */
    public void setMaxReconnects(int property) throws SQLException;

    /**
     * @param property
     * @throws SQLException
     */
    public void setMaxRows(int property) throws SQLException;

    /**
     * Sets the number of queries that metadata can be cached if caching is
     * enabled.
     * 
     * @param value
     *            the number of queries to cache metadata for.
     * @throws SQLException
     */
    public void setMetadataCacheSize(int value) throws SQLException;

    /**
     * @param noDatetimeStringSync
     *            The noDatetimeStringSync to set.
     */
    public void setNoDatetimeStringSync(boolean flag);

    public void setNullCatalogMeansCurrent(boolean value);

    public void setNullNamePatternMatchesAll(boolean value);

    /**
     * @param size
     *            The packetDebugBufferSize to set.
     * @throws SQLException
     */
    public void setPacketDebugBufferSize(int size) throws SQLException;

    /**
     * @param property
     */
    public void setParanoid(boolean property);

    /**
     * @param property
     */
    public void setPedantic(boolean property);

    /**
     * @param cacheSize
     *            The preparedStatementCacheSize to set.
     * @throws SQLException
     */
    public void setPreparedStatementCacheSize(int cacheSize) throws SQLException;

    /**
     * @param cacheSqlLimit
     *            The preparedStatementCacheSqlLimit to set.
     * @throws SQLException
     */
    public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit) throws SQLException;

    /**
     * @param property
     */
    public void setProfileSql(boolean property);

    /**
     * @param flag
     *            The profileSQL to set.
     */
    public void setProfileSQL(boolean flag);

    /**
     * @param propertiesTransform
     *            The propertiesTransform to set.
     */
    public void setPropertiesTransform(String value);

    /**
     * @param property
     * @throws SQLException
     */
    public void setQueriesBeforeRetryMaster(int property) throws SQLException;

    /**
     * @param property
     */
    public void setReconnectAtTxEnd(boolean property);

    /**
     * @param property
     */
    public void setRelaxAutoCommit(boolean property);

    /**
     * @param millis
     *            The reportMetricsIntervalMillis to set.
     * @throws SQLException
     */
    public void setReportMetricsIntervalMillis(int millis) throws SQLException;

    /**
     * @param property
     */
    public void setRequireSSL(boolean property);

    public void setRetainStatementAfterResultSetClose(boolean flag);

    /**
     * @param rollbackOnPooledClose
     *            The rollbackOnPooledClose to set.
     */
    public void setRollbackOnPooledClose(boolean flag);

    /**
     * Sets whether or not hosts will be picked in a round-robin fashion.
     * 
     * @param flag
     *            The roundRobinLoadBalance property to set.
     */
    public void setRoundRobinLoadBalance(boolean flag);

    /**
     * @param runningCTS13
     *            The runningCTS13 to set.
     */
    public void setRunningCTS13(boolean flag);

    /**
     * @param property
     * @throws SQLException
     */
    public void setSecondsBeforeRetryMaster(int property) throws SQLException;

    /**
     * @param property
     */
    public void setServerTimezone(String property);

    /**
     * @param sessionVariables
     *            The sessionVariables to set.
     */
    public void setSessionVariables(String variables);

    /**
     * @param millis
     *            The slowQueryThresholdMillis to set.
     * @throws SQLException
     */
    public void setSlowQueryThresholdMillis(int millis) throws SQLException;

    /**
     * @param property
     */
    public void setSocketFactoryClassName(String property);

    /**
     * @param property
     * @throws SQLException
     */
    public void setSocketTimeout(int property) throws SQLException;

    /**
     * @param property
     */
    public void setStrictFloatingPoint(boolean property);

    /**
     * @param property
     */
    public void setStrictUpdates(boolean property);

    /**
     * @param tinyInt1isBit
     *            The tinyInt1isBit to set.
     */
    public void setTinyInt1isBit(boolean flag);

    /**
     * @param flag
     *            The logProtocol to set.
     */
    public void setTraceProtocol(boolean flag);

    public void setTransformedBitIsBoolean(boolean flag);

    /**
     * @param property
     */
    public void setUseCompression(boolean property);

    /**
     * @param useFastIntParsing
     *            The useFastIntParsing to set.
     */
    public void setUseFastIntParsing(boolean flag);

    /**
     * @param property
     */
    public void setUseHostsInPrivileges(boolean property);

    public void setUseInformationSchema(boolean flag);

    /**
     * @param useLocalSessionState
     *            The useLocalSessionState to set.
     */
    public void setUseLocalSessionState(boolean flag);

    /**
     * @param useOldUTF8Behavior
     *            The useOldUTF8Behavior to set.
     */
    public void setUseOldUTF8Behavior(boolean flag);

    /**
     * @param useOnlyServerErrorMessages
     *            The useOnlyServerErrorMessages to set.
     */
    public void setUseOnlyServerErrorMessages(boolean flag);

    /**
     * @param useReadAheadInput
     *            The useReadAheadInput to set.
     */
    public void setUseReadAheadInput(boolean flag);

    /**
     * @param flag
     *            The detectServerPreparedStmts to set.
     */
    public void setUseServerPreparedStmts(boolean flag);

    /**
     * @param flag
     *            The useSqlStateCodes to set.
     */
    public void setUseSqlStateCodes(boolean flag);

    /**
     * @param property
     */
    public void setUseSSL(boolean property);

    /**
     * @param property
     */
    public void setUseStreamLengthsInPrepStmts(boolean property);

    /**
     * @param property
     */
    public void setUseTimezone(boolean property);

    /**
     * @param property
     */
    public void setUseUltraDevWorkAround(boolean property);

    /**
     * @param flag
     *            The useUnbufferedInput to set.
     */
    public void setUseUnbufferedInput(boolean flag);

    /**
     * @param flag
     *            The useUnicode to set.
     */
    public void setUseUnicode(boolean flag);

    /**
     * Sets whether or not the driver advises of proper usage.
     * 
     * @param useUsageAdvisorFlag
     *            whether or not the driver advises of proper usage.
     */
    public void setUseUsageAdvisor(boolean useUsageAdvisorFlag);

    public void setYearIsDateType(boolean flag);

    /**
     * @param zeroDateTimeBehavior
     *            The zeroDateTimeBehavior to set.
     */
    public void setZeroDateTimeBehavior(String behavior);

    /**
     * @return Returns the useUnbufferedInput.
     */
    public boolean useUnbufferedInput();

    public boolean getUseCursorFetch();

    public void setUseCursorFetch(boolean flag);

    public boolean getOverrideSupportsIntegrityEnhancementFacility();

    public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag);

    public boolean getNoTimezoneConversionForTimeType();

    public void setNoTimezoneConversionForTimeType(boolean flag);

    public boolean getNoTimezoneConversionForDateType();

    public void setNoTimezoneConversionForDateType(boolean flag);

    public boolean getCacheDefaultTimezone();

    public void setCacheDefaultTimezone(boolean flag);

    public boolean getUseJDBCCompliantTimezoneShift();

    public void setUseJDBCCompliantTimezoneShift(boolean flag);

    public boolean getAutoClosePStmtStreams();

    public void setAutoClosePStmtStreams(boolean flag);

    public boolean getProcessEscapeCodesForPrepStmts();

    public void setProcessEscapeCodesForPrepStmts(boolean flag);

    public boolean getUseGmtMillisForDatetimes();

    public void setUseGmtMillisForDatetimes(boolean flag);

    public boolean getDumpMetadataOnColumnNotFound();

    public void setDumpMetadataOnColumnNotFound(boolean flag);

    public String getResourceId();

    public void setResourceId(String resourceId);

    public boolean getRewriteBatchedStatements();

    public void setRewriteBatchedStatements(boolean flag);

    public boolean getJdbcCompliantTruncationForReads();

    public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads);

    public boolean getUseJvmCharsetConverters();

    public void setUseJvmCharsetConverters(boolean flag);

    public boolean getPinGlobalTxToPhysicalConnection();

    public void setPinGlobalTxToPhysicalConnection(boolean flag);

    public void setGatherPerfMetrics(boolean flag);

    public boolean getGatherPerfMetrics();

    public void setUltraDevHack(boolean flag);

    public boolean getUltraDevHack();

    public void setInteractiveClient(boolean property);

    public void setSocketFactory(String name);

    public String getSocketFactory();

    public void setUseServerPrepStmts(boolean flag);

    public boolean getUseServerPrepStmts();

    public void setCacheCallableStmts(boolean flag);

    public boolean getCacheCallableStmts();

    public void setCachePrepStmts(boolean flag);

    public boolean getCachePrepStmts();

    public void setCallableStmtCacheSize(int cacheSize) throws SQLException;

    public int getCallableStmtCacheSize();

    public void setPrepStmtCacheSize(int cacheSize) throws SQLException;

    public int getPrepStmtCacheSize();

    public void setPrepStmtCacheSqlLimit(int sqlLimit) throws SQLException;

    public int getPrepStmtCacheSqlLimit();

    public boolean getNoAccessToProcedureBodies();

    public void setNoAccessToProcedureBodies(boolean flag);

    public boolean getUseOldAliasMetadataBehavior();

    public void setUseOldAliasMetadataBehavior(boolean flag);

    public String getClientCertificateKeyStorePassword();

    public void setClientCertificateKeyStorePassword(String value);

    public String getClientCertificateKeyStoreType();

    public void setClientCertificateKeyStoreType(String value);

    public String getClientCertificateKeyStoreUrl();

    public void setClientCertificateKeyStoreUrl(String value);

    public String getTrustCertificateKeyStorePassword();

    public void setTrustCertificateKeyStorePassword(String value);

    public String getTrustCertificateKeyStoreType();

    public void setTrustCertificateKeyStoreType(String value);

    public String getTrustCertificateKeyStoreUrl();

    public void setTrustCertificateKeyStoreUrl(String value);

    public boolean getUseSSPSCompatibleTimezoneShift();

    public void setUseSSPSCompatibleTimezoneShift(boolean flag);

    public boolean getTreatUtilDateAsTimestamp();

    public void setTreatUtilDateAsTimestamp(boolean flag);

    public boolean getUseFastDateParsing();

    public void setUseFastDateParsing(boolean flag);

    public String getLocalSocketAddress();

    public void setLocalSocketAddress(String address);

    public void setUseConfigs(String configs);

    public String getUseConfigs();

    public boolean getGenerateSimpleParameterMetadata();

    public void setGenerateSimpleParameterMetadata(boolean flag);

    public boolean getLogXaCommands();

    public void setLogXaCommands(boolean flag);

    public int getResultSetSizeThreshold();

    public void setResultSetSizeThreshold(int threshold) throws SQLException;

    public int getNetTimeoutForStreamingResults();

    public void setNetTimeoutForStreamingResults(int value) throws SQLException;

    public boolean getEnableQueryTimeouts();

    public void setEnableQueryTimeouts(boolean flag);

    public boolean getPadCharsWithSpace();

    public void setPadCharsWithSpace(boolean flag);

    public boolean getUseDynamicCharsetInfo();

    public void setUseDynamicCharsetInfo(boolean flag);

    public String getClientInfoProvider();

    public void setClientInfoProvider(String classname);

    public boolean getPopulateInsertRowWithDefaultValues();

    public void setPopulateInsertRowWithDefaultValues(boolean flag);

    public String getLoadBalanceStrategy();

    public void setLoadBalanceStrategy(String strategy);

    public boolean getTcpNoDelay();

    public void setTcpNoDelay(boolean flag);

    public boolean getTcpKeepAlive();

    public void setTcpKeepAlive(boolean flag);

    public int getTcpRcvBuf();

    public void setTcpRcvBuf(int bufSize) throws SQLException;

    public int getTcpSndBuf();

    public void setTcpSndBuf(int bufSize) throws SQLException;

    public int getTcpTrafficClass();

    public void setTcpTrafficClass(int classFlags) throws SQLException;

    public boolean getUseNanosForElapsedTime();

    public void setUseNanosForElapsedTime(boolean flag);

    public long getSlowQueryThresholdNanos();

    public void setSlowQueryThresholdNanos(long nanos) throws SQLException;

    public String getStatementInterceptors();

    public void setStatementInterceptors(String value);

    public boolean getUseDirectRowUnpack();

    public void setUseDirectRowUnpack(boolean flag);

    public String getLargeRowSizeThreshold();

    public void setLargeRowSizeThreshold(String value) throws SQLException;

    public boolean getUseBlobToStoreUTF8OutsideBMP();

    public void setUseBlobToStoreUTF8OutsideBMP(boolean flag);

    public String getUtf8OutsideBmpExcludedColumnNamePattern();

    public void setUtf8OutsideBmpExcludedColumnNamePattern(String regexPattern);

    public String getUtf8OutsideBmpIncludedColumnNamePattern();

    public void setUtf8OutsideBmpIncludedColumnNamePattern(String regexPattern);

    public boolean getIncludeInnodbStatusInDeadlockExceptions();

    public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag);

    public boolean getIncludeThreadDumpInDeadlockExceptions();

    public void setIncludeThreadDumpInDeadlockExceptions(boolean flag);

    public boolean getIncludeThreadNamesAsStatementComment();

    public void setIncludeThreadNamesAsStatementComment(boolean flag);

    public boolean getBlobsAreStrings();

    public void setBlobsAreStrings(boolean flag);

    public boolean getFunctionsNeverReturnBlobs();

    public void setFunctionsNeverReturnBlobs(boolean flag);

    public boolean getAutoSlowLog();

    public void setAutoSlowLog(boolean flag);

    public String getConnectionLifecycleInterceptors();

    public void setConnectionLifecycleInterceptors(String interceptors);

    public String getProfilerEventHandler();

    public void setProfilerEventHandler(String handler);

    public boolean getVerifyServerCertificate();

    public void setVerifyServerCertificate(boolean flag);

    public boolean getUseLegacyDatetimeCode();

    public void setUseLegacyDatetimeCode(boolean flag);

    public boolean getSendFractionalSeconds();

    public void setSendFractionalSeconds(boolean flag);

    public int getSelfDestructOnPingSecondsLifetime();

    public void setSelfDestructOnPingSecondsLifetime(int seconds) throws SQLException;

    public int getSelfDestructOnPingMaxOperations();

    public void setSelfDestructOnPingMaxOperations(int maxOperations) throws SQLException;

    public boolean getUseColumnNamesInFindColumn();

    public void setUseColumnNamesInFindColumn(boolean flag);

    public boolean getUseLocalTransactionState();

    public void setUseLocalTransactionState(boolean flag);

    public boolean getCompensateOnDuplicateKeyUpdateCounts();

    public void setCompensateOnDuplicateKeyUpdateCounts(boolean flag);

    public void setUseAffectedRows(boolean flag);

    public boolean getUseAffectedRows();

    public void setPasswordCharacterEncoding(String characterSet);

    public String getPasswordCharacterEncoding();

    public int getLoadBalanceBlacklistTimeout();

    public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout) throws SQLException;

    public void setRetriesAllDown(int retriesAllDown) throws SQLException;

    public int getRetriesAllDown();

    public ExceptionInterceptor getExceptionInterceptor();

    public void setExceptionInterceptors(String exceptionInterceptors);

    public String getExceptionInterceptors();

    public boolean getQueryTimeoutKillsConnection();

    public void setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection);

    public int getMaxAllowedPacket();

    boolean getRetainStatementAfterResultSetClose();

    public int getLoadBalancePingTimeout();

    public void setLoadBalancePingTimeout(int loadBalancePingTimeout) throws SQLException;

    public boolean getLoadBalanceValidateConnectionOnSwapServer();

    public void setLoadBalanceValidateConnectionOnSwapServer(boolean loadBalanceValidateConnectionOnSwapServer);

    public String getLoadBalanceConnectionGroup();

    public void setLoadBalanceConnectionGroup(String loadBalanceConnectionGroup);

    public String getLoadBalanceExceptionChecker();

    public void setLoadBalanceExceptionChecker(String loadBalanceExceptionChecker);

    public String getLoadBalanceSQLStateFailover();

    public void setLoadBalanceSQLStateFailover(String loadBalanceSQLStateFailover);

    public String getLoadBalanceSQLExceptionSubclassFailover();

    public void setLoadBalanceSQLExceptionSubclassFailover(String loadBalanceSQLExceptionSubclassFailover);

    public boolean getLoadBalanceEnableJMX();

    public void setLoadBalanceEnableJMX(boolean loadBalanceEnableJMX);

    public void setLoadBalanceHostRemovalGracePeriod(int loadBalanceHostRemovalGracePeriod) throws SQLException;

    public int getLoadBalanceHostRemovalGracePeriod();

    public void setLoadBalanceAutoCommitStatementThreshold(int loadBalanceAutoCommitStatementThreshold) throws SQLException;

    public int getLoadBalanceAutoCommitStatementThreshold();

    public void setLoadBalanceAutoCommitStatementRegex(String loadBalanceAutoCommitStatementRegex);

    public String getLoadBalanceAutoCommitStatementRegex();

    public void setAuthenticationPlugins(String authenticationPlugins);

    public String getAuthenticationPlugins();

    public void setDisabledAuthenticationPlugins(String disabledAuthenticationPlugins);

    public String getDisabledAuthenticationPlugins();

    public void setDefaultAuthenticationPlugin(String defaultAuthenticationPlugin);

    public String getDefaultAuthenticationPlugin();

    public void setParseInfoCacheFactory(String factoryClassname);

    public String getParseInfoCacheFactory();

    public void setServerConfigCacheFactory(String factoryClassname);

    public String getServerConfigCacheFactory();

    public void setDisconnectOnExpiredPasswords(boolean disconnectOnExpiredPasswords);

    public boolean getDisconnectOnExpiredPasswords();

    public boolean getAllowMasterDownConnections();

    public void setAllowMasterDownConnections(boolean connectIfMasterDown);

    public boolean getAllowSlaveDownConnections();

    public void setAllowSlaveDownConnections(boolean connectIfSlaveDown);

    public boolean getReadFromMasterWhenNoSlaves();

    public void setReadFromMasterWhenNoSlaves(boolean useMasterIfSlavesDown);

    public boolean getReplicationEnableJMX();

    public void setReplicationEnableJMX(boolean replicationEnableJMX);

    public void setGetProceduresReturnsFunctions(boolean getProcedureReturnsFunctions);

    public boolean getGetProceduresReturnsFunctions();

    public void setDetectCustomCollations(boolean detectCustomCollations);

    public boolean getDetectCustomCollations();

    String getConnectionAttributes() throws SQLException;

    public String getServerRSAPublicKeyFile();

    public void setServerRSAPublicKeyFile(String serverRSAPublicKeyFile) throws SQLException;

    public boolean getAllowPublicKeyRetrieval();

    public void setAllowPublicKeyRetrieval(boolean allowPublicKeyRetrieval) throws SQLException;

    public void setDontCheckOnDuplicateKeyUpdateInSQL(boolean dontCheckOnDuplicateKeyUpdateInSQL);

    public boolean getDontCheckOnDuplicateKeyUpdateInSQL();

    public void setSocksProxyHost(String socksProxyHost);

    public String getSocksProxyHost();

    public void setSocksProxyPort(int socksProxyPort) throws SQLException;

    public int getSocksProxyPort();

    public boolean getReadOnlyPropagatesToServer();

    public void setReadOnlyPropagatesToServer(boolean flag);

    public String getEnabledSSLCipherSuites();

    public void setEnabledSSLCipherSuites(String cipherSuites);

    public boolean getEnableEscapeProcessing();

    public void setEnableEscapeProcessing(boolean flag);
}