0001: /*
0002: Copyright (C) 2002-2007 MySQL AB
0003:
0004: This program is free software; you can redistribute it and/or modify
0005: it under the terms of version 2 of the GNU General Public License as
0006: published by the Free Software Foundation.
0007:
0008: There are special exceptions to the terms and conditions of the GPL
0009: as it is applied to this software. View the full text of the
0010: exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
0011: software distribution.
0012:
0013: This program is distributed in the hope that it will be useful,
0014: but WITHOUT ANY WARRANTY; without even the implied warranty of
0015: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0016: GNU General Public License for more details.
0017:
0018: You should have received a copy of the GNU General Public License
0019: along with this program; if not, write to the Free Software
0020: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0021:
0022: */
0023:
0024: package com.mysql.jdbc;
0025:
0026: import java.sql.SQLException;
0027:
0028: public interface ConnectionProperties {
0029:
0030: /**
0031: * Returns a description of the connection properties as an XML document.
0032: *
0033: * @return the connection properties as an XML document.
0034: * @throws SQLException
0035: * if an error occurs.
0036: */
0037: public abstract String exposeAsXml() throws SQLException;
0038:
0039: /**
0040: * DOCUMENT ME!
0041: *
0042: * @return
0043: */
0044: public abstract boolean getAllowLoadLocalInfile();
0045:
0046: /**
0047: * DOCUMENT ME!
0048: *
0049: * @return
0050: */
0051: public abstract boolean getAllowMultiQueries();
0052:
0053: /**
0054: * @return Returns the allowNanAndInf.
0055: */
0056: public abstract boolean getAllowNanAndInf();
0057:
0058: /**
0059: * @return Returns the allowUrlInLocalInfile.
0060: */
0061: public abstract boolean getAllowUrlInLocalInfile();
0062:
0063: /**
0064: * @return Returns the alwaysSendSetIsolation.
0065: */
0066: public abstract boolean getAlwaysSendSetIsolation();
0067:
0068: /**
0069: * @return Returns the autoDeserialize.
0070: */
0071: public abstract boolean getAutoDeserialize();
0072:
0073: public abstract boolean getAutoGenerateTestcaseScript();
0074:
0075: /**
0076: * DOCUMENT ME!
0077: *
0078: * @return
0079: */
0080: public abstract boolean getAutoReconnectForPools();
0081:
0082: /**
0083: * @return Returns the blobSendChunkSize.
0084: */
0085: public abstract int getBlobSendChunkSize();
0086:
0087: /**
0088: * DOCUMENT ME!
0089: *
0090: * @return Returns if cacheCallableStatements is enabled
0091: */
0092: public abstract boolean getCacheCallableStatements();
0093:
0094: /**
0095: * DOCUMENT ME!
0096: *
0097: * @return Returns the cachePreparedStatements.
0098: */
0099: public abstract boolean getCachePreparedStatements();
0100:
0101: /**
0102: * DOCUMENT ME!
0103: *
0104: * @return DOCUMENT ME!
0105: */
0106: public abstract boolean getCacheResultSetMetadata();
0107:
0108: /**
0109: * @return Returns the cacheServerConfiguration.
0110: */
0111: public abstract boolean getCacheServerConfiguration();
0112:
0113: /**
0114: * DOCUMENT ME!
0115: *
0116: * @return Returns the callableStatementCacheSize.
0117: */
0118: public abstract int getCallableStatementCacheSize();
0119:
0120: /**
0121: * DOCUMENT ME!
0122: *
0123: * @return
0124: */
0125: public abstract boolean getCapitalizeTypeNames();
0126:
0127: /**
0128: * DOCUMENT ME!
0129: *
0130: * @return Returns the characterSetResults.
0131: */
0132: public abstract String getCharacterSetResults();
0133:
0134: /**
0135: * DOCUMENT ME!
0136: *
0137: * @return Returns the clobberStreamingResults.
0138: */
0139: public abstract boolean getClobberStreamingResults();
0140:
0141: public abstract String getClobCharacterEncoding();
0142:
0143: /**
0144: * DOCUMENT ME!
0145: *
0146: * @return Returns the connectionCollation.
0147: */
0148: public abstract String getConnectionCollation();
0149:
0150: /**
0151: * DOCUMENT ME!
0152: *
0153: * @return
0154: */
0155: public abstract int getConnectTimeout();
0156:
0157: /**
0158: * DOCUMENT ME!
0159: *
0160: * @return
0161: */
0162: public abstract boolean getContinueBatchOnError();
0163:
0164: public abstract boolean getCreateDatabaseIfNotExist();
0165:
0166: public abstract int getDefaultFetchSize();
0167:
0168: /**
0169: * @return Returns the dontTrackOpenResources.
0170: */
0171: public abstract boolean getDontTrackOpenResources();
0172:
0173: /**
0174: * DOCUMENT ME!
0175: *
0176: * @return Returns the dumpQueriesOnException.
0177: */
0178: public abstract boolean getDumpQueriesOnException();
0179:
0180: /**
0181: * @return Returns the dynamicCalendars.
0182: */
0183: public abstract boolean getDynamicCalendars();
0184:
0185: /**
0186: * DOCUMENT ME!
0187: *
0188: * @return Returns the elideSetAutoCommits.
0189: */
0190: public abstract boolean getElideSetAutoCommits();
0191:
0192: public abstract boolean getEmptyStringsConvertToZero();
0193:
0194: /**
0195: * DOCUMENT ME!
0196: *
0197: * @return
0198: */
0199: public abstract boolean getEmulateLocators();
0200:
0201: /**
0202: * @return Returns the emulateUnsupportedPstmts.
0203: */
0204: public abstract boolean getEmulateUnsupportedPstmts();
0205:
0206: /**
0207: * DOCUMENT ME!
0208: *
0209: * @return Returns the enablePacketDebug.
0210: */
0211: public abstract boolean getEnablePacketDebug();
0212:
0213: /**
0214: * DOCUMENT ME!
0215: *
0216: * @return
0217: */
0218: public abstract String getEncoding();
0219:
0220: /**
0221: * DOCUMENT ME!
0222: *
0223: * @return Returns the explainSlowQueries.
0224: */
0225: public abstract boolean getExplainSlowQueries();
0226:
0227: /**
0228: * DOCUMENT ME!
0229: *
0230: * @return Returns the failOverReadOnly.
0231: */
0232: public abstract boolean getFailOverReadOnly();
0233:
0234: /**
0235: * DOCUMENT ME!
0236: *
0237: * @return Returns the gatherPerformanceMetrics.
0238: */
0239: public abstract boolean getGatherPerformanceMetrics();
0240:
0241: /**
0242: * @return Returns the holdResultsOpenOverStatementClose.
0243: */
0244: public abstract boolean getHoldResultsOpenOverStatementClose();
0245:
0246: /**
0247: * DOCUMENT ME!
0248: *
0249: * @return
0250: */
0251: public abstract boolean getIgnoreNonTxTables();
0252:
0253: /**
0254: * DOCUMENT ME!
0255: *
0256: * @return
0257: */
0258: public abstract int getInitialTimeout();
0259:
0260: /**
0261: * DOCUMENT ME!
0262: *
0263: * @return
0264: */
0265: public abstract boolean getInteractiveClient();
0266:
0267: /**
0268: * DOCUMENT ME!
0269: *
0270: * @return Returns the isInteractiveClient.
0271: */
0272: public abstract boolean getIsInteractiveClient();
0273:
0274: /**
0275: * DOCUMENT ME!
0276: *
0277: * @return Returns the jdbcCompliantTruncation.
0278: */
0279: public abstract boolean getJdbcCompliantTruncation();
0280:
0281: /**
0282: * @return Returns the dontTrackOpenResources.
0283: */
0284: public abstract int getLocatorFetchBufferSize();
0285:
0286: /**
0287: * DOCUMENT ME!
0288: *
0289: * @return
0290: */
0291: public abstract String getLogger();
0292:
0293: /**
0294: * DOCUMENT ME!
0295: *
0296: * @return Returns the loggerClassName.
0297: */
0298: public abstract String getLoggerClassName();
0299:
0300: /**
0301: * DOCUMENT ME!
0302: *
0303: * @return Returns the logSlowQueries.
0304: */
0305: public abstract boolean getLogSlowQueries();
0306:
0307: public abstract boolean getMaintainTimeStats();
0308:
0309: /**
0310: * DOCUMENT ME!
0311: *
0312: * @return Returns the maxQuerySizeToLog.
0313: */
0314: public abstract int getMaxQuerySizeToLog();
0315:
0316: /**
0317: * DOCUMENT ME!
0318: *
0319: * @return
0320: */
0321: public abstract int getMaxReconnects();
0322:
0323: /**
0324: * DOCUMENT ME!
0325: *
0326: * @return
0327: */
0328: public abstract int getMaxRows();
0329:
0330: /**
0331: * Returns the number of queries that metadata can be cached if caching is
0332: * enabled.
0333: *
0334: * @return the number of queries to cache metadata for.
0335: */
0336: public abstract int getMetadataCacheSize();
0337:
0338: /**
0339: * @return Returns the noDatetimeStringSync.
0340: */
0341: public abstract boolean getNoDatetimeStringSync();
0342:
0343: public abstract boolean getNullCatalogMeansCurrent();
0344:
0345: public abstract boolean getNullNamePatternMatchesAll();
0346:
0347: /**
0348: * DOCUMENT ME!
0349: *
0350: * @return Returns the packetDebugBufferSize.
0351: */
0352: public abstract int getPacketDebugBufferSize();
0353:
0354: /**
0355: * DOCUMENT ME!
0356: *
0357: * @return
0358: */
0359: public abstract boolean getParanoid();
0360:
0361: /**
0362: * DOCUMENT ME!
0363: *
0364: * @return
0365: */
0366: public abstract boolean getPedantic();
0367:
0368: /**
0369: * DOCUMENT ME!
0370: *
0371: * @return Returns the preparedStatementCacheSize.
0372: */
0373: public abstract int getPreparedStatementCacheSize();
0374:
0375: /**
0376: * DOCUMENT ME!
0377: *
0378: * @return Returns the preparedStatementCacheSqlLimit.
0379: */
0380: public abstract int getPreparedStatementCacheSqlLimit();
0381:
0382: /**
0383: * DOCUMENT ME!
0384: *
0385: * @return
0386: */
0387: public abstract boolean getProfileSql();
0388:
0389: /**
0390: * DOCUMENT ME!
0391: *
0392: * @return Returns the profileSQL flag
0393: */
0394: public abstract boolean getProfileSQL();
0395:
0396: /**
0397: * @return Returns the propertiesTransform.
0398: */
0399: public abstract String getPropertiesTransform();
0400:
0401: /**
0402: * DOCUMENT ME!
0403: *
0404: * @return
0405: */
0406: public abstract int getQueriesBeforeRetryMaster();
0407:
0408: /**
0409: * DOCUMENT ME!
0410: *
0411: * @return
0412: */
0413: public abstract boolean getReconnectAtTxEnd();
0414:
0415: /**
0416: * DOCUMENT ME!
0417: *
0418: * @return
0419: */
0420: public abstract boolean getRelaxAutoCommit();
0421:
0422: /**
0423: * DOCUMENT ME!
0424: *
0425: * @return Returns the reportMetricsIntervalMillis.
0426: */
0427: public abstract int getReportMetricsIntervalMillis();
0428:
0429: /**
0430: * DOCUMENT ME!
0431: *
0432: * @return
0433: */
0434: public abstract boolean getRequireSSL();
0435:
0436: /**
0437: * @return Returns the rollbackOnPooledClose.
0438: */
0439: public abstract boolean getRollbackOnPooledClose();
0440:
0441: /**
0442: * Returns whether or not hosts will be picked in a round-robin fashion.
0443: *
0444: * @return Returns the roundRobinLoadBalance property.
0445: */
0446: public abstract boolean getRoundRobinLoadBalance();
0447:
0448: /**
0449: * @return Returns the runningCTS13.
0450: */
0451: public abstract boolean getRunningCTS13();
0452:
0453: /**
0454: * DOCUMENT ME!
0455: *
0456: * @return
0457: */
0458: public abstract int getSecondsBeforeRetryMaster();
0459:
0460: /**
0461: * Returns the 'serverTimezone' property.
0462: *
0463: * @return the configured server timezone property.
0464: */
0465: public abstract String getServerTimezone();
0466:
0467: /**
0468: * @return Returns the sessionVariables.
0469: */
0470: public abstract String getSessionVariables();
0471:
0472: /**
0473: * DOCUMENT ME!
0474: *
0475: * @return Returns the slowQueryThresholdMillis.
0476: */
0477: public abstract int getSlowQueryThresholdMillis();
0478:
0479: /**
0480: * DOCUMENT ME!
0481: *
0482: * @return
0483: */
0484: public abstract String getSocketFactoryClassName();
0485:
0486: /**
0487: * DOCUMENT ME!
0488: *
0489: * @return
0490: */
0491: public abstract int getSocketTimeout();
0492:
0493: /**
0494: * DOCUMENT ME!
0495: *
0496: * @return
0497: */
0498: public abstract boolean getStrictFloatingPoint();
0499:
0500: /**
0501: * DOCUMENT ME!
0502: *
0503: * @return
0504: */
0505: public abstract boolean getStrictUpdates();
0506:
0507: /**
0508: * @return Returns the tinyInt1isBit.
0509: */
0510: public abstract boolean getTinyInt1isBit();
0511:
0512: /**
0513: * DOCUMENT ME!
0514: *
0515: * @return Returns the logProtocol.
0516: */
0517: public abstract boolean getTraceProtocol();
0518:
0519: public abstract boolean getTransformedBitIsBoolean();
0520:
0521: /**
0522: * DOCUMENT ME!
0523: *
0524: * @return
0525: */
0526: public abstract boolean getUseCompression();
0527:
0528: /**
0529: * @return Returns the useFastIntParsing.
0530: */
0531: public abstract boolean getUseFastIntParsing();
0532:
0533: /**
0534: * DOCUMENT ME!
0535: *
0536: * @return
0537: */
0538: public abstract boolean getUseHostsInPrivileges();
0539:
0540: public abstract boolean getUseInformationSchema();
0541:
0542: /**
0543: * @return Returns the useLocalSessionState.
0544: */
0545: public abstract boolean getUseLocalSessionState();
0546:
0547: /**
0548: * @return Returns the useOldUTF8Behavior.
0549: */
0550: public abstract boolean getUseOldUTF8Behavior();
0551:
0552: /**
0553: * @return Returns the useOnlyServerErrorMessages.
0554: */
0555: public abstract boolean getUseOnlyServerErrorMessages();
0556:
0557: /**
0558: * @return Returns the useReadAheadInput.
0559: */
0560: public abstract boolean getUseReadAheadInput();
0561:
0562: /**
0563: * DOCUMENT ME!
0564: *
0565: * @return
0566: */
0567: public abstract boolean getUseServerPreparedStmts();
0568:
0569: /**
0570: * DOCUMENT ME!
0571: *
0572: * @return Returns the useSqlStateCodes state.
0573: */
0574: public abstract boolean getUseSqlStateCodes();
0575:
0576: /**
0577: * DOCUMENT ME!
0578: *
0579: * @return
0580: */
0581: public abstract boolean getUseSSL();
0582:
0583: /**
0584: * DOCUMENT ME!
0585: *
0586: * @return
0587: */
0588: public abstract boolean getUseStreamLengthsInPrepStmts();
0589:
0590: /**
0591: * DOCUMENT ME!
0592: *
0593: * @return
0594: */
0595: public abstract boolean getUseTimezone();
0596:
0597: /**
0598: * DOCUMENT ME!
0599: *
0600: * @return
0601: */
0602: public abstract boolean getUseUltraDevWorkAround();
0603:
0604: /**
0605: * DOCUMENT ME!
0606: *
0607: * @return Returns the useUnbufferedInput.
0608: */
0609: public abstract boolean getUseUnbufferedInput();
0610:
0611: /**
0612: * DOCUMENT ME!
0613: *
0614: * @return
0615: */
0616: public abstract boolean getUseUnicode();
0617:
0618: /**
0619: * Returns whether or not the driver advises of proper usage.
0620: *
0621: * @return the value of useUsageAdvisor
0622: */
0623: public abstract boolean getUseUsageAdvisor();
0624:
0625: public abstract boolean getYearIsDateType();
0626:
0627: /**
0628: * @return Returns the zeroDateTimeBehavior.
0629: */
0630: public abstract String getZeroDateTimeBehavior();
0631:
0632: /**
0633: * DOCUMENT ME!
0634: *
0635: * @param property
0636: */
0637: public abstract void setAllowLoadLocalInfile(boolean property);
0638:
0639: /**
0640: * DOCUMENT ME!
0641: *
0642: * @param property
0643: */
0644: public abstract void setAllowMultiQueries(boolean property);
0645:
0646: /**
0647: * @param allowNanAndInf
0648: * The allowNanAndInf to set.
0649: */
0650: public abstract void setAllowNanAndInf(boolean flag);
0651:
0652: /**
0653: * @param allowUrlInLocalInfile
0654: * The allowUrlInLocalInfile to set.
0655: */
0656: public abstract void setAllowUrlInLocalInfile(boolean flag);
0657:
0658: /**
0659: * @param alwaysSendSetIsolation
0660: * The alwaysSendSetIsolation to set.
0661: */
0662: public abstract void setAlwaysSendSetIsolation(boolean flag);
0663:
0664: /**
0665: * @param autoDeserialize
0666: * The autoDeserialize to set.
0667: */
0668: public abstract void setAutoDeserialize(boolean flag);
0669:
0670: public abstract void setAutoGenerateTestcaseScript(boolean flag);
0671:
0672: /**
0673: * DOCUMENT ME!
0674: *
0675: * @param flag
0676: * The autoReconnect to set.
0677: */
0678: public abstract void setAutoReconnect(boolean flag);
0679:
0680: /**
0681: * DOCUMENT ME!
0682: *
0683: * @param property
0684: */
0685: public abstract void setAutoReconnectForConnectionPools(
0686: boolean property);
0687:
0688: /**
0689: * DOCUMENT ME!
0690: *
0691: * @param flag
0692: * The autoReconnectForPools to set.
0693: */
0694: public abstract void setAutoReconnectForPools(boolean flag);
0695:
0696: /**
0697: * @param blobSendChunkSize
0698: * The blobSendChunkSize to set.
0699: */
0700: public abstract void setBlobSendChunkSize(String value)
0701: throws SQLException;
0702:
0703: /**
0704: * DOCUMENT ME!
0705: *
0706: * @param flag
0707: * The cacheCallableStatements to set.
0708: */
0709: public abstract void setCacheCallableStatements(boolean flag);
0710:
0711: /**
0712: * DOCUMENT ME!
0713: *
0714: * @param flag
0715: * The cachePreparedStatements to set.
0716: */
0717: public abstract void setCachePreparedStatements(boolean flag);
0718:
0719: /**
0720: * Sets whether or not we should cache result set metadata.
0721: *
0722: * @param property
0723: */
0724: public abstract void setCacheResultSetMetadata(boolean property);
0725:
0726: /**
0727: * @param cacheServerConfiguration
0728: * The cacheServerConfiguration to set.
0729: */
0730: public abstract void setCacheServerConfiguration(boolean flag);
0731:
0732: /**
0733: * Configures the number of callable statements to cache. (this is
0734: * configurable during the life of the connection).
0735: *
0736: * @param size
0737: * The callableStatementCacheSize to set.
0738: */
0739: public abstract void setCallableStatementCacheSize(int size);
0740:
0741: /**
0742: * DOCUMENT ME!
0743: *
0744: * @param property
0745: */
0746: public abstract void setCapitalizeDBMDTypes(boolean property);
0747:
0748: /**
0749: * DOCUMENT ME!
0750: *
0751: * @param flag
0752: * The capitalizeTypeNames to set.
0753: */
0754: public abstract void setCapitalizeTypeNames(boolean flag);
0755:
0756: /**
0757: * DOCUMENT ME!
0758: *
0759: * @param encoding
0760: * The characterEncoding to set.
0761: */
0762: public abstract void setCharacterEncoding(String encoding);
0763:
0764: /**
0765: * DOCUMENT ME!
0766: *
0767: * @param characterSet
0768: * The characterSetResults to set.
0769: */
0770: public abstract void setCharacterSetResults(String characterSet);
0771:
0772: /**
0773: * DOCUMENT ME!
0774: *
0775: * @param flag
0776: * The clobberStreamingResults to set.
0777: */
0778: public abstract void setClobberStreamingResults(boolean flag);
0779:
0780: public abstract void setClobCharacterEncoding(String encoding);
0781:
0782: /**
0783: * DOCUMENT ME!
0784: *
0785: * @param collation
0786: * The connectionCollation to set.
0787: */
0788: public abstract void setConnectionCollation(String collation);
0789:
0790: /**
0791: * DOCUMENT ME!
0792: *
0793: * @param timeoutMs
0794: */
0795: public abstract void setConnectTimeout(int timeoutMs);
0796:
0797: /**
0798: * DOCUMENT ME!
0799: *
0800: * @param property
0801: */
0802: public abstract void setContinueBatchOnError(boolean property);
0803:
0804: public abstract void setCreateDatabaseIfNotExist(boolean flag);
0805:
0806: public abstract void setDefaultFetchSize(int n);
0807:
0808: /**
0809: * DOCUMENT ME!
0810: *
0811: * @param property
0812: */
0813: public abstract void setDetectServerPreparedStmts(boolean property);
0814:
0815: /**
0816: * @param dontTrackOpenResources
0817: * The dontTrackOpenResources to set.
0818: */
0819: public abstract void setDontTrackOpenResources(boolean flag);
0820:
0821: /**
0822: * DOCUMENT ME!
0823: *
0824: * @param flag
0825: * The dumpQueriesOnException to set.
0826: */
0827: public abstract void setDumpQueriesOnException(boolean flag);
0828:
0829: /**
0830: * @param dynamicCalendars
0831: * The dynamicCalendars to set.
0832: */
0833: public abstract void setDynamicCalendars(boolean flag);
0834:
0835: /**
0836: * DOCUMENT ME!
0837: *
0838: * @param flag
0839: * The elideSetAutoCommits to set.
0840: */
0841: public abstract void setElideSetAutoCommits(boolean flag);
0842:
0843: public abstract void setEmptyStringsConvertToZero(boolean flag);
0844:
0845: /**
0846: * DOCUMENT ME!
0847: *
0848: * @param property
0849: */
0850: public abstract void setEmulateLocators(boolean property);
0851:
0852: /**
0853: * @param emulateUnsupportedPstmts
0854: * The emulateUnsupportedPstmts to set.
0855: */
0856: public abstract void setEmulateUnsupportedPstmts(boolean flag);
0857:
0858: /**
0859: * DOCUMENT ME!
0860: *
0861: * @param flag
0862: * The enablePacketDebug to set.
0863: */
0864: public abstract void setEnablePacketDebug(boolean flag);
0865:
0866: /**
0867: * DOCUMENT ME!
0868: *
0869: * @param property
0870: */
0871: public abstract void setEncoding(String property);
0872:
0873: /**
0874: * DOCUMENT ME!
0875: *
0876: * @param flag
0877: * The explainSlowQueries to set.
0878: */
0879: public abstract void setExplainSlowQueries(boolean flag);
0880:
0881: /**
0882: * DOCUMENT ME!
0883: *
0884: * @param flag
0885: * The failOverReadOnly to set.
0886: */
0887: public abstract void setFailOverReadOnly(boolean flag);
0888:
0889: /**
0890: * DOCUMENT ME!
0891: *
0892: * @param flag
0893: * The gatherPerformanceMetrics to set.
0894: */
0895: public abstract void setGatherPerformanceMetrics(boolean flag);
0896:
0897: /**
0898: * @param holdResultsOpenOverStatementClose
0899: * The holdResultsOpenOverStatementClose to set.
0900: */
0901: public abstract void setHoldResultsOpenOverStatementClose(
0902: boolean flag);
0903:
0904: /**
0905: * DOCUMENT ME!
0906: *
0907: * @param property
0908: */
0909: public abstract void setIgnoreNonTxTables(boolean property);
0910:
0911: /**
0912: * DOCUMENT ME!
0913: *
0914: * @param property
0915: */
0916: public abstract void setInitialTimeout(int property);
0917:
0918: /**
0919: * DOCUMENT ME!
0920: *
0921: * @param property
0922: */
0923: public abstract void setIsInteractiveClient(boolean property);
0924:
0925: /**
0926: * DOCUMENT ME!
0927: *
0928: * @param flag
0929: * The jdbcCompliantTruncation to set.
0930: */
0931: public abstract void setJdbcCompliantTruncation(boolean flag);
0932:
0933: /**
0934: * @param locatorFetchBufferSize
0935: * The locatorFetchBufferSize to set.
0936: */
0937: public abstract void setLocatorFetchBufferSize(String value)
0938: throws SQLException;
0939:
0940: /**
0941: * DOCUMENT ME!
0942: *
0943: * @param property
0944: */
0945: public abstract void setLogger(String property);
0946:
0947: /**
0948: * DOCUMENT ME!
0949: *
0950: * @param className
0951: * The loggerClassName to set.
0952: */
0953: public abstract void setLoggerClassName(String className);
0954:
0955: /**
0956: * DOCUMENT ME!
0957: *
0958: * @param flag
0959: * The logSlowQueries to set.
0960: */
0961: public abstract void setLogSlowQueries(boolean flag);
0962:
0963: public abstract void setMaintainTimeStats(boolean flag);
0964:
0965: /**
0966: * DOCUMENT ME!
0967: *
0968: * @param sizeInBytes
0969: * The maxQuerySizeToLog to set.
0970: */
0971: public abstract void setMaxQuerySizeToLog(int sizeInBytes);
0972:
0973: /**
0974: * DOCUMENT ME!
0975: *
0976: * @param property
0977: */
0978: public abstract void setMaxReconnects(int property);
0979:
0980: /**
0981: * DOCUMENT ME!
0982: *
0983: * @param property
0984: */
0985: public abstract void setMaxRows(int property);
0986:
0987: /**
0988: * Sets the number of queries that metadata can be cached if caching is
0989: * enabled.
0990: *
0991: * @param value
0992: * the number of queries to cache metadata for.
0993: */
0994: public abstract void setMetadataCacheSize(int value);
0995:
0996: /**
0997: * @param noDatetimeStringSync
0998: * The noDatetimeStringSync to set.
0999: */
1000: public abstract void setNoDatetimeStringSync(boolean flag);
1001:
1002: public abstract void setNullCatalogMeansCurrent(boolean value);
1003:
1004: public abstract void setNullNamePatternMatchesAll(boolean value);
1005:
1006: /**
1007: * DOCUMENT ME!
1008: *
1009: * @param size
1010: * The packetDebugBufferSize to set.
1011: */
1012: public abstract void setPacketDebugBufferSize(int size);
1013:
1014: /**
1015: * DOCUMENT ME!
1016: *
1017: * @param property
1018: */
1019: public abstract void setParanoid(boolean property);
1020:
1021: /**
1022: * DOCUMENT ME!
1023: *
1024: * @param property
1025: */
1026: public abstract void setPedantic(boolean property);
1027:
1028: /**
1029: * DOCUMENT ME!
1030: *
1031: * @param cacheSize
1032: * The preparedStatementCacheSize to set.
1033: */
1034: public abstract void setPreparedStatementCacheSize(int cacheSize);
1035:
1036: /**
1037: * DOCUMENT ME!
1038: *
1039: * @param cacheSqlLimit
1040: * The preparedStatementCacheSqlLimit to set.
1041: */
1042: public abstract void setPreparedStatementCacheSqlLimit(
1043: int cacheSqlLimit);
1044:
1045: /**
1046: * DOCUMENT ME!
1047: *
1048: * @param property
1049: */
1050: public abstract void setProfileSql(boolean property);
1051:
1052: /**
1053: * DOCUMENT ME!
1054: *
1055: * @param flag
1056: * The profileSQL to set.
1057: */
1058: public abstract void setProfileSQL(boolean flag);
1059:
1060: /**
1061: * @param propertiesTransform
1062: * The propertiesTransform to set.
1063: */
1064: public abstract void setPropertiesTransform(String value);
1065:
1066: /**
1067: * DOCUMENT ME!
1068: *
1069: * @param property
1070: */
1071: public abstract void setQueriesBeforeRetryMaster(int property);
1072:
1073: /**
1074: * DOCUMENT ME!
1075: *
1076: * @param property
1077: */
1078: public abstract void setReconnectAtTxEnd(boolean property);
1079:
1080: /**
1081: * DOCUMENT ME!
1082: *
1083: * @param property
1084: */
1085: public abstract void setRelaxAutoCommit(boolean property);
1086:
1087: /**
1088: * DOCUMENT ME!
1089: *
1090: * @param millis
1091: * The reportMetricsIntervalMillis to set.
1092: */
1093: public abstract void setReportMetricsIntervalMillis(int millis);
1094:
1095: /**
1096: * DOCUMENT ME!
1097: *
1098: * @param property
1099: */
1100: public abstract void setRequireSSL(boolean property);
1101:
1102: public abstract void setRetainStatementAfterResultSetClose(
1103: boolean flag);
1104:
1105: /**
1106: * @param rollbackOnPooledClose
1107: * The rollbackOnPooledClose to set.
1108: */
1109: public abstract void setRollbackOnPooledClose(boolean flag);
1110:
1111: /**
1112: * Sets whether or not hosts will be picked in a round-robin fashion.
1113: *
1114: * @param flag
1115: * The roundRobinLoadBalance property to set.
1116: */
1117: public abstract void setRoundRobinLoadBalance(boolean flag);
1118:
1119: /**
1120: * @param runningCTS13
1121: * The runningCTS13 to set.
1122: */
1123: public abstract void setRunningCTS13(boolean flag);
1124:
1125: /**
1126: * DOCUMENT ME!
1127: *
1128: * @param property
1129: */
1130: public abstract void setSecondsBeforeRetryMaster(int property);
1131:
1132: /**
1133: * DOCUMENT ME!
1134: *
1135: * @param property
1136: * DOCUMENT ME!
1137: */
1138: public abstract void setServerTimezone(String property);
1139:
1140: /**
1141: * @param sessionVariables
1142: * The sessionVariables to set.
1143: */
1144: public abstract void setSessionVariables(String variables);
1145:
1146: /**
1147: * DOCUMENT ME!
1148: *
1149: * @param millis
1150: * The slowQueryThresholdMillis to set.
1151: */
1152: public abstract void setSlowQueryThresholdMillis(int millis);
1153:
1154: /**
1155: * DOCUMENT ME!
1156: *
1157: * @param property
1158: */
1159: public abstract void setSocketFactoryClassName(String property);
1160:
1161: /**
1162: * DOCUMENT ME!
1163: *
1164: * @param property
1165: */
1166: public abstract void setSocketTimeout(int property);
1167:
1168: /**
1169: * DOCUMENT ME!
1170: *
1171: * @param property
1172: */
1173: public abstract void setStrictFloatingPoint(boolean property);
1174:
1175: /**
1176: * DOCUMENT ME!
1177: *
1178: * @param property
1179: */
1180: public abstract void setStrictUpdates(boolean property);
1181:
1182: /**
1183: * @param tinyInt1isBit
1184: * The tinyInt1isBit to set.
1185: */
1186: public abstract void setTinyInt1isBit(boolean flag);
1187:
1188: /**
1189: * DOCUMENT ME!
1190: *
1191: * @param flag
1192: * The logProtocol to set.
1193: */
1194: public abstract void setTraceProtocol(boolean flag);
1195:
1196: public abstract void setTransformedBitIsBoolean(boolean flag);
1197:
1198: /**
1199: * DOCUMENT ME!
1200: *
1201: * @param property
1202: */
1203: public abstract void setUseCompression(boolean property);
1204:
1205: /**
1206: * @param useFastIntParsing
1207: * The useFastIntParsing to set.
1208: */
1209: public abstract void setUseFastIntParsing(boolean flag);
1210:
1211: /**
1212: * DOCUMENT ME!
1213: *
1214: * @param property
1215: */
1216: public abstract void setUseHostsInPrivileges(boolean property);
1217:
1218: public abstract void setUseInformationSchema(boolean flag);
1219:
1220: /**
1221: * @param useLocalSessionState
1222: * The useLocalSessionState to set.
1223: */
1224: public abstract void setUseLocalSessionState(boolean flag);
1225:
1226: /**
1227: * @param useOldUTF8Behavior
1228: * The useOldUTF8Behavior to set.
1229: */
1230: public abstract void setUseOldUTF8Behavior(boolean flag);
1231:
1232: /**
1233: * @param useOnlyServerErrorMessages
1234: * The useOnlyServerErrorMessages to set.
1235: */
1236: public abstract void setUseOnlyServerErrorMessages(boolean flag);
1237:
1238: /**
1239: * @param useReadAheadInput
1240: * The useReadAheadInput to set.
1241: */
1242: public abstract void setUseReadAheadInput(boolean flag);
1243:
1244: /**
1245: * DOCUMENT ME!
1246: *
1247: * @param flag
1248: * The detectServerPreparedStmts to set.
1249: */
1250: public abstract void setUseServerPreparedStmts(boolean flag);
1251:
1252: /**
1253: * DOCUMENT ME!
1254: *
1255: * @param flag
1256: * The useSqlStateCodes to set.
1257: */
1258: public abstract void setUseSqlStateCodes(boolean flag);
1259:
1260: /**
1261: * DOCUMENT ME!
1262: *
1263: * @param property
1264: */
1265: public abstract void setUseSSL(boolean property);
1266:
1267: /**
1268: * DOCUMENT ME!
1269: *
1270: * @param property
1271: */
1272: public abstract void setUseStreamLengthsInPrepStmts(boolean property);
1273:
1274: /**
1275: * DOCUMENT ME!
1276: *
1277: * @param property
1278: */
1279: public abstract void setUseTimezone(boolean property);
1280:
1281: /**
1282: * DOCUMENT ME!
1283: *
1284: * @param property
1285: */
1286: public abstract void setUseUltraDevWorkAround(boolean property);
1287:
1288: /**
1289: * DOCUMENT ME!
1290: *
1291: * @param flag
1292: * The useUnbufferedInput to set.
1293: */
1294: public abstract void setUseUnbufferedInput(boolean flag);
1295:
1296: /**
1297: * DOCUMENT ME!
1298: *
1299: * @param flag
1300: * The useUnicode to set.
1301: */
1302: public abstract void setUseUnicode(boolean flag);
1303:
1304: /**
1305: * Sets whether or not the driver advises of proper usage.
1306: *
1307: * @param useUsageAdvisorFlag
1308: * whether or not the driver advises of proper usage.
1309: */
1310: public abstract void setUseUsageAdvisor(boolean useUsageAdvisorFlag);
1311:
1312: public abstract void setYearIsDateType(boolean flag);
1313:
1314: /**
1315: * @param zeroDateTimeBehavior
1316: * The zeroDateTimeBehavior to set.
1317: */
1318: public abstract void setZeroDateTimeBehavior(String behavior);
1319:
1320: /**
1321: * DOCUMENT ME!
1322: *
1323: * @return Returns the useUnbufferedInput.
1324: */
1325: public abstract boolean useUnbufferedInput();
1326:
1327: public abstract boolean getUseCursorFetch();
1328:
1329: public abstract void setUseCursorFetch(boolean flag);
1330:
1331: public abstract boolean getOverrideSupportsIntegrityEnhancementFacility();
1332:
1333: public abstract void setOverrideSupportsIntegrityEnhancementFacility(
1334: boolean flag);
1335:
1336: public abstract boolean getNoTimezoneConversionForTimeType();
1337:
1338: public abstract void setNoTimezoneConversionForTimeType(boolean flag);
1339:
1340: public abstract boolean getUseJDBCCompliantTimezoneShift();
1341:
1342: public abstract void setUseJDBCCompliantTimezoneShift(boolean flag);
1343:
1344: public abstract boolean getAutoClosePStmtStreams();
1345:
1346: public abstract void setAutoClosePStmtStreams(boolean flag);
1347:
1348: public abstract boolean getProcessEscapeCodesForPrepStmts();
1349:
1350: public abstract void setProcessEscapeCodesForPrepStmts(boolean flag);
1351:
1352: public abstract boolean getUseGmtMillisForDatetimes();
1353:
1354: public abstract void setUseGmtMillisForDatetimes(boolean flag);
1355:
1356: public abstract boolean getDumpMetadataOnColumnNotFound();
1357:
1358: public abstract void setDumpMetadataOnColumnNotFound(boolean flag);
1359:
1360: public abstract String getResourceId();
1361:
1362: public abstract void setResourceId(String resourceId);
1363:
1364: public abstract boolean getRewriteBatchedStatements();
1365:
1366: public abstract void setRewriteBatchedStatements(boolean flag);
1367:
1368: public abstract boolean getJdbcCompliantTruncationForReads();
1369:
1370: public abstract void setJdbcCompliantTruncationForReads(
1371: boolean jdbcCompliantTruncationForReads);
1372:
1373: public abstract boolean getUseJvmCharsetConverters();
1374:
1375: public abstract void setUseJvmCharsetConverters(boolean flag);
1376:
1377: public abstract boolean getPinGlobalTxToPhysicalConnection();
1378:
1379: public abstract void setPinGlobalTxToPhysicalConnection(boolean flag);
1380:
1381: public abstract void setGatherPerfMetrics(boolean flag);
1382:
1383: public abstract boolean getGatherPerfMetrics();
1384:
1385: public abstract void setUltraDevHack(boolean flag);
1386:
1387: public abstract boolean getUltraDevHack();
1388:
1389: public abstract void setInteractiveClient(boolean property);
1390:
1391: public abstract void setSocketFactory(String name);
1392:
1393: public abstract String getSocketFactory();
1394:
1395: public abstract void setUseServerPrepStmts(boolean flag);
1396:
1397: public abstract boolean getUseServerPrepStmts();
1398:
1399: public abstract void setCacheCallableStmts(boolean flag);
1400:
1401: public abstract boolean getCacheCallableStmts();
1402:
1403: public abstract void setCachePrepStmts(boolean flag);
1404:
1405: public abstract boolean getCachePrepStmts();
1406:
1407: public abstract void setCallableStmtCacheSize(int cacheSize);
1408:
1409: public abstract int getCallableStmtCacheSize();
1410:
1411: public abstract void setPrepStmtCacheSize(int cacheSize);
1412:
1413: public abstract int getPrepStmtCacheSize();
1414:
1415: public abstract void setPrepStmtCacheSqlLimit(int sqlLimit);
1416:
1417: public abstract int getPrepStmtCacheSqlLimit();
1418:
1419: public abstract boolean getNoAccessToProcedureBodies();
1420:
1421: public abstract void setNoAccessToProcedureBodies(boolean flag);
1422:
1423: public abstract boolean getUseOldAliasMetadataBehavior();
1424:
1425: public abstract void setUseOldAliasMetadataBehavior(boolean flag);
1426:
1427: public abstract String getClientCertificateKeyStorePassword();
1428:
1429: public abstract void setClientCertificateKeyStorePassword(
1430: String value);
1431:
1432: public abstract String getClientCertificateKeyStoreType();
1433:
1434: public abstract void setClientCertificateKeyStoreType(String value);
1435:
1436: public abstract String getClientCertificateKeyStoreUrl();
1437:
1438: public abstract void setClientCertificateKeyStoreUrl(String value);
1439:
1440: public abstract String getTrustCertificateKeyStorePassword();
1441:
1442: public abstract void setTrustCertificateKeyStorePassword(
1443: String value);
1444:
1445: public abstract String getTrustCertificateKeyStoreType();
1446:
1447: public abstract void setTrustCertificateKeyStoreType(String value);
1448:
1449: public abstract String getTrustCertificateKeyStoreUrl();
1450:
1451: public abstract void setTrustCertificateKeyStoreUrl(String value);
1452:
1453: public abstract boolean getUseSSPSCompatibleTimezoneShift();
1454:
1455: public abstract void setUseSSPSCompatibleTimezoneShift(boolean flag);
1456:
1457: public abstract boolean getTreatUtilDateAsTimestamp();
1458:
1459: public abstract void setTreatUtilDateAsTimestamp(boolean flag);
1460:
1461: public abstract boolean getUseFastDateParsing();
1462:
1463: public abstract void setUseFastDateParsing(boolean flag);
1464:
1465: public abstract String getLocalSocketAddress();
1466:
1467: public abstract void setLocalSocketAddress(String address);
1468:
1469: public abstract void setUseConfigs(String configs);
1470:
1471: public abstract String getUseConfigs();
1472:
1473: public abstract boolean getGenerateSimpleParameterMetadata();
1474:
1475: public abstract void setGenerateSimpleParameterMetadata(boolean flag);
1476:
1477: public abstract boolean getLogXaCommands();
1478:
1479: public abstract void setLogXaCommands(boolean flag);
1480:
1481: public abstract int getResultSetSizeThreshold();
1482:
1483: public abstract void setResultSetSizeThreshold(int threshold);
1484:
1485: public abstract int getNetTimeoutForStreamingResults();
1486:
1487: public abstract void setNetTimeoutForStreamingResults(int value);
1488:
1489: public abstract boolean getEnableQueryTimeouts();
1490:
1491: public abstract void setEnableQueryTimeouts(boolean flag);
1492:
1493: public abstract boolean getPadCharsWithSpace();
1494:
1495: public abstract void setPadCharsWithSpace(boolean flag);
1496:
1497: public abstract boolean getUseDynamicCharsetInfo();
1498:
1499: public abstract void setUseDynamicCharsetInfo(boolean flag);
1500:
1501: public abstract String getClientInfoProvider();
1502:
1503: public abstract void setClientInfoProvider(String classname);
1504:
1505: public abstract boolean getPopulateInsertRowWithDefaultValues();
1506:
1507: public abstract void setPopulateInsertRowWithDefaultValues(
1508: boolean flag);
1509:
1510: public abstract String getLoadBalanceStrategy();
1511:
1512: public abstract void setLoadBalanceStrategy(String strategy);
1513:
1514: public abstract boolean getTcpNoDelay();
1515:
1516: public abstract void setTcpNoDelay(boolean flag);
1517:
1518: public abstract boolean getTcpKeepAlive();
1519:
1520: public abstract void setTcpKeepAlive(boolean flag);
1521:
1522: public abstract int getTcpRcvBuf();
1523:
1524: public abstract void setTcpRcvBuf(int bufSize);
1525:
1526: public abstract int getTcpSndBuf();
1527:
1528: public abstract void setTcpSndBuf(int bufSize);
1529:
1530: public abstract int getTcpTrafficClass();
1531:
1532: public abstract void setTcpTrafficClass(int classFlags);
1533:
1534: public abstract boolean getUseNanosForElapsedTime();
1535:
1536: public abstract void setUseNanosForElapsedTime(boolean flag);
1537:
1538: public abstract long getSlowQueryThresholdNanos();
1539:
1540: public abstract void setSlowQueryThresholdNanos(long nanos);
1541:
1542: public abstract String getStatementInterceptors();
1543:
1544: public abstract void setStatementInterceptors(String value);
1545:
1546: public abstract boolean getUseDirectRowUnpack();
1547:
1548: public abstract void setUseDirectRowUnpack(boolean flag);
1549:
1550: public abstract String getLargeRowSizeThreshold();
1551:
1552: public abstract void setLargeRowSizeThreshold(String value);
1553:
1554: public abstract boolean getUseBlobToStoreUTF8OutsideBMP();
1555:
1556: public abstract void setUseBlobToStoreUTF8OutsideBMP(boolean flag);
1557:
1558: public abstract String getUtf8OutsideBmpExcludedColumnNamePattern();
1559:
1560: public abstract void setUtf8OutsideBmpExcludedColumnNamePattern(
1561: String regexPattern);
1562:
1563: public abstract String getUtf8OutsideBmpIncludedColumnNamePattern();
1564:
1565: public abstract void setUtf8OutsideBmpIncludedColumnNamePattern(
1566: String regexPattern);
1567:
1568: public abstract boolean getIncludeInnodbStatusInDeadlockExceptions();
1569:
1570: public abstract void setIncludeInnodbStatusInDeadlockExceptions(
1571: boolean flag);
1572:
1573: public abstract boolean getBlobsAreStrings();
1574:
1575: public abstract void setBlobsAreStrings(boolean flag);
1576:
1577: public abstract boolean getFunctionsNeverReturnBlobs();
1578:
1579: public abstract void setFunctionsNeverReturnBlobs(boolean flag);
1580: }
|