Class MultiHostMySQLConnection
java.lang.Object
com.mysql.jdbc.MultiHostMySQLConnection
- All Implemented Interfaces:
Connection, ConnectionProperties, MySQLConnection, AutoCloseable, Connection, Wrapper
- Direct Known Subclasses:
JDBC4MultiHostMySQLConnection, LoadBalancedMySQLConnection, ReplicationMySQLConnection
Each instance of MultiHostMySQLConnection is coupled with a MultiHostConnectionProxy instance.
While this class implements MySQLConnection directly, MultiHostConnectionProxy does the same but via a dynamic proxy.
Most of the methods in this class refer directly to the active connection from its MultiHostConnectionProxy pair, providing a non-proxied access to the
current active connection managed by this multi-host structure. The remaining methods either implement some local behavior or refer to the proxy itself
instead of the sub-connection.
Referring to the higher level proxy connection is needed when some operation needs to be extended to all open sub-connections existing in this multi-host
structure as opposed to just refer to the active current connection, such as with close() which is most likely required to close all sub-connections as
well.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MultiHostConnectionProxythisAsProxy holds the proxy (MultiHostConnectionProxy or one of its subclasses) this connection is associated with.Fields inherited from interface Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidchangeUser(String userName, String newPassword) Changes the user on this connection by performing a re-authentication.voidvoidDeprecated.voidPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.clientPrepareStatement(String sql, int autoGenKeyIndex) Prepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.clientPrepareStatement(String sql, int[] autoGenKeyIndexes) Prepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) Prepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Prepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.clientPrepareStatement(String sql, String[] autoGenKeyColNames) Prepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.voidclose()voidcommit()voidcreateNewIO(boolean isForReconnect) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) voidvoiddumpTestcaseQuery(String query) execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata) execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata, boolean isBatch) Returns a description of the connection properties as an XML document.extractSqlFromPacket(String possibleSqlQuery, Buffer queryPacket, int endOfQueryPacketPosition) intReturns the number of statements active on this connection, which haven't been .close()d.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintReturns the -session- value of 'auto_increment_increment' from the server if it exists, or '1' if not.booleanbooleanbooleanintbooleanbooleanbooleangetCachedMetaData(String sql) booleanbooleanbooleanbooleanintintbooleangetCharsetConverter(String javaEncodingName) getCharsetNameForIndex(int charsetIndex) Deprecated.booleanbooleanintbooleanbooleanintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleangetEncodingForIndex(int collationIndex) booleanbooleanbooleanbooleanbooleanbooleanbooleanintbooleangetHost()longgetId()longReports how long this connection has been idle.booleanbooleanbooleanbooleanintbooleangetIO()booleanbooleanbooleanintintbooleanintintDeprecated.replaced bygetMultiHostSafeProxy()booleanintcom.mysql.jdbc.log.LoggetLog()Returns the log mechanism that should be used to log information from/for this Connection.booleanbooleanbooleanintintgetMaxBytesPerChar(Integer charsetIndex, String javaCharsetName) intgetMaxBytesPerChar(String javaCharsetName) intintintintReturns the number of queries that metadata can be cached if caching is enabled.intintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanintintintintbooleancom.mysql.jdbc.profiler.ProfilerEventHandlerbooleanbooleanReturns the parsed and passed in properties for this connection.intbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanintbooleanintbooleanbooleanbooleanReturns whether or not hosts will be picked in a round-robin fashion.booleanintintintbooleanDeprecated.replaced bygetServerCharset()Returns the server's character setintintintReturns the 'serverTimezone' property.Returns the TimeZone that represents the configured timezone for the server.getServerVariable(String variableName) intintlongintintReturns the comment that will be prepended to all statements sent to the server.booleanbooleanbooleanbooleanintintintprotected MultiHostConnectionProxybooleanbooleanintbooleanbooleanbooleangetURL()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleangetUser()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturns whether or not the driver advises of proper usage.booleanbooleanbooleanDoes this connection have the same properties as another?booleanDeprecated.voidvoidvoidvoidvoidinitializeResultsMetadataFromCache(String sql, CachedResultSetMetaData cachedMetaData, ResultSetInternalMethods resultSet) voidbooleanisAbonormallyLongQuery(long millisOrNanos) Update statistics that allows the driver to determine if a query is slow enough to be logged, and return the estimation result for millisOrNanos value.booleanbooleanisClosed()booleanbooleanIs this connection currently a participant in an XA transaction?booleanIs this connection connected to the first host in the list if there is a list of servers in the URL?booleanIs the server in a sql_mode that doesn't allow us to use \\ to escape things?booleanbooleanbooleanbooleanisReadOnly(boolean useSessionStatus) booleanbooleanisSameResource(Connection otherConnection) Does this connection have the same resource name as the given connection (for XA)?booleanIs the server this connection is connected to "local" (i.e. same host) as the application?booleanbooleanbooleanbooleanIs the server configured to use lower-case table names only?booleanDoes the server this connection is connected to support unicode?voidping()Detect if the connection is still good by sending a ping command to the server.voidpingInternal(boolean checkForClosedConnection, int timeoutMillis) prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql) prepareStatement(String sql, int autoGenKeyIndex) prepareStatement(String sql, int[] autoGenKeyIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] autoGenKeyColNames) voidrealClose(boolean calledExplicitly, boolean issueRollback, boolean skipLocalTeardown, Throwable reason) voidvoidregisterQueryExecutionTime(long queryTimeMs) voidregisterStatement(Statement stmt) voidreleaseSavepoint(Savepoint arg0) voidreportNumberOfTablesAccessed(int numTablesAccessed) voidreportQueryTime(long millisOrNanos) voidResets the server-side state of this connection.voidrollback()voidPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.serverPrepareStatement(String sql, int autoGenKeyIndex) Prepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.serverPrepareStatement(String sql, int[] autoGenKeyIndexes) Prepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) Prepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Prepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.serverPrepareStatement(String sql, String[] autoGenKeyColNames) Prepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.booleanvoidsetAllowLoadLocalInfile(boolean property) voidsetAllowMasterDownConnections(boolean connectIfMasterDown) voidsetAllowMultiQueries(boolean property) voidsetAllowNanAndInf(boolean flag) voidsetAllowPublicKeyRetrieval(boolean allowPublicKeyRetrieval) voidsetAllowSlaveDownConnections(boolean connectIfSlaveDown) voidsetAllowUrlInLocalInfile(boolean flag) voidsetAlwaysSendSetIsolation(boolean flag) voidsetAuthenticationPlugins(String authenticationPlugins) voidsetAutoClosePStmtStreams(boolean flag) voidsetAutoCommit(boolean autoCommitFlag) voidsetAutoDeserialize(boolean flag) voidsetAutoGenerateTestcaseScript(boolean flag) voidsetAutoReconnect(boolean flag) voidsetAutoReconnectForConnectionPools(boolean property) voidsetAutoReconnectForPools(boolean flag) voidsetAutoSlowLog(boolean flag) voidsetBlobsAreStrings(boolean flag) voidsetBlobSendChunkSize(String value) voidsetCacheCallableStatements(boolean flag) voidsetCacheCallableStmts(boolean flag) voidsetCacheDefaultTimezone(boolean flag) voidsetCachePreparedStatements(boolean flag) voidsetCachePrepStmts(boolean flag) voidsetCacheResultSetMetadata(boolean property) Sets whether or not we should cache result set metadata.voidsetCacheServerConfiguration(boolean flag) voidsetCallableStatementCacheSize(int size) Configures the number of callable statements to cache.voidsetCallableStmtCacheSize(int cacheSize) voidsetCapitalizeDBMDTypes(boolean property) voidsetCapitalizeTypeNames(boolean flag) voidsetCatalog(String catalog) voidsetCharacterEncoding(String encoding) voidsetCharacterSetResults(String characterSet) voidvoidvoidvoidsetClientInfoProvider(String classname) voidsetClobberStreamingResults(boolean flag) voidsetClobCharacterEncoding(String encoding) voidsetCompensateOnDuplicateKeyUpdateCounts(boolean flag) voidsetConnectionCollation(String collation) voidsetConnectionLifecycleInterceptors(String interceptors) voidsetConnectTimeout(int timeoutMs) voidsetContinueBatchOnError(boolean property) voidsetCreateDatabaseIfNotExist(boolean flag) voidsetDefaultAuthenticationPlugin(String defaultAuthenticationPlugin) voidsetDefaultFetchSize(int n) voidsetDetectCustomCollations(boolean detectCustomCollations) voidsetDetectServerPreparedStmts(boolean property) voidsetDisabledAuthenticationPlugins(String disabledAuthenticationPlugins) voidsetDisconnectOnExpiredPasswords(boolean disconnectOnExpiredPasswords) voidsetDontCheckOnDuplicateKeyUpdateInSQL(boolean dontCheckOnDuplicateKeyUpdateInSQL) voidsetDontTrackOpenResources(boolean flag) voidsetDumpMetadataOnColumnNotFound(boolean flag) voidsetDumpQueriesOnException(boolean flag) voidsetDynamicCalendars(boolean flag) voidsetElideSetAutoCommits(boolean flag) voidsetEmptyStringsConvertToZero(boolean flag) voidsetEmulateLocators(boolean property) voidsetEmulateUnsupportedPstmts(boolean flag) voidsetEnabledSSLCipherSuites(String cipherSuites) voidsetEnabledTLSProtocols(String protocols) voidsetEnableEscapeProcessing(boolean flag) voidsetEnablePacketDebug(boolean flag) voidsetEnableQueryTimeouts(boolean flag) voidsetEncoding(String property) voidsetExceptionInterceptors(String exceptionInterceptors) voidsetExplainSlowQueries(boolean flag) voidsetFailedOver(boolean flag) voidsetFailOverReadOnly(boolean flag) voidsetFunctionsNeverReturnBlobs(boolean flag) voidsetGatherPerfMetrics(boolean flag) voidsetGatherPerformanceMetrics(boolean flag) voidsetGenerateSimpleParameterMetadata(boolean flag) voidsetGetProceduresReturnsFunctions(boolean getProcedureReturnsFunctions) voidsetHoldability(int arg0) voidsetHoldResultsOpenOverStatementClose(boolean flag) voidsetIgnoreNonTxTables(boolean property) voidsetIncludeInnodbStatusInDeadlockExceptions(boolean flag) voidsetIncludeThreadDumpInDeadlockExceptions(boolean flag) voidsetIncludeThreadNamesAsStatementComment(boolean flag) voidsetInGlobalTx(boolean flag) Set the state of being in a global (XA) transaction.voidsetInitialTimeout(int property) voidsetInteractiveClient(boolean property) voidsetIsInteractiveClient(boolean property) voidsetJdbcCompliantTruncation(boolean flag) voidsetJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads) voidsetLargeRowSizeThreshold(String value) voidsetLoadBalanceAutoCommitStatementRegex(String loadBalanceAutoCommitStatementRegex) voidsetLoadBalanceAutoCommitStatementThreshold(int loadBalanceAutoCommitStatementThreshold) voidsetLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout) voidsetLoadBalanceConnectionGroup(String loadBalanceConnectionGroup) voidsetLoadBalanceEnableJMX(boolean loadBalanceEnableJMX) voidsetLoadBalanceExceptionChecker(String loadBalanceExceptionChecker) voidsetLoadBalanceHostRemovalGracePeriod(int loadBalanceHostRemovalGracePeriod) voidsetLoadBalancePingTimeout(int loadBalancePingTimeout) voidsetLoadBalanceSQLExceptionSubclassFailover(String loadBalanceSQLExceptionSubclassFailover) voidsetLoadBalanceSQLStateFailover(String loadBalanceSQLStateFailover) voidsetLoadBalanceStrategy(String strategy) voidsetLoadBalanceValidateConnectionOnSwapServer(boolean loadBalanceValidateConnectionOnSwapServer) voidsetLocalSocketAddress(String address) voidsetLocatorFetchBufferSize(String value) voidvoidsetLoggerClassName(String className) voidsetLogSlowQueries(boolean flag) voidsetLogXaCommands(boolean flag) voidsetMaintainTimeStats(boolean flag) voidsetMaxQuerySizeToLog(int sizeInBytes) voidsetMaxReconnects(int property) voidsetMaxRows(int property) voidsetMetadataCacheSize(int value) Sets the number of queries that metadata can be cached if caching is enabled.voidsetNetTimeoutForStreamingResults(int value) voidsetNetworkTimeout(Executor executor, int milliseconds) voidsetNoAccessToProcedureBodies(boolean flag) voidsetNoDatetimeStringSync(boolean flag) voidsetNoTimezoneConversionForDateType(boolean flag) voidsetNoTimezoneConversionForTimeType(boolean flag) voidsetNullCatalogMeansCurrent(boolean value) voidsetNullNamePatternMatchesAll(boolean value) voidsetOverrideSupportsIntegrityEnhancementFacility(boolean flag) voidsetPacketDebugBufferSize(int size) voidsetPadCharsWithSpace(boolean flag) voidsetParanoid(boolean property) voidsetParseInfoCacheFactory(String factoryClassname) voidsetPasswordCharacterEncoding(String characterSet) voidsetPedantic(boolean property) voidsetPinGlobalTxToPhysicalConnection(boolean flag) voidsetPopulateInsertRowWithDefaultValues(boolean flag) voidsetPreferSlaveDuringFailover(boolean flag) Deprecated.voidsetPreparedStatementCacheSize(int cacheSize) voidsetPreparedStatementCacheSqlLimit(int cacheSqlLimit) voidsetPrepStmtCacheSize(int cacheSize) voidsetPrepStmtCacheSqlLimit(int sqlLimit) voidsetProcessEscapeCodesForPrepStmts(boolean flag) voidsetProfilerEventHandler(String handler) voidsetProfilerEventHandlerInstance(com.mysql.jdbc.profiler.ProfilerEventHandler h) voidsetProfileSql(boolean property) voidsetProfileSQL(boolean flag) voidsetPropertiesTransform(String value) voidsetProxy(MySQLConnection proxy) voidsetQueriesBeforeRetryMaster(int property) voidsetQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection) voidsetReadFromMasterWhenNoSlaves(boolean useMasterIfSlavesDown) voidsetReadInfoMsgEnabled(boolean flag) voidsetReadOnly(boolean readOnlyFlag) voidsetReadOnlyInternal(boolean readOnlyFlag) voidsetReadOnlyPropagatesToServer(boolean flag) voidsetReconnectAtTxEnd(boolean property) voidsetRelaxAutoCommit(boolean property) voidsetReplicationEnableJMX(boolean replicationEnableJMX) voidsetReportMetricsIntervalMillis(int millis) voidsetRequireSSL(boolean property) voidsetResourceId(String resourceId) voidsetResultSetSizeThreshold(int threshold) voidsetRetainStatementAfterResultSetClose(boolean flag) voidsetRetriesAllDown(int retriesAllDown) voidsetRewriteBatchedStatements(boolean flag) voidsetRollbackOnPooledClose(boolean flag) voidsetRoundRobinLoadBalance(boolean flag) Sets whether or not hosts will be picked in a round-robin fashion.voidsetRunningCTS13(boolean flag) setSavepoint(String name) voidvoidsetSecondsBeforeRetryMaster(int property) voidsetSelfDestructOnPingMaxOperations(int maxOperations) voidsetSelfDestructOnPingSecondsLifetime(int seconds) voidsetSendFractionalSeconds(boolean flag) voidsetServerAffinityOrder(String hostsList) voidsetServerConfigCacheFactory(String factoryClassname) voidsetServerRSAPublicKeyFile(String serverRSAPublicKeyFile) voidsetServerTimezone(String property) voidsetSessionMaxRows(int max) voidsetSessionVariables(String variables) voidsetSlowQueryThresholdMillis(int millis) voidsetSlowQueryThresholdNanos(long nanos) voidsetSocketFactory(String name) voidsetSocketFactoryClassName(String property) voidsetSocketTimeout(int property) voidsetSocksProxyHost(String socksProxyHost) voidsetSocksProxyPort(int socksProxyPort) voidsetStatementComment(String comment) Sets the comment that will be prepended to all statements sent to the server.voidsetStatementInterceptors(String value) voidsetStrictFloatingPoint(boolean property) voidsetStrictUpdates(boolean property) voidsetTcpKeepAlive(boolean flag) voidsetTcpNoDelay(boolean flag) voidsetTcpRcvBuf(int bufSize) voidsetTcpSndBuf(int bufSize) voidsetTcpTrafficClass(int classFlags) voidsetTinyInt1isBit(boolean flag) voidsetTraceProtocol(boolean flag) voidsetTransactionIsolation(int level) voidsetTransformedBitIsBoolean(boolean flag) voidsetTreatUtilDateAsTimestamp(boolean flag) voidvoidvoidvoidsetTypeMap(Map<String, Class<?>> map) voidsetUltraDevHack(boolean flag) voidsetUseAffectedRows(boolean flag) voidsetUseBlobToStoreUTF8OutsideBMP(boolean flag) voidsetUseColumnNamesInFindColumn(boolean flag) voidsetUseCompression(boolean property) voidsetUseConfigs(String configs) voidsetUseCursorFetch(boolean flag) voidsetUseDirectRowUnpack(boolean flag) voidsetUseDynamicCharsetInfo(boolean flag) voidsetUseFastDateParsing(boolean flag) voidsetUseFastIntParsing(boolean flag) voidsetUseGmtMillisForDatetimes(boolean flag) voidsetUseHostsInPrivileges(boolean property) voidsetUseInformationSchema(boolean flag) voidsetUseJDBCCompliantTimezoneShift(boolean flag) voidsetUseJvmCharsetConverters(boolean flag) voidsetUseLegacyDatetimeCode(boolean flag) voidsetUseLocalSessionState(boolean flag) voidsetUseLocalTransactionState(boolean flag) voidsetUseNanosForElapsedTime(boolean flag) voidsetUseOldAliasMetadataBehavior(boolean flag) voidsetUseOldUTF8Behavior(boolean flag) voidsetUseOnlyServerErrorMessages(boolean flag) voidsetUseReadAheadInput(boolean flag) voidsetUseServerPreparedStmts(boolean flag) voidsetUseServerPrepStmts(boolean flag) voidsetUseSqlStateCodes(boolean flag) voidsetUseSSL(boolean property) voidsetUseSSPSCompatibleTimezoneShift(boolean flag) voidsetUseStreamLengthsInPrepStmts(boolean property) voidsetUseTimezone(boolean property) voidsetUseUltraDevWorkAround(boolean property) voidsetUseUnbufferedInput(boolean flag) voidsetUseUnicode(boolean flag) voidsetUseUsageAdvisor(boolean useUsageAdvisorFlag) Sets whether or not the driver advises of proper usage.voidsetUtf8OutsideBmpExcludedColumnNamePattern(String regexPattern) voidsetUtf8OutsideBmpIncludedColumnNamePattern(String regexPattern) voidsetVerifyServerCertificate(boolean flag) voidsetYearIsDateType(boolean flag) voidsetZeroDateTimeBehavior(String behavior) voidUsed by MiniAdmin to shutdown a MySQL serverbooleanbooleanDoes the server this connection is connected to support isolation levels?booleanDoes the server this connection is connected to support quoted identifiers?booleanDoes the server this connection is connected to support transactions?voidvoidvoidvoidunregisterStatement(Statement stmt) voidbooleanbooleanbooleanversionMeetsMinimum(int major, int minor, int subminor) Does the server this connection is connected to meet or exceed the given version?Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Connection
beginRequest, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, endRequest, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValidMethods inherited from interface Wrapper
isWrapperFor, unwrap
-
Field Details
-
thisAsProxy
thisAsProxy holds the proxy (MultiHostConnectionProxy or one of its subclasses) this connection is associated with. It is used as a gateway to the current active sub-connection managed by this multi-host structure or as a target to where some of the methods implemented here in this class refer to.
-
-
Constructor Details
-
MultiHostMySQLConnection
-
-
Method Details
-
getThisAsProxy
-
getActiveMySQLConnection
- Specified by:
getActiveMySQLConnectionin interfaceMySQLConnection
-
abortInternal
- Specified by:
abortInternalin interfaceConnection- Throws:
SQLException
-
changeUser
Description copied from interface:ConnectionChanges the user on this connection by performing a re-authentication. If authentication fails, the connection will remain under the context of the current user.- Specified by:
changeUserin interfaceConnection- Parameters:
userName- the username to authenticate withnewPassword- the password to authenticate with- Throws:
SQLException- if authentication fails, or some other error occurs while performing the command.
-
checkClosed
- Specified by:
checkClosedin interfaceConnection- Throws:
SQLException
-
clearHasTriedMaster
Deprecated.- Specified by:
clearHasTriedMasterin interfaceConnection
-
clearWarnings
- Specified by:
clearWarningsin interfaceConnection- Throws:
SQLException
-
clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, int autoGenKeyIndex) throws SQLException Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, int[] autoGenKeyIndexes) throws SQLException Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
clientPrepareStatement
Description copied from interface:ConnectionPrepares a statement on the client, using client-side emulation (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
clientPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
createNewIO
- Specified by:
createNewIOin interfaceMySQLConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
dumpTestcaseQuery
- Specified by:
dumpTestcaseQueryin interfaceMySQLConnection
-
duplicate
- Specified by:
duplicatein interfaceMySQLConnection- Throws:
SQLException
-
execSQL
public ResultSetInternalMethods execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata, boolean isBatch) throws SQLException - Specified by:
execSQLin interfaceMySQLConnection- Throws:
SQLException
-
execSQL
public ResultSetInternalMethods execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata) throws SQLException - Specified by:
execSQLin interfaceMySQLConnection- Throws:
SQLException
-
extractSqlFromPacket
public String extractSqlFromPacket(String possibleSqlQuery, Buffer queryPacket, int endOfQueryPacketPosition) throws SQLException - Specified by:
extractSqlFromPacketin interfaceMySQLConnection- Throws:
SQLException
-
exposeAsXml
Description copied from interface:ConnectionPropertiesReturns a description of the connection properties as an XML document.- Specified by:
exposeAsXmlin interfaceConnectionProperties- Returns:
- the connection properties as an XML document.
- Throws:
SQLException- if an error occurs.
-
getAllowLoadLocalInfile
public boolean getAllowLoadLocalInfile()- Specified by:
getAllowLoadLocalInfilein interfaceConnectionProperties
-
getAllowMultiQueries
public boolean getAllowMultiQueries()- Specified by:
getAllowMultiQueriesin interfaceConnectionProperties
-
getAllowNanAndInf
public boolean getAllowNanAndInf()- Specified by:
getAllowNanAndInfin interfaceConnectionProperties- Returns:
- Returns the allowNanAndInf.
-
getAllowUrlInLocalInfile
public boolean getAllowUrlInLocalInfile()- Specified by:
getAllowUrlInLocalInfilein interfaceConnectionProperties- Returns:
- Returns the allowUrlInLocalInfile.
-
getAlwaysSendSetIsolation
public boolean getAlwaysSendSetIsolation()- Specified by:
getAlwaysSendSetIsolationin interfaceConnectionProperties- Returns:
- Returns the alwaysSendSetIsolation.
-
getAutoClosePStmtStreams
public boolean getAutoClosePStmtStreams()- Specified by:
getAutoClosePStmtStreamsin interfaceConnectionProperties
-
getAutoDeserialize
public boolean getAutoDeserialize()- Specified by:
getAutoDeserializein interfaceConnectionProperties- Returns:
- Returns the autoDeserialize.
-
getAutoGenerateTestcaseScript
public boolean getAutoGenerateTestcaseScript()- Specified by:
getAutoGenerateTestcaseScriptin interfaceConnectionProperties
-
getAutoReconnectForPools
public boolean getAutoReconnectForPools()- Specified by:
getAutoReconnectForPoolsin interfaceConnectionProperties
-
getAutoSlowLog
public boolean getAutoSlowLog()- Specified by:
getAutoSlowLogin interfaceConnectionProperties
-
getBlobSendChunkSize
public int getBlobSendChunkSize()- Specified by:
getBlobSendChunkSizein interfaceConnectionProperties- Returns:
- Returns the blobSendChunkSize.
-
getBlobsAreStrings
public boolean getBlobsAreStrings()- Specified by:
getBlobsAreStringsin interfaceConnectionProperties
-
getCacheCallableStatements
public boolean getCacheCallableStatements()- Specified by:
getCacheCallableStatementsin interfaceConnectionProperties- Returns:
- Returns if cacheCallableStatements is enabled
-
getCacheCallableStmts
public boolean getCacheCallableStmts()- Specified by:
getCacheCallableStmtsin interfaceConnectionProperties
-
getCachePrepStmts
public boolean getCachePrepStmts()- Specified by:
getCachePrepStmtsin interfaceConnectionProperties
-
getCachePreparedStatements
public boolean getCachePreparedStatements()- Specified by:
getCachePreparedStatementsin interfaceConnectionProperties- Returns:
- Returns the cachePreparedStatements.
-
getCacheResultSetMetadata
public boolean getCacheResultSetMetadata()- Specified by:
getCacheResultSetMetadatain interfaceConnectionProperties
-
getCacheServerConfiguration
public boolean getCacheServerConfiguration()- Specified by:
getCacheServerConfigurationin interfaceConnectionProperties- Returns:
- Returns the cacheServerConfiguration.
-
getCallableStatementCacheSize
public int getCallableStatementCacheSize()- Specified by:
getCallableStatementCacheSizein interfaceConnectionProperties- Returns:
- Returns the callableStatementCacheSize.
-
getCallableStmtCacheSize
public int getCallableStmtCacheSize()- Specified by:
getCallableStmtCacheSizein interfaceConnectionProperties
-
getCapitalizeTypeNames
public boolean getCapitalizeTypeNames()- Specified by:
getCapitalizeTypeNamesin interfaceConnectionProperties
-
getCharacterSetResults
- Specified by:
getCharacterSetResultsin interfaceConnectionProperties- Returns:
- Returns the characterSetResults.
-
getClientCertificateKeyStorePassword
- Specified by:
getClientCertificateKeyStorePasswordin interfaceConnectionProperties
-
getClientCertificateKeyStoreType
- Specified by:
getClientCertificateKeyStoreTypein interfaceConnectionProperties
-
getClientCertificateKeyStoreUrl
- Specified by:
getClientCertificateKeyStoreUrlin interfaceConnectionProperties
-
getClientInfoProvider
- Specified by:
getClientInfoProviderin interfaceConnectionProperties
-
getClobCharacterEncoding
- Specified by:
getClobCharacterEncodingin interfaceConnectionProperties
-
getClobberStreamingResults
public boolean getClobberStreamingResults()- Specified by:
getClobberStreamingResultsin interfaceConnectionProperties- Returns:
- Returns the clobberStreamingResults.
-
getCompensateOnDuplicateKeyUpdateCounts
public boolean getCompensateOnDuplicateKeyUpdateCounts()- Specified by:
getCompensateOnDuplicateKeyUpdateCountsin interfaceConnectionProperties
-
getConnectTimeout
public int getConnectTimeout()- Specified by:
getConnectTimeoutin interfaceConnectionProperties
-
getConnectionCollation
- Specified by:
getConnectionCollationin interfaceConnectionProperties- Returns:
- Returns the connectionCollation.
-
getConnectionLifecycleInterceptors
- Specified by:
getConnectionLifecycleInterceptorsin interfaceConnectionProperties
-
getContinueBatchOnError
public boolean getContinueBatchOnError()- Specified by:
getContinueBatchOnErrorin interfaceConnectionProperties
-
getCreateDatabaseIfNotExist
public boolean getCreateDatabaseIfNotExist()- Specified by:
getCreateDatabaseIfNotExistin interfaceConnectionProperties
-
getDefaultFetchSize
public int getDefaultFetchSize()- Specified by:
getDefaultFetchSizein interfaceConnectionProperties
-
getDontTrackOpenResources
public boolean getDontTrackOpenResources()- Specified by:
getDontTrackOpenResourcesin interfaceConnectionProperties- Returns:
- Returns the dontTrackOpenResources.
-
getDumpMetadataOnColumnNotFound
public boolean getDumpMetadataOnColumnNotFound()- Specified by:
getDumpMetadataOnColumnNotFoundin interfaceConnectionProperties
-
getDumpQueriesOnException
public boolean getDumpQueriesOnException()- Specified by:
getDumpQueriesOnExceptionin interfaceConnectionProperties- Returns:
- Returns the dumpQueriesOnException.
-
getDynamicCalendars
public boolean getDynamicCalendars()- Specified by:
getDynamicCalendarsin interfaceConnectionProperties- Returns:
- Returns the dynamicCalendars.
-
getElideSetAutoCommits
public boolean getElideSetAutoCommits()- Specified by:
getElideSetAutoCommitsin interfaceConnectionProperties- Returns:
- Returns the elideSetAutoCommits.
-
getEmptyStringsConvertToZero
public boolean getEmptyStringsConvertToZero()- Specified by:
getEmptyStringsConvertToZeroin interfaceConnectionProperties
-
getEmulateLocators
public boolean getEmulateLocators()- Specified by:
getEmulateLocatorsin interfaceConnectionProperties
-
getEmulateUnsupportedPstmts
public boolean getEmulateUnsupportedPstmts()- Specified by:
getEmulateUnsupportedPstmtsin interfaceConnectionProperties- Returns:
- Returns the emulateUnsupportedPstmts.
-
getEnablePacketDebug
public boolean getEnablePacketDebug()- Specified by:
getEnablePacketDebugin interfaceConnectionProperties- Returns:
- Returns the enablePacketDebug.
-
getEnableQueryTimeouts
public boolean getEnableQueryTimeouts()- Specified by:
getEnableQueryTimeoutsin interfaceConnectionProperties
-
getEncoding
- Specified by:
getEncodingin interfaceConnectionProperties
-
getExceptionInterceptors
- Specified by:
getExceptionInterceptorsin interfaceConnectionProperties
-
getExplainSlowQueries
public boolean getExplainSlowQueries()- Specified by:
getExplainSlowQueriesin interfaceConnectionProperties- Returns:
- Returns the explainSlowQueries.
-
getFailOverReadOnly
public boolean getFailOverReadOnly()- Specified by:
getFailOverReadOnlyin interfaceConnectionProperties- Returns:
- Returns the failOverReadOnly.
-
getFunctionsNeverReturnBlobs
public boolean getFunctionsNeverReturnBlobs()- Specified by:
getFunctionsNeverReturnBlobsin interfaceConnectionProperties
-
getGatherPerfMetrics
public boolean getGatherPerfMetrics()- Specified by:
getGatherPerfMetricsin interfaceConnectionProperties
-
getGatherPerformanceMetrics
public boolean getGatherPerformanceMetrics()- Specified by:
getGatherPerformanceMetricsin interfaceConnectionProperties- Returns:
- Returns the gatherPerformanceMetrics.
-
getGenerateSimpleParameterMetadata
public boolean getGenerateSimpleParameterMetadata()- Specified by:
getGenerateSimpleParameterMetadatain interfaceConnectionProperties
-
getIgnoreNonTxTables
public boolean getIgnoreNonTxTables()- Specified by:
getIgnoreNonTxTablesin interfaceConnectionProperties
-
getIncludeInnodbStatusInDeadlockExceptions
public boolean getIncludeInnodbStatusInDeadlockExceptions()- Specified by:
getIncludeInnodbStatusInDeadlockExceptionsin interfaceConnectionProperties
-
getInitialTimeout
public int getInitialTimeout()- Specified by:
getInitialTimeoutin interfaceConnectionProperties
-
getInteractiveClient
public boolean getInteractiveClient()- Specified by:
getInteractiveClientin interfaceConnectionProperties
-
getIsInteractiveClient
public boolean getIsInteractiveClient()- Specified by:
getIsInteractiveClientin interfaceConnectionProperties- Returns:
- Returns the isInteractiveClient.
-
getJdbcCompliantTruncation
public boolean getJdbcCompliantTruncation()- Specified by:
getJdbcCompliantTruncationin interfaceConnectionProperties- Returns:
- Returns the jdbcCompliantTruncation.
-
getJdbcCompliantTruncationForReads
public boolean getJdbcCompliantTruncationForReads()- Specified by:
getJdbcCompliantTruncationForReadsin interfaceConnectionProperties
-
getLargeRowSizeThreshold
- Specified by:
getLargeRowSizeThresholdin interfaceConnectionProperties
-
getLoadBalanceBlacklistTimeout
public int getLoadBalanceBlacklistTimeout()- Specified by:
getLoadBalanceBlacklistTimeoutin interfaceConnectionProperties
-
getLoadBalancePingTimeout
public int getLoadBalancePingTimeout()- Specified by:
getLoadBalancePingTimeoutin interfaceConnectionProperties
-
getLoadBalanceStrategy
- Specified by:
getLoadBalanceStrategyin interfaceConnectionProperties
-
getServerAffinityOrder
- Specified by:
getServerAffinityOrderin interfaceConnectionProperties
-
getLoadBalanceValidateConnectionOnSwapServer
public boolean getLoadBalanceValidateConnectionOnSwapServer()- Specified by:
getLoadBalanceValidateConnectionOnSwapServerin interfaceConnectionProperties
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddressin interfaceConnectionProperties
-
getLocatorFetchBufferSize
public int getLocatorFetchBufferSize()- Specified by:
getLocatorFetchBufferSizein interfaceConnectionProperties- Returns:
- Returns the dontTrackOpenResources.
-
getLogSlowQueries
public boolean getLogSlowQueries()- Specified by:
getLogSlowQueriesin interfaceConnectionProperties- Returns:
- Returns the logSlowQueries.
-
getLogXaCommands
public boolean getLogXaCommands()- Specified by:
getLogXaCommandsin interfaceConnectionProperties
-
getLogger
- Specified by:
getLoggerin interfaceConnectionProperties
-
getLoggerClassName
- Specified by:
getLoggerClassNamein interfaceConnectionProperties- Returns:
- Returns the loggerClassName.
-
getMaintainTimeStats
public boolean getMaintainTimeStats()- Specified by:
getMaintainTimeStatsin interfaceConnectionProperties
-
getMaxAllowedPacket
public int getMaxAllowedPacket()- Specified by:
getMaxAllowedPacketin interfaceConnectionProperties
-
getMaxQuerySizeToLog
public int getMaxQuerySizeToLog()- Specified by:
getMaxQuerySizeToLogin interfaceConnectionProperties- Returns:
- Returns the maxQuerySizeToLog.
-
getMaxReconnects
public int getMaxReconnects()- Specified by:
getMaxReconnectsin interfaceConnectionProperties
-
getMaxRows
public int getMaxRows()- Specified by:
getMaxRowsin interfaceConnectionProperties
-
getMetadataCacheSize
public int getMetadataCacheSize()Description copied from interface:ConnectionPropertiesReturns the number of queries that metadata can be cached if caching is enabled.- Specified by:
getMetadataCacheSizein interfaceConnectionProperties- Returns:
- the number of queries to cache metadata for.
-
getNetTimeoutForStreamingResults
public int getNetTimeoutForStreamingResults()- Specified by:
getNetTimeoutForStreamingResultsin interfaceConnectionProperties
-
getNoAccessToProcedureBodies
public boolean getNoAccessToProcedureBodies()- Specified by:
getNoAccessToProcedureBodiesin interfaceConnectionProperties
-
getNoDatetimeStringSync
public boolean getNoDatetimeStringSync()- Specified by:
getNoDatetimeStringSyncin interfaceConnectionProperties- Returns:
- Returns the noDatetimeStringSync.
-
getNoTimezoneConversionForTimeType
public boolean getNoTimezoneConversionForTimeType()- Specified by:
getNoTimezoneConversionForTimeTypein interfaceConnectionProperties
-
getNoTimezoneConversionForDateType
public boolean getNoTimezoneConversionForDateType()- Specified by:
getNoTimezoneConversionForDateTypein interfaceConnectionProperties
-
getCacheDefaultTimezone
public boolean getCacheDefaultTimezone()- Specified by:
getCacheDefaultTimezonein interfaceConnectionProperties
-
getNullCatalogMeansCurrent
public boolean getNullCatalogMeansCurrent()- Specified by:
getNullCatalogMeansCurrentin interfaceConnectionProperties
-
getNullNamePatternMatchesAll
public boolean getNullNamePatternMatchesAll()- Specified by:
getNullNamePatternMatchesAllin interfaceConnectionProperties
-
getOverrideSupportsIntegrityEnhancementFacility
public boolean getOverrideSupportsIntegrityEnhancementFacility()- Specified by:
getOverrideSupportsIntegrityEnhancementFacilityin interfaceConnectionProperties
-
getPacketDebugBufferSize
public int getPacketDebugBufferSize()- Specified by:
getPacketDebugBufferSizein interfaceConnectionProperties- Returns:
- Returns the packetDebugBufferSize.
-
getPadCharsWithSpace
public boolean getPadCharsWithSpace()- Specified by:
getPadCharsWithSpacein interfaceConnectionProperties
-
getParanoid
public boolean getParanoid()- Specified by:
getParanoidin interfaceConnectionProperties
-
getPasswordCharacterEncoding
- Specified by:
getPasswordCharacterEncodingin interfaceConnectionProperties
-
getPedantic
public boolean getPedantic()- Specified by:
getPedanticin interfaceConnectionProperties
-
getPinGlobalTxToPhysicalConnection
public boolean getPinGlobalTxToPhysicalConnection()- Specified by:
getPinGlobalTxToPhysicalConnectionin interfaceConnectionProperties
-
getPopulateInsertRowWithDefaultValues
public boolean getPopulateInsertRowWithDefaultValues()- Specified by:
getPopulateInsertRowWithDefaultValuesin interfaceConnectionProperties
-
getPrepStmtCacheSize
public int getPrepStmtCacheSize()- Specified by:
getPrepStmtCacheSizein interfaceConnectionProperties
-
getPrepStmtCacheSqlLimit
public int getPrepStmtCacheSqlLimit()- Specified by:
getPrepStmtCacheSqlLimitin interfaceConnectionProperties
-
getPreparedStatementCacheSize
public int getPreparedStatementCacheSize()- Specified by:
getPreparedStatementCacheSizein interfaceConnectionProperties- Returns:
- Returns the preparedStatementCacheSize.
-
getPreparedStatementCacheSqlLimit
public int getPreparedStatementCacheSqlLimit()- Specified by:
getPreparedStatementCacheSqlLimitin interfaceConnectionProperties- Returns:
- Returns the preparedStatementCacheSqlLimit.
-
getProcessEscapeCodesForPrepStmts
public boolean getProcessEscapeCodesForPrepStmts()- Specified by:
getProcessEscapeCodesForPrepStmtsin interfaceConnectionProperties
-
getProfileSQL
public boolean getProfileSQL()- Specified by:
getProfileSQLin interfaceConnectionProperties- Returns:
- Returns the profileSQL flag
-
getProfileSql
public boolean getProfileSql()- Specified by:
getProfileSqlin interfaceConnectionProperties
-
getProfilerEventHandler
- Specified by:
getProfilerEventHandlerin interfaceConnectionProperties
-
getPropertiesTransform
- Specified by:
getPropertiesTransformin interfaceConnectionProperties- Returns:
- Returns the propertiesTransform.
-
getQueriesBeforeRetryMaster
public int getQueriesBeforeRetryMaster()- Specified by:
getQueriesBeforeRetryMasterin interfaceConnectionProperties
-
getQueryTimeoutKillsConnection
public boolean getQueryTimeoutKillsConnection()- Specified by:
getQueryTimeoutKillsConnectionin interfaceConnectionProperties
-
getReconnectAtTxEnd
public boolean getReconnectAtTxEnd()- Specified by:
getReconnectAtTxEndin interfaceConnectionProperties
-
getRelaxAutoCommit
public boolean getRelaxAutoCommit()- Specified by:
getRelaxAutoCommitin interfaceConnectionProperties
-
getReportMetricsIntervalMillis
public int getReportMetricsIntervalMillis()- Specified by:
getReportMetricsIntervalMillisin interfaceConnectionProperties- Returns:
- Returns the reportMetricsIntervalMillis.
-
getRequireSSL
public boolean getRequireSSL()- Specified by:
getRequireSSLin interfaceConnectionProperties
-
getResourceId
- Specified by:
getResourceIdin interfaceConnectionProperties
-
getResultSetSizeThreshold
public int getResultSetSizeThreshold()- Specified by:
getResultSetSizeThresholdin interfaceConnectionProperties
-
getRetainStatementAfterResultSetClose
public boolean getRetainStatementAfterResultSetClose()- Specified by:
getRetainStatementAfterResultSetClosein interfaceConnectionProperties
-
getRetriesAllDown
public int getRetriesAllDown()- Specified by:
getRetriesAllDownin interfaceConnectionProperties
-
getRewriteBatchedStatements
public boolean getRewriteBatchedStatements()- Specified by:
getRewriteBatchedStatementsin interfaceConnectionProperties
-
getRollbackOnPooledClose
public boolean getRollbackOnPooledClose()- Specified by:
getRollbackOnPooledClosein interfaceConnectionProperties- Returns:
- Returns the rollbackOnPooledClose.
-
getRoundRobinLoadBalance
public boolean getRoundRobinLoadBalance()Description copied from interface:ConnectionPropertiesReturns whether or not hosts will be picked in a round-robin fashion.- Specified by:
getRoundRobinLoadBalancein interfaceConnectionProperties- Returns:
- Returns the roundRobinLoadBalance property.
-
getRunningCTS13
public boolean getRunningCTS13()- Specified by:
getRunningCTS13in interfaceConnectionProperties- Returns:
- Returns the runningCTS13.
-
getSecondsBeforeRetryMaster
public int getSecondsBeforeRetryMaster()- Specified by:
getSecondsBeforeRetryMasterin interfaceConnectionProperties
-
getSelfDestructOnPingMaxOperations
public int getSelfDestructOnPingMaxOperations()- Specified by:
getSelfDestructOnPingMaxOperationsin interfaceConnectionProperties
-
getSelfDestructOnPingSecondsLifetime
public int getSelfDestructOnPingSecondsLifetime()- Specified by:
getSelfDestructOnPingSecondsLifetimein interfaceConnectionProperties
-
getServerTimezone
Description copied from interface:ConnectionPropertiesReturns the 'serverTimezone' property.- Specified by:
getServerTimezonein interfaceConnectionProperties- Returns:
- the configured server timezone property.
-
getSessionVariables
- Specified by:
getSessionVariablesin interfaceConnectionProperties- Returns:
- Returns the sessionVariables.
-
getSlowQueryThresholdMillis
public int getSlowQueryThresholdMillis()- Specified by:
getSlowQueryThresholdMillisin interfaceConnectionProperties- Returns:
- Returns the slowQueryThresholdMillis.
-
getSlowQueryThresholdNanos
public long getSlowQueryThresholdNanos()- Specified by:
getSlowQueryThresholdNanosin interfaceConnectionProperties
-
getSocketFactory
- Specified by:
getSocketFactoryin interfaceConnectionProperties
-
getSocketFactoryClassName
- Specified by:
getSocketFactoryClassNamein interfaceConnectionProperties
-
getSocketTimeout
public int getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceConnectionProperties
-
getStatementInterceptors
- Specified by:
getStatementInterceptorsin interfaceConnectionProperties
-
getStrictFloatingPoint
public boolean getStrictFloatingPoint()- Specified by:
getStrictFloatingPointin interfaceConnectionProperties
-
getStrictUpdates
public boolean getStrictUpdates()- Specified by:
getStrictUpdatesin interfaceConnectionProperties
-
getTcpKeepAlive
public boolean getTcpKeepAlive()- Specified by:
getTcpKeepAlivein interfaceConnectionProperties
-
getTcpNoDelay
public boolean getTcpNoDelay()- Specified by:
getTcpNoDelayin interfaceConnectionProperties
-
getTcpRcvBuf
public int getTcpRcvBuf()- Specified by:
getTcpRcvBufin interfaceConnectionProperties
-
getTcpSndBuf
public int getTcpSndBuf()- Specified by:
getTcpSndBufin interfaceConnectionProperties
-
getTcpTrafficClass
public int getTcpTrafficClass()- Specified by:
getTcpTrafficClassin interfaceConnectionProperties
-
getTinyInt1isBit
public boolean getTinyInt1isBit()- Specified by:
getTinyInt1isBitin interfaceConnectionProperties- Returns:
- Returns the tinyInt1isBit.
-
getTraceProtocol
public boolean getTraceProtocol()- Specified by:
getTraceProtocolin interfaceConnectionProperties- Returns:
- Returns the logProtocol.
-
getTransformedBitIsBoolean
public boolean getTransformedBitIsBoolean()- Specified by:
getTransformedBitIsBooleanin interfaceConnectionProperties
-
getTreatUtilDateAsTimestamp
public boolean getTreatUtilDateAsTimestamp()- Specified by:
getTreatUtilDateAsTimestampin interfaceConnectionProperties
-
getTrustCertificateKeyStorePassword
- Specified by:
getTrustCertificateKeyStorePasswordin interfaceConnectionProperties
-
getTrustCertificateKeyStoreType
- Specified by:
getTrustCertificateKeyStoreTypein interfaceConnectionProperties
-
getTrustCertificateKeyStoreUrl
- Specified by:
getTrustCertificateKeyStoreUrlin interfaceConnectionProperties
-
getUltraDevHack
public boolean getUltraDevHack()- Specified by:
getUltraDevHackin interfaceConnectionProperties
-
getUseAffectedRows
public boolean getUseAffectedRows()- Specified by:
getUseAffectedRowsin interfaceConnectionProperties
-
getUseBlobToStoreUTF8OutsideBMP
public boolean getUseBlobToStoreUTF8OutsideBMP()- Specified by:
getUseBlobToStoreUTF8OutsideBMPin interfaceConnectionProperties
-
getUseColumnNamesInFindColumn
public boolean getUseColumnNamesInFindColumn()- Specified by:
getUseColumnNamesInFindColumnin interfaceConnectionProperties
-
getUseCompression
public boolean getUseCompression()- Specified by:
getUseCompressionin interfaceConnectionProperties
-
getUseConfigs
- Specified by:
getUseConfigsin interfaceConnectionProperties
-
getUseCursorFetch
public boolean getUseCursorFetch()- Specified by:
getUseCursorFetchin interfaceConnectionProperties
-
getUseDirectRowUnpack
public boolean getUseDirectRowUnpack()- Specified by:
getUseDirectRowUnpackin interfaceConnectionProperties
-
getUseDynamicCharsetInfo
public boolean getUseDynamicCharsetInfo()- Specified by:
getUseDynamicCharsetInfoin interfaceConnectionProperties
-
getUseFastDateParsing
public boolean getUseFastDateParsing()- Specified by:
getUseFastDateParsingin interfaceConnectionProperties
-
getUseFastIntParsing
public boolean getUseFastIntParsing()- Specified by:
getUseFastIntParsingin interfaceConnectionProperties- Returns:
- Returns the useFastIntParsing.
-
getUseGmtMillisForDatetimes
public boolean getUseGmtMillisForDatetimes()- Specified by:
getUseGmtMillisForDatetimesin interfaceConnectionProperties
-
getUseHostsInPrivileges
public boolean getUseHostsInPrivileges()- Specified by:
getUseHostsInPrivilegesin interfaceConnectionProperties
-
getUseInformationSchema
public boolean getUseInformationSchema()- Specified by:
getUseInformationSchemain interfaceConnectionProperties
-
getUseJDBCCompliantTimezoneShift
public boolean getUseJDBCCompliantTimezoneShift()- Specified by:
getUseJDBCCompliantTimezoneShiftin interfaceConnectionProperties
-
getUseJvmCharsetConverters
public boolean getUseJvmCharsetConverters()- Specified by:
getUseJvmCharsetConvertersin interfaceConnectionProperties
-
getUseLegacyDatetimeCode
public boolean getUseLegacyDatetimeCode()- Specified by:
getUseLegacyDatetimeCodein interfaceConnectionProperties
-
getSendFractionalSeconds
public boolean getSendFractionalSeconds()- Specified by:
getSendFractionalSecondsin interfaceConnectionProperties
-
getUseLocalSessionState
public boolean getUseLocalSessionState()- Specified by:
getUseLocalSessionStatein interfaceConnectionProperties- Returns:
- Returns the useLocalSessionState.
-
getUseLocalTransactionState
public boolean getUseLocalTransactionState()- Specified by:
getUseLocalTransactionStatein interfaceConnectionProperties
-
getUseNanosForElapsedTime
public boolean getUseNanosForElapsedTime()- Specified by:
getUseNanosForElapsedTimein interfaceConnectionProperties
-
getUseOldAliasMetadataBehavior
public boolean getUseOldAliasMetadataBehavior()- Specified by:
getUseOldAliasMetadataBehaviorin interfaceConnectionProperties
-
getUseOldUTF8Behavior
public boolean getUseOldUTF8Behavior()- Specified by:
getUseOldUTF8Behaviorin interfaceConnectionProperties- Returns:
- Returns the useOldUTF8Behavior.
-
getUseOnlyServerErrorMessages
public boolean getUseOnlyServerErrorMessages()- Specified by:
getUseOnlyServerErrorMessagesin interfaceConnectionProperties- Returns:
- Returns the useOnlyServerErrorMessages.
-
getUseReadAheadInput
public boolean getUseReadAheadInput()- Specified by:
getUseReadAheadInputin interfaceConnectionProperties- Returns:
- Returns the useReadAheadInput.
-
getUseSSL
public boolean getUseSSL()- Specified by:
getUseSSLin interfaceConnectionProperties
-
getUseSSPSCompatibleTimezoneShift
public boolean getUseSSPSCompatibleTimezoneShift()- Specified by:
getUseSSPSCompatibleTimezoneShiftin interfaceConnectionProperties
-
getUseServerPrepStmts
public boolean getUseServerPrepStmts()- Specified by:
getUseServerPrepStmtsin interfaceConnectionProperties
-
getUseServerPreparedStmts
public boolean getUseServerPreparedStmts()- Specified by:
getUseServerPreparedStmtsin interfaceConnectionProperties
-
getUseSqlStateCodes
public boolean getUseSqlStateCodes()- Specified by:
getUseSqlStateCodesin interfaceConnectionProperties- Returns:
- Returns the useSqlStateCodes state.
-
getUseStreamLengthsInPrepStmts
public boolean getUseStreamLengthsInPrepStmts()- Specified by:
getUseStreamLengthsInPrepStmtsin interfaceConnectionProperties
-
getUseTimezone
public boolean getUseTimezone()- Specified by:
getUseTimezonein interfaceConnectionProperties
-
getUseUltraDevWorkAround
public boolean getUseUltraDevWorkAround()- Specified by:
getUseUltraDevWorkAroundin interfaceConnectionProperties
-
getUseUnbufferedInput
public boolean getUseUnbufferedInput()- Specified by:
getUseUnbufferedInputin interfaceConnectionProperties- Returns:
- Returns the useUnbufferedInput.
-
getUseUnicode
public boolean getUseUnicode()- Specified by:
getUseUnicodein interfaceConnectionProperties
-
getUseUsageAdvisor
public boolean getUseUsageAdvisor()Description copied from interface:ConnectionPropertiesReturns whether or not the driver advises of proper usage.- Specified by:
getUseUsageAdvisorin interfaceConnectionProperties- Returns:
- the value of useUsageAdvisor
-
getUtf8OutsideBmpExcludedColumnNamePattern
- Specified by:
getUtf8OutsideBmpExcludedColumnNamePatternin interfaceConnectionProperties
-
getUtf8OutsideBmpIncludedColumnNamePattern
- Specified by:
getUtf8OutsideBmpIncludedColumnNamePatternin interfaceConnectionProperties
-
getVerifyServerCertificate
public boolean getVerifyServerCertificate()- Specified by:
getVerifyServerCertificatein interfaceConnectionProperties
-
getYearIsDateType
public boolean getYearIsDateType()- Specified by:
getYearIsDateTypein interfaceConnectionProperties
-
getZeroDateTimeBehavior
- Specified by:
getZeroDateTimeBehaviorin interfaceConnectionProperties- Returns:
- Returns the zeroDateTimeBehavior.
-
setAllowLoadLocalInfile
public void setAllowLoadLocalInfile(boolean property) - Specified by:
setAllowLoadLocalInfilein interfaceConnectionProperties
-
setAllowMultiQueries
public void setAllowMultiQueries(boolean property) - Specified by:
setAllowMultiQueriesin interfaceConnectionProperties- Parameters:
property-
-
setAllowNanAndInf
public void setAllowNanAndInf(boolean flag) - Specified by:
setAllowNanAndInfin interfaceConnectionProperties
-
setAllowUrlInLocalInfile
public void setAllowUrlInLocalInfile(boolean flag) - Specified by:
setAllowUrlInLocalInfilein interfaceConnectionProperties
-
setAlwaysSendSetIsolation
public void setAlwaysSendSetIsolation(boolean flag) - Specified by:
setAlwaysSendSetIsolationin interfaceConnectionProperties
-
setAutoClosePStmtStreams
public void setAutoClosePStmtStreams(boolean flag) - Specified by:
setAutoClosePStmtStreamsin interfaceConnectionProperties
-
setAutoDeserialize
public void setAutoDeserialize(boolean flag) - Specified by:
setAutoDeserializein interfaceConnectionProperties
-
setAutoGenerateTestcaseScript
public void setAutoGenerateTestcaseScript(boolean flag) - Specified by:
setAutoGenerateTestcaseScriptin interfaceConnectionProperties
-
setAutoReconnect
public void setAutoReconnect(boolean flag) - Specified by:
setAutoReconnectin interfaceConnectionProperties- Parameters:
flag- The autoReconnect to set.
-
setAutoReconnectForConnectionPools
public void setAutoReconnectForConnectionPools(boolean property) - Specified by:
setAutoReconnectForConnectionPoolsin interfaceConnectionProperties
-
setAutoReconnectForPools
public void setAutoReconnectForPools(boolean flag) - Specified by:
setAutoReconnectForPoolsin interfaceConnectionProperties- Parameters:
flag- The autoReconnectForPools to set.
-
setAutoSlowLog
public void setAutoSlowLog(boolean flag) - Specified by:
setAutoSlowLogin interfaceConnectionProperties
-
setBlobSendChunkSize
- Specified by:
setBlobSendChunkSizein interfaceConnectionProperties- Throws:
SQLException
-
setBlobsAreStrings
public void setBlobsAreStrings(boolean flag) - Specified by:
setBlobsAreStringsin interfaceConnectionProperties
-
setCacheCallableStatements
public void setCacheCallableStatements(boolean flag) - Specified by:
setCacheCallableStatementsin interfaceConnectionProperties- Parameters:
flag- The cacheCallableStatements to set.
-
setCacheCallableStmts
public void setCacheCallableStmts(boolean flag) - Specified by:
setCacheCallableStmtsin interfaceConnectionProperties
-
setCachePrepStmts
public void setCachePrepStmts(boolean flag) - Specified by:
setCachePrepStmtsin interfaceConnectionProperties
-
setCachePreparedStatements
public void setCachePreparedStatements(boolean flag) - Specified by:
setCachePreparedStatementsin interfaceConnectionProperties- Parameters:
flag- The cachePreparedStatements to set.
-
setCacheResultSetMetadata
public void setCacheResultSetMetadata(boolean property) Description copied from interface:ConnectionPropertiesSets whether or not we should cache result set metadata.- Specified by:
setCacheResultSetMetadatain interfaceConnectionProperties- Parameters:
property-
-
setCacheServerConfiguration
public void setCacheServerConfiguration(boolean flag) - Specified by:
setCacheServerConfigurationin interfaceConnectionProperties
-
setCallableStatementCacheSize
Description copied from interface:ConnectionPropertiesConfigures the number of callable statements to cache. (this is configurable during the life of the connection).- Specified by:
setCallableStatementCacheSizein interfaceConnectionProperties- Parameters:
size- The callableStatementCacheSize to set.- Throws:
SQLException
-
setCallableStmtCacheSize
- Specified by:
setCallableStmtCacheSizein interfaceConnectionProperties- Throws:
SQLException
-
setCapitalizeDBMDTypes
public void setCapitalizeDBMDTypes(boolean property) - Specified by:
setCapitalizeDBMDTypesin interfaceConnectionProperties
-
setCapitalizeTypeNames
public void setCapitalizeTypeNames(boolean flag) - Specified by:
setCapitalizeTypeNamesin interfaceConnectionProperties- Parameters:
flag- The capitalizeTypeNames to set.
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfaceConnectionProperties- Parameters:
encoding- The characterEncoding to set.
-
setCharacterSetResults
- Specified by:
setCharacterSetResultsin interfaceConnectionProperties- Parameters:
characterSet- The characterSetResults to set.
-
setClientCertificateKeyStorePassword
- Specified by:
setClientCertificateKeyStorePasswordin interfaceConnectionProperties
-
setClientCertificateKeyStoreType
- Specified by:
setClientCertificateKeyStoreTypein interfaceConnectionProperties
-
setClientCertificateKeyStoreUrl
- Specified by:
setClientCertificateKeyStoreUrlin interfaceConnectionProperties
-
setClientInfoProvider
- Specified by:
setClientInfoProviderin interfaceConnectionProperties
-
setClobCharacterEncoding
- Specified by:
setClobCharacterEncodingin interfaceConnectionProperties
-
setClobberStreamingResults
public void setClobberStreamingResults(boolean flag) - Specified by:
setClobberStreamingResultsin interfaceConnectionProperties- Parameters:
flag- The clobberStreamingResults to set.
-
setCompensateOnDuplicateKeyUpdateCounts
public void setCompensateOnDuplicateKeyUpdateCounts(boolean flag) - Specified by:
setCompensateOnDuplicateKeyUpdateCountsin interfaceConnectionProperties
-
setConnectTimeout
- Specified by:
setConnectTimeoutin interfaceConnectionProperties- Parameters:
timeoutMs-- Throws:
SQLException
-
setConnectionCollation
- Specified by:
setConnectionCollationin interfaceConnectionProperties- Parameters:
collation- The connectionCollation to set.
-
setConnectionLifecycleInterceptors
- Specified by:
setConnectionLifecycleInterceptorsin interfaceConnectionProperties
-
setContinueBatchOnError
public void setContinueBatchOnError(boolean property) - Specified by:
setContinueBatchOnErrorin interfaceConnectionProperties- Parameters:
property-
-
setCreateDatabaseIfNotExist
public void setCreateDatabaseIfNotExist(boolean flag) - Specified by:
setCreateDatabaseIfNotExistin interfaceConnectionProperties
-
setDefaultFetchSize
- Specified by:
setDefaultFetchSizein interfaceConnectionProperties- Throws:
SQLException
-
setDetectServerPreparedStmts
public void setDetectServerPreparedStmts(boolean property) - Specified by:
setDetectServerPreparedStmtsin interfaceConnectionProperties- Parameters:
property-
-
setDontTrackOpenResources
public void setDontTrackOpenResources(boolean flag) - Specified by:
setDontTrackOpenResourcesin interfaceConnectionProperties
-
setDumpMetadataOnColumnNotFound
public void setDumpMetadataOnColumnNotFound(boolean flag) - Specified by:
setDumpMetadataOnColumnNotFoundin interfaceConnectionProperties
-
setDumpQueriesOnException
public void setDumpQueriesOnException(boolean flag) - Specified by:
setDumpQueriesOnExceptionin interfaceConnectionProperties- Parameters:
flag- The dumpQueriesOnException to set.
-
setDynamicCalendars
public void setDynamicCalendars(boolean flag) - Specified by:
setDynamicCalendarsin interfaceConnectionProperties
-
setElideSetAutoCommits
public void setElideSetAutoCommits(boolean flag) - Specified by:
setElideSetAutoCommitsin interfaceConnectionProperties- Parameters:
flag- The elideSetAutoCommits to set.
-
setEmptyStringsConvertToZero
public void setEmptyStringsConvertToZero(boolean flag) - Specified by:
setEmptyStringsConvertToZeroin interfaceConnectionProperties
-
setEmulateLocators
public void setEmulateLocators(boolean property) - Specified by:
setEmulateLocatorsin interfaceConnectionProperties- Parameters:
property-
-
setEmulateUnsupportedPstmts
public void setEmulateUnsupportedPstmts(boolean flag) - Specified by:
setEmulateUnsupportedPstmtsin interfaceConnectionProperties
-
setEnablePacketDebug
public void setEnablePacketDebug(boolean flag) - Specified by:
setEnablePacketDebugin interfaceConnectionProperties- Parameters:
flag- The enablePacketDebug to set.
-
setEnableQueryTimeouts
public void setEnableQueryTimeouts(boolean flag) - Specified by:
setEnableQueryTimeoutsin interfaceConnectionProperties
-
setEncoding
- Specified by:
setEncodingin interfaceConnectionProperties- Parameters:
property-
-
setExceptionInterceptors
- Specified by:
setExceptionInterceptorsin interfaceConnectionProperties
-
setExplainSlowQueries
public void setExplainSlowQueries(boolean flag) - Specified by:
setExplainSlowQueriesin interfaceConnectionProperties- Parameters:
flag- The explainSlowQueries to set.
-
setFailOverReadOnly
public void setFailOverReadOnly(boolean flag) - Specified by:
setFailOverReadOnlyin interfaceConnectionProperties- Parameters:
flag- The failOverReadOnly to set.
-
setFunctionsNeverReturnBlobs
public void setFunctionsNeverReturnBlobs(boolean flag) - Specified by:
setFunctionsNeverReturnBlobsin interfaceConnectionProperties
-
setGatherPerfMetrics
public void setGatherPerfMetrics(boolean flag) - Specified by:
setGatherPerfMetricsin interfaceConnectionProperties
-
setGatherPerformanceMetrics
public void setGatherPerformanceMetrics(boolean flag) - Specified by:
setGatherPerformanceMetricsin interfaceConnectionProperties- Parameters:
flag- The gatherPerformanceMetrics to set.
-
setGenerateSimpleParameterMetadata
public void setGenerateSimpleParameterMetadata(boolean flag) - Specified by:
setGenerateSimpleParameterMetadatain interfaceConnectionProperties
-
setHoldResultsOpenOverStatementClose
public void setHoldResultsOpenOverStatementClose(boolean flag) - Specified by:
setHoldResultsOpenOverStatementClosein interfaceConnectionProperties
-
setIgnoreNonTxTables
public void setIgnoreNonTxTables(boolean property) - Specified by:
setIgnoreNonTxTablesin interfaceConnectionProperties- Parameters:
property-
-
setIncludeInnodbStatusInDeadlockExceptions
public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag) - Specified by:
setIncludeInnodbStatusInDeadlockExceptionsin interfaceConnectionProperties
-
setInitialTimeout
- Specified by:
setInitialTimeoutin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setInteractiveClient
public void setInteractiveClient(boolean property) - Specified by:
setInteractiveClientin interfaceConnectionProperties
-
setIsInteractiveClient
public void setIsInteractiveClient(boolean property) - Specified by:
setIsInteractiveClientin interfaceConnectionProperties- Parameters:
property-
-
setJdbcCompliantTruncation
public void setJdbcCompliantTruncation(boolean flag) - Specified by:
setJdbcCompliantTruncationin interfaceConnectionProperties- Parameters:
flag- The jdbcCompliantTruncation to set.
-
setJdbcCompliantTruncationForReads
public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads) - Specified by:
setJdbcCompliantTruncationForReadsin interfaceConnectionProperties
-
setLargeRowSizeThreshold
- Specified by:
setLargeRowSizeThresholdin interfaceConnectionProperties- Throws:
SQLException
-
setLoadBalanceBlacklistTimeout
- Specified by:
setLoadBalanceBlacklistTimeoutin interfaceConnectionProperties- Throws:
SQLException
-
setLoadBalancePingTimeout
- Specified by:
setLoadBalancePingTimeoutin interfaceConnectionProperties- Throws:
SQLException
-
setLoadBalanceStrategy
- Specified by:
setLoadBalanceStrategyin interfaceConnectionProperties
-
setServerAffinityOrder
- Specified by:
setServerAffinityOrderin interfaceConnectionProperties
-
setLoadBalanceValidateConnectionOnSwapServer
public void setLoadBalanceValidateConnectionOnSwapServer(boolean loadBalanceValidateConnectionOnSwapServer) - Specified by:
setLoadBalanceValidateConnectionOnSwapServerin interfaceConnectionProperties
-
setLocalSocketAddress
- Specified by:
setLocalSocketAddressin interfaceConnectionProperties
-
setLocatorFetchBufferSize
- Specified by:
setLocatorFetchBufferSizein interfaceConnectionProperties- Throws:
SQLException
-
setLogSlowQueries
public void setLogSlowQueries(boolean flag) - Specified by:
setLogSlowQueriesin interfaceConnectionProperties- Parameters:
flag- The logSlowQueries to set.
-
setLogXaCommands
public void setLogXaCommands(boolean flag) - Specified by:
setLogXaCommandsin interfaceConnectionProperties
-
setLogger
- Specified by:
setLoggerin interfaceConnectionProperties- Parameters:
property-
-
setLoggerClassName
- Specified by:
setLoggerClassNamein interfaceConnectionProperties- Parameters:
className- The loggerClassName to set.
-
setMaintainTimeStats
public void setMaintainTimeStats(boolean flag) - Specified by:
setMaintainTimeStatsin interfaceConnectionProperties
-
setMaxQuerySizeToLog
- Specified by:
setMaxQuerySizeToLogin interfaceConnectionProperties- Parameters:
sizeInBytes- The maxQuerySizeToLog to set.- Throws:
SQLException
-
setMaxReconnects
- Specified by:
setMaxReconnectsin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setMaxRows
- Specified by:
setMaxRowsin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setMetadataCacheSize
Description copied from interface:ConnectionPropertiesSets the number of queries that metadata can be cached if caching is enabled.- Specified by:
setMetadataCacheSizein interfaceConnectionProperties- Parameters:
value- the number of queries to cache metadata for.- Throws:
SQLException
-
setNetTimeoutForStreamingResults
- Specified by:
setNetTimeoutForStreamingResultsin interfaceConnectionProperties- Throws:
SQLException
-
setNoAccessToProcedureBodies
public void setNoAccessToProcedureBodies(boolean flag) - Specified by:
setNoAccessToProcedureBodiesin interfaceConnectionProperties
-
setNoDatetimeStringSync
public void setNoDatetimeStringSync(boolean flag) - Specified by:
setNoDatetimeStringSyncin interfaceConnectionProperties
-
setNoTimezoneConversionForTimeType
public void setNoTimezoneConversionForTimeType(boolean flag) - Specified by:
setNoTimezoneConversionForTimeTypein interfaceConnectionProperties
-
setNoTimezoneConversionForDateType
public void setNoTimezoneConversionForDateType(boolean flag) - Specified by:
setNoTimezoneConversionForDateTypein interfaceConnectionProperties
-
setCacheDefaultTimezone
public void setCacheDefaultTimezone(boolean flag) - Specified by:
setCacheDefaultTimezonein interfaceConnectionProperties
-
setNullCatalogMeansCurrent
public void setNullCatalogMeansCurrent(boolean value) - Specified by:
setNullCatalogMeansCurrentin interfaceConnectionProperties
-
setNullNamePatternMatchesAll
public void setNullNamePatternMatchesAll(boolean value) - Specified by:
setNullNamePatternMatchesAllin interfaceConnectionProperties
-
setOverrideSupportsIntegrityEnhancementFacility
public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag) - Specified by:
setOverrideSupportsIntegrityEnhancementFacilityin interfaceConnectionProperties
-
setPacketDebugBufferSize
- Specified by:
setPacketDebugBufferSizein interfaceConnectionProperties- Parameters:
size- The packetDebugBufferSize to set.- Throws:
SQLException
-
setPadCharsWithSpace
public void setPadCharsWithSpace(boolean flag) - Specified by:
setPadCharsWithSpacein interfaceConnectionProperties
-
setParanoid
public void setParanoid(boolean property) - Specified by:
setParanoidin interfaceConnectionProperties- Parameters:
property-
-
setPasswordCharacterEncoding
- Specified by:
setPasswordCharacterEncodingin interfaceConnectionProperties
-
setPedantic
public void setPedantic(boolean property) - Specified by:
setPedanticin interfaceConnectionProperties- Parameters:
property-
-
setPinGlobalTxToPhysicalConnection
public void setPinGlobalTxToPhysicalConnection(boolean flag) - Specified by:
setPinGlobalTxToPhysicalConnectionin interfaceConnectionProperties
-
setPopulateInsertRowWithDefaultValues
public void setPopulateInsertRowWithDefaultValues(boolean flag) - Specified by:
setPopulateInsertRowWithDefaultValuesin interfaceConnectionProperties
-
setPrepStmtCacheSize
- Specified by:
setPrepStmtCacheSizein interfaceConnectionProperties- Throws:
SQLException
-
setPrepStmtCacheSqlLimit
- Specified by:
setPrepStmtCacheSqlLimitin interfaceConnectionProperties- Throws:
SQLException
-
setPreparedStatementCacheSize
- Specified by:
setPreparedStatementCacheSizein interfaceConnectionProperties- Parameters:
cacheSize- The preparedStatementCacheSize to set.- Throws:
SQLException
-
setPreparedStatementCacheSqlLimit
- Specified by:
setPreparedStatementCacheSqlLimitin interfaceConnectionProperties- Parameters:
cacheSqlLimit- The preparedStatementCacheSqlLimit to set.- Throws:
SQLException
-
setProcessEscapeCodesForPrepStmts
public void setProcessEscapeCodesForPrepStmts(boolean flag) - Specified by:
setProcessEscapeCodesForPrepStmtsin interfaceConnectionProperties
-
setProfileSQL
public void setProfileSQL(boolean flag) - Specified by:
setProfileSQLin interfaceConnectionProperties- Parameters:
flag- The profileSQL to set.
-
setProfileSql
public void setProfileSql(boolean property) - Specified by:
setProfileSqlin interfaceConnectionProperties- Parameters:
property-
-
setProfilerEventHandler
- Specified by:
setProfilerEventHandlerin interfaceConnectionProperties
-
setPropertiesTransform
- Specified by:
setPropertiesTransformin interfaceConnectionProperties
-
setQueriesBeforeRetryMaster
- Specified by:
setQueriesBeforeRetryMasterin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setQueryTimeoutKillsConnection
public void setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection) - Specified by:
setQueryTimeoutKillsConnectionin interfaceConnectionProperties
-
setReconnectAtTxEnd
public void setReconnectAtTxEnd(boolean property) - Specified by:
setReconnectAtTxEndin interfaceConnectionProperties- Parameters:
property-
-
setRelaxAutoCommit
public void setRelaxAutoCommit(boolean property) - Specified by:
setRelaxAutoCommitin interfaceConnectionProperties- Parameters:
property-
-
setReportMetricsIntervalMillis
- Specified by:
setReportMetricsIntervalMillisin interfaceConnectionProperties- Parameters:
millis- The reportMetricsIntervalMillis to set.- Throws:
SQLException
-
setRequireSSL
public void setRequireSSL(boolean property) - Specified by:
setRequireSSLin interfaceConnectionProperties- Parameters:
property-
-
setResourceId
- Specified by:
setResourceIdin interfaceConnectionProperties
-
setResultSetSizeThreshold
- Specified by:
setResultSetSizeThresholdin interfaceConnectionProperties- Throws:
SQLException
-
setRetainStatementAfterResultSetClose
public void setRetainStatementAfterResultSetClose(boolean flag) - Specified by:
setRetainStatementAfterResultSetClosein interfaceConnectionProperties
-
setRetriesAllDown
- Specified by:
setRetriesAllDownin interfaceConnectionProperties- Throws:
SQLException
-
setRewriteBatchedStatements
public void setRewriteBatchedStatements(boolean flag) - Specified by:
setRewriteBatchedStatementsin interfaceConnectionProperties
-
setRollbackOnPooledClose
public void setRollbackOnPooledClose(boolean flag) - Specified by:
setRollbackOnPooledClosein interfaceConnectionProperties
-
setRoundRobinLoadBalance
public void setRoundRobinLoadBalance(boolean flag) Description copied from interface:ConnectionPropertiesSets whether or not hosts will be picked in a round-robin fashion.- Specified by:
setRoundRobinLoadBalancein interfaceConnectionProperties- Parameters:
flag- The roundRobinLoadBalance property to set.
-
setRunningCTS13
public void setRunningCTS13(boolean flag) - Specified by:
setRunningCTS13in interfaceConnectionProperties
-
setSecondsBeforeRetryMaster
- Specified by:
setSecondsBeforeRetryMasterin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setSelfDestructOnPingMaxOperations
- Specified by:
setSelfDestructOnPingMaxOperationsin interfaceConnectionProperties- Throws:
SQLException
-
setSelfDestructOnPingSecondsLifetime
- Specified by:
setSelfDestructOnPingSecondsLifetimein interfaceConnectionProperties- Throws:
SQLException
-
setServerTimezone
- Specified by:
setServerTimezonein interfaceConnectionProperties- Parameters:
property-
-
setSessionVariables
- Specified by:
setSessionVariablesin interfaceConnectionProperties
-
setSlowQueryThresholdMillis
- Specified by:
setSlowQueryThresholdMillisin interfaceConnectionProperties- Parameters:
millis- The slowQueryThresholdMillis to set.- Throws:
SQLException
-
setSlowQueryThresholdNanos
- Specified by:
setSlowQueryThresholdNanosin interfaceConnectionProperties- Throws:
SQLException
-
setSocketFactory
- Specified by:
setSocketFactoryin interfaceConnectionProperties
-
setSocketFactoryClassName
- Specified by:
setSocketFactoryClassNamein interfaceConnectionProperties- Parameters:
property-
-
setSocketTimeout
- Specified by:
setSocketTimeoutin interfaceConnectionProperties- Parameters:
property-- Throws:
SQLException
-
setStatementInterceptors
- Specified by:
setStatementInterceptorsin interfaceConnectionProperties
-
setStrictFloatingPoint
public void setStrictFloatingPoint(boolean property) - Specified by:
setStrictFloatingPointin interfaceConnectionProperties- Parameters:
property-
-
setStrictUpdates
public void setStrictUpdates(boolean property) - Specified by:
setStrictUpdatesin interfaceConnectionProperties- Parameters:
property-
-
setTcpKeepAlive
public void setTcpKeepAlive(boolean flag) - Specified by:
setTcpKeepAlivein interfaceConnectionProperties
-
setTcpNoDelay
public void setTcpNoDelay(boolean flag) - Specified by:
setTcpNoDelayin interfaceConnectionProperties
-
setTcpRcvBuf
- Specified by:
setTcpRcvBufin interfaceConnectionProperties- Throws:
SQLException
-
setTcpSndBuf
- Specified by:
setTcpSndBufin interfaceConnectionProperties- Throws:
SQLException
-
setTcpTrafficClass
- Specified by:
setTcpTrafficClassin interfaceConnectionProperties- Throws:
SQLException
-
setTinyInt1isBit
public void setTinyInt1isBit(boolean flag) - Specified by:
setTinyInt1isBitin interfaceConnectionProperties
-
setTraceProtocol
public void setTraceProtocol(boolean flag) - Specified by:
setTraceProtocolin interfaceConnectionProperties- Parameters:
flag- The logProtocol to set.
-
setTransformedBitIsBoolean
public void setTransformedBitIsBoolean(boolean flag) - Specified by:
setTransformedBitIsBooleanin interfaceConnectionProperties
-
setTreatUtilDateAsTimestamp
public void setTreatUtilDateAsTimestamp(boolean flag) - Specified by:
setTreatUtilDateAsTimestampin interfaceConnectionProperties
-
setTrustCertificateKeyStorePassword
- Specified by:
setTrustCertificateKeyStorePasswordin interfaceConnectionProperties
-
setTrustCertificateKeyStoreType
- Specified by:
setTrustCertificateKeyStoreTypein interfaceConnectionProperties
-
setTrustCertificateKeyStoreUrl
- Specified by:
setTrustCertificateKeyStoreUrlin interfaceConnectionProperties
-
setUltraDevHack
public void setUltraDevHack(boolean flag) - Specified by:
setUltraDevHackin interfaceConnectionProperties
-
setUseAffectedRows
public void setUseAffectedRows(boolean flag) - Specified by:
setUseAffectedRowsin interfaceConnectionProperties
-
setUseBlobToStoreUTF8OutsideBMP
public void setUseBlobToStoreUTF8OutsideBMP(boolean flag) - Specified by:
setUseBlobToStoreUTF8OutsideBMPin interfaceConnectionProperties
-
setUseColumnNamesInFindColumn
public void setUseColumnNamesInFindColumn(boolean flag) - Specified by:
setUseColumnNamesInFindColumnin interfaceConnectionProperties
-
setUseCompression
public void setUseCompression(boolean property) - Specified by:
setUseCompressionin interfaceConnectionProperties- Parameters:
property-
-
setUseConfigs
- Specified by:
setUseConfigsin interfaceConnectionProperties
-
setUseCursorFetch
public void setUseCursorFetch(boolean flag) - Specified by:
setUseCursorFetchin interfaceConnectionProperties
-
setUseDirectRowUnpack
public void setUseDirectRowUnpack(boolean flag) - Specified by:
setUseDirectRowUnpackin interfaceConnectionProperties
-
setUseDynamicCharsetInfo
public void setUseDynamicCharsetInfo(boolean flag) - Specified by:
setUseDynamicCharsetInfoin interfaceConnectionProperties
-
setUseFastDateParsing
public void setUseFastDateParsing(boolean flag) - Specified by:
setUseFastDateParsingin interfaceConnectionProperties
-
setUseFastIntParsing
public void setUseFastIntParsing(boolean flag) - Specified by:
setUseFastIntParsingin interfaceConnectionProperties
-
setUseGmtMillisForDatetimes
public void setUseGmtMillisForDatetimes(boolean flag) - Specified by:
setUseGmtMillisForDatetimesin interfaceConnectionProperties
-
setUseHostsInPrivileges
public void setUseHostsInPrivileges(boolean property) - Specified by:
setUseHostsInPrivilegesin interfaceConnectionProperties- Parameters:
property-
-
setUseInformationSchema
public void setUseInformationSchema(boolean flag) - Specified by:
setUseInformationSchemain interfaceConnectionProperties
-
setUseJDBCCompliantTimezoneShift
public void setUseJDBCCompliantTimezoneShift(boolean flag) - Specified by:
setUseJDBCCompliantTimezoneShiftin interfaceConnectionProperties
-
setUseJvmCharsetConverters
public void setUseJvmCharsetConverters(boolean flag) - Specified by:
setUseJvmCharsetConvertersin interfaceConnectionProperties
-
setUseLegacyDatetimeCode
public void setUseLegacyDatetimeCode(boolean flag) - Specified by:
setUseLegacyDatetimeCodein interfaceConnectionProperties
-
setSendFractionalSeconds
public void setSendFractionalSeconds(boolean flag) - Specified by:
setSendFractionalSecondsin interfaceConnectionProperties
-
setUseLocalSessionState
public void setUseLocalSessionState(boolean flag) - Specified by:
setUseLocalSessionStatein interfaceConnectionProperties
-
setUseLocalTransactionState
public void setUseLocalTransactionState(boolean flag) - Specified by:
setUseLocalTransactionStatein interfaceConnectionProperties
-
setUseNanosForElapsedTime
public void setUseNanosForElapsedTime(boolean flag) - Specified by:
setUseNanosForElapsedTimein interfaceConnectionProperties
-
setUseOldAliasMetadataBehavior
public void setUseOldAliasMetadataBehavior(boolean flag) - Specified by:
setUseOldAliasMetadataBehaviorin interfaceConnectionProperties
-
setUseOldUTF8Behavior
public void setUseOldUTF8Behavior(boolean flag) - Specified by:
setUseOldUTF8Behaviorin interfaceConnectionProperties
-
setUseOnlyServerErrorMessages
public void setUseOnlyServerErrorMessages(boolean flag) - Specified by:
setUseOnlyServerErrorMessagesin interfaceConnectionProperties
-
setUseReadAheadInput
public void setUseReadAheadInput(boolean flag) - Specified by:
setUseReadAheadInputin interfaceConnectionProperties
-
setUseSSL
public void setUseSSL(boolean property) - Specified by:
setUseSSLin interfaceConnectionProperties- Parameters:
property-
-
setUseSSPSCompatibleTimezoneShift
public void setUseSSPSCompatibleTimezoneShift(boolean flag) - Specified by:
setUseSSPSCompatibleTimezoneShiftin interfaceConnectionProperties
-
setUseServerPrepStmts
public void setUseServerPrepStmts(boolean flag) - Specified by:
setUseServerPrepStmtsin interfaceConnectionProperties
-
setUseServerPreparedStmts
public void setUseServerPreparedStmts(boolean flag) - Specified by:
setUseServerPreparedStmtsin interfaceConnectionProperties- Parameters:
flag- The detectServerPreparedStmts to set.
-
setUseSqlStateCodes
public void setUseSqlStateCodes(boolean flag) - Specified by:
setUseSqlStateCodesin interfaceConnectionProperties- Parameters:
flag- The useSqlStateCodes to set.
-
setUseStreamLengthsInPrepStmts
public void setUseStreamLengthsInPrepStmts(boolean property) - Specified by:
setUseStreamLengthsInPrepStmtsin interfaceConnectionProperties- Parameters:
property-
-
setUseTimezone
public void setUseTimezone(boolean property) - Specified by:
setUseTimezonein interfaceConnectionProperties- Parameters:
property-
-
setUseUltraDevWorkAround
public void setUseUltraDevWorkAround(boolean property) - Specified by:
setUseUltraDevWorkAroundin interfaceConnectionProperties- Parameters:
property-
-
setUseUnbufferedInput
public void setUseUnbufferedInput(boolean flag) - Specified by:
setUseUnbufferedInputin interfaceConnectionProperties- Parameters:
flag- The useUnbufferedInput to set.
-
setUseUnicode
public void setUseUnicode(boolean flag) - Specified by:
setUseUnicodein interfaceConnectionProperties- Parameters:
flag- The useUnicode to set.
-
setUseUsageAdvisor
public void setUseUsageAdvisor(boolean useUsageAdvisorFlag) Description copied from interface:ConnectionPropertiesSets whether or not the driver advises of proper usage.- Specified by:
setUseUsageAdvisorin interfaceConnectionProperties- Parameters:
useUsageAdvisorFlag- whether or not the driver advises of proper usage.
-
setUtf8OutsideBmpExcludedColumnNamePattern
- Specified by:
setUtf8OutsideBmpExcludedColumnNamePatternin interfaceConnectionProperties
-
setUtf8OutsideBmpIncludedColumnNamePattern
- Specified by:
setUtf8OutsideBmpIncludedColumnNamePatternin interfaceConnectionProperties
-
setVerifyServerCertificate
public void setVerifyServerCertificate(boolean flag) - Specified by:
setVerifyServerCertificatein interfaceConnectionProperties
-
setYearIsDateType
public void setYearIsDateType(boolean flag) - Specified by:
setYearIsDateTypein interfaceConnectionProperties
-
setZeroDateTimeBehavior
- Specified by:
setZeroDateTimeBehaviorin interfaceConnectionProperties
-
useUnbufferedInput
public boolean useUnbufferedInput()- Specified by:
useUnbufferedInputin interfaceConnectionProperties- Returns:
- Returns the useUnbufferedInput.
-
generateConnectionCommentBlock
- Specified by:
generateConnectionCommentBlockin interfaceMySQLConnection
-
getActiveStatementCount
public int getActiveStatementCount()Description copied from interface:ConnectionReturns the number of statements active on this connection, which haven't been .close()d.- Specified by:
getActiveStatementCountin interfaceConnection- Specified by:
getActiveStatementCountin interfaceMySQLConnection
-
getAutoCommit
- Specified by:
getAutoCommitin interfaceConnection- Throws:
SQLException
-
getAutoIncrementIncrement
public int getAutoIncrementIncrement()Description copied from interface:ConnectionReturns the -session- value of 'auto_increment_increment' from the server if it exists, or '1' if not.- Specified by:
getAutoIncrementIncrementin interfaceConnection- Specified by:
getAutoIncrementIncrementin interfaceMySQLConnection
-
getCachedMetaData
- Specified by:
getCachedMetaDatain interfaceMySQLConnection
-
getCalendarInstanceForSessionOrNew
- Specified by:
getCalendarInstanceForSessionOrNewin interfaceMySQLConnection
-
getCancelTimer
- Specified by:
getCancelTimerin interfaceMySQLConnection
-
getCatalog
- Specified by:
getCatalogin interfaceConnection- Throws:
SQLException
-
getCharacterSetMetadata
- Specified by:
getCharacterSetMetadatain interfaceMySQLConnection
-
getCharsetConverter
- Specified by:
getCharsetConverterin interfaceMySQLConnection- Throws:
SQLException
-
getCharsetNameForIndex
Deprecated.replaced bygetEncodingForIndex(int charsetIndex)- Specified by:
getCharsetNameForIndexin interfaceMySQLConnection- Throws:
SQLException
-
getEncodingForIndex
- Specified by:
getEncodingForIndexin interfaceMySQLConnection- Throws:
SQLException
-
getDefaultTimeZone
- Specified by:
getDefaultTimeZonein interfaceMySQLConnection
-
getErrorMessageEncoding
- Specified by:
getErrorMessageEncodingin interfaceMySQLConnection
-
getExceptionInterceptor
- Specified by:
getExceptionInterceptorin interfaceConnectionProperties- Specified by:
getExceptionInterceptorin interfaceMySQLConnection
-
getHoldability
- Specified by:
getHoldabilityin interfaceConnection- Throws:
SQLException
-
getHost
- Specified by:
getHostin interfaceConnection- Specified by:
getHostin interfaceMySQLConnection
-
getHostPortPair
- Specified by:
getHostPortPairin interfaceMySQLConnection
-
getId
public long getId()- Specified by:
getIdin interfaceMySQLConnection
-
getIdleFor
public long getIdleFor()Description copied from interface:ConnectionReports how long this connection has been idle. This time (reported in milliseconds) is updated once a query has completed.- Specified by:
getIdleForin interfaceConnection- Specified by:
getIdleForin interfaceMySQLConnection- Returns:
- number of ms that this connection has been idle, 0 if the driver is busy retrieving results.
-
getIO
- Specified by:
getIOin interfaceMySQLConnection- Throws:
SQLException
-
getLoadBalanceSafeProxy
Deprecated.replaced bygetMultiHostSafeProxy()- Specified by:
getLoadBalanceSafeProxyin interfaceMySQLConnection
-
getMultiHostSafeProxy
- Specified by:
getMultiHostSafeProxyin interfaceMySQLConnection
-
getLog
Description copied from interface:ConnectionReturns the log mechanism that should be used to log information from/for this Connection.- Specified by:
getLogin interfaceConnection- Specified by:
getLogin interfaceMySQLConnection- Returns:
- the Log instance to use for logging messages.
- Throws:
SQLException- if an error occurs
-
getMaxBytesPerChar
- Specified by:
getMaxBytesPerCharin interfaceMySQLConnection- Throws:
SQLException
-
getMaxBytesPerChar
- Specified by:
getMaxBytesPerCharin interfaceMySQLConnection- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceConnection- Throws:
SQLException
-
getMetadataSafeStatement
- Specified by:
getMetadataSafeStatementin interfaceMySQLConnection- Throws:
SQLException
-
getNetBufferLength
public int getNetBufferLength()- Specified by:
getNetBufferLengthin interfaceMySQLConnection
-
getProperties
Description copied from interface:ConnectionReturns the parsed and passed in properties for this connection.- Specified by:
getPropertiesin interfaceConnection- Specified by:
getPropertiesin interfaceMySQLConnection
-
getRequiresEscapingEncoder
public boolean getRequiresEscapingEncoder()- Specified by:
getRequiresEscapingEncoderin interfaceMySQLConnection
-
getServerCharacterEncoding
Deprecated.replaced bygetServerCharset()Description copied from interface:ConnectionReturns the server's character set- Specified by:
getServerCharacterEncodingin interfaceConnection- Returns:
- the server's character set.
-
getServerCharset
Description copied from interface:ConnectionReturns the server's character set- Specified by:
getServerCharsetin interfaceConnection- Specified by:
getServerCharsetin interfaceMySQLConnection- Returns:
- the server's character set.
-
getServerMajorVersion
public int getServerMajorVersion()- Specified by:
getServerMajorVersionin interfaceMySQLConnection
-
getServerMinorVersion
public int getServerMinorVersion()- Specified by:
getServerMinorVersionin interfaceMySQLConnection
-
getServerSubMinorVersion
public int getServerSubMinorVersion()- Specified by:
getServerSubMinorVersionin interfaceMySQLConnection
-
getServerTimezoneTZ
Description copied from interface:ConnectionReturns the TimeZone that represents the configured timezone for the server.- Specified by:
getServerTimezoneTZin interfaceConnection- Specified by:
getServerTimezoneTZin interfaceMySQLConnection
-
getServerVariable
- Specified by:
getServerVariablein interfaceMySQLConnection
-
getServerVersion
- Specified by:
getServerVersionin interfaceMySQLConnection
-
getSessionLockedCalendar
- Specified by:
getSessionLockedCalendarin interfaceMySQLConnection
-
getStatementComment
Description copied from interface:ConnectionReturns the comment that will be prepended to all statements sent to the server.- Specified by:
getStatementCommentin interfaceConnection- Specified by:
getStatementCommentin interfaceMySQLConnection- Returns:
- the comment that will be prepended to all statements sent to the server.
-
getStatementInterceptorsInstances
- Specified by:
getStatementInterceptorsInstancesin interfaceMySQLConnection
-
getTransactionIsolation
- Specified by:
getTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getTypeMap
- Specified by:
getTypeMapin interfaceConnection- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceMySQLConnection
-
getUser
- Specified by:
getUserin interfaceMySQLConnection
-
getUtcCalendar
- Specified by:
getUtcCalendarin interfaceMySQLConnection
-
getWarnings
- Specified by:
getWarningsin interfaceConnection- Throws:
SQLException
-
hasSameProperties
Description copied from interface:ConnectionDoes this connection have the same properties as another?- Specified by:
hasSamePropertiesin interfaceConnection
-
hasTriedMaster
Deprecated.Description copied from interface:ConnectionHas this connection tried to execute a query on the "master" server (first host in a multiple host list).- Specified by:
hasTriedMasterin interfaceConnection
-
incrementNumberOfPreparedExecutes
public void incrementNumberOfPreparedExecutes()- Specified by:
incrementNumberOfPreparedExecutesin interfaceMySQLConnection
-
incrementNumberOfPrepares
public void incrementNumberOfPrepares()- Specified by:
incrementNumberOfPreparesin interfaceMySQLConnection
-
incrementNumberOfResultSetsCreated
public void incrementNumberOfResultSetsCreated()- Specified by:
incrementNumberOfResultSetsCreatedin interfaceMySQLConnection
-
initializeExtension
- Specified by:
initializeExtensionin interfaceConnection- Throws:
SQLException
-
initializeResultsMetadataFromCache
public void initializeResultsMetadataFromCache(String sql, CachedResultSetMetaData cachedMetaData, ResultSetInternalMethods resultSet) throws SQLException - Specified by:
initializeResultsMetadataFromCachein interfaceMySQLConnection- Throws:
SQLException
-
initializeSafeStatementInterceptors
- Specified by:
initializeSafeStatementInterceptorsin interfaceMySQLConnection- Throws:
SQLException
-
isAbonormallyLongQuery
public boolean isAbonormallyLongQuery(long millisOrNanos) Description copied from interface:MySQLConnectionUpdate statistics that allows the driver to determine if a query is slow enough to be logged, and return the estimation result for millisOrNanos value.Used in case autoSlowLog=true.
- Specified by:
isAbonormallyLongQueryin interfaceConnection- Specified by:
isAbonormallyLongQueryin interfaceMySQLConnection- Parameters:
millisOrNanos- query execution time- Returns:
- true if millisOrNanos is outside the 99th percentile?
-
isClientTzUTC
public boolean isClientTzUTC()- Specified by:
isClientTzUTCin interfaceMySQLConnection
-
isCursorFetchEnabled
- Specified by:
isCursorFetchEnabledin interfaceMySQLConnection- Throws:
SQLException
-
isInGlobalTx
public boolean isInGlobalTx()Description copied from interface:ConnectionIs this connection currently a participant in an XA transaction?- Specified by:
isInGlobalTxin interfaceConnection
-
isMasterConnection
public boolean isMasterConnection()Description copied from interface:ConnectionIs this connection connected to the first host in the list if there is a list of servers in the URL?- Specified by:
isMasterConnectionin interfaceConnection- Returns:
- true if this connection is connected to the first in the list.
-
isNoBackslashEscapesSet
public boolean isNoBackslashEscapesSet()Description copied from interface:ConnectionIs the server in a sql_mode that doesn't allow us to use \\ to escape things?- Specified by:
isNoBackslashEscapesSetin interfaceConnection- Returns:
- Returns the noBackslashEscapes.
-
isReadInfoMsgEnabled
public boolean isReadInfoMsgEnabled()- Specified by:
isReadInfoMsgEnabledin interfaceMySQLConnection
-
isReadOnly
- Specified by:
isReadOnlyin interfaceConnection- Specified by:
isReadOnlyin interfaceMySQLConnection- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceMySQLConnection- Throws:
SQLException
-
isRunningOnJDK13
public boolean isRunningOnJDK13()- Specified by:
isRunningOnJDK13in interfaceMySQLConnection
-
isSameResource
Description copied from interface:ConnectionDoes this connection have the same resource name as the given connection (for XA)?- Specified by:
isSameResourcein interfaceConnection- Parameters:
otherConnection-
-
isServerTzUTC
public boolean isServerTzUTC()- Specified by:
isServerTzUTCin interfaceMySQLConnection
-
lowerCaseTableNames
public boolean lowerCaseTableNames()Description copied from interface:ConnectionIs the server configured to use lower-case table names only?- Specified by:
lowerCaseTableNamesin interfaceConnection- Specified by:
lowerCaseTableNamesin interfaceMySQLConnection- Returns:
- true if lower_case_table_names is 'on'
-
nativeSQL
- Specified by:
nativeSQLin interfaceConnection- Throws:
SQLException
-
parserKnowsUnicode
public boolean parserKnowsUnicode()Description copied from interface:ConnectionDoes the server this connection is connected to support unicode?- Specified by:
parserKnowsUnicodein interfaceConnection
-
ping
Description copied from interface:ConnectionDetect if the connection is still good by sending a ping command to the server.- Specified by:
pingin interfaceConnection- Throws:
SQLException- if the ping fails
-
pingInternal
- Specified by:
pingInternalin interfaceMySQLConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
realClose
public void realClose(boolean calledExplicitly, boolean issueRollback, boolean skipLocalTeardown, Throwable reason) throws SQLException - Specified by:
realClosein interfaceMySQLConnection- Throws:
SQLException
-
recachePreparedStatement
- Specified by:
recachePreparedStatementin interfaceMySQLConnection- Throws:
SQLException
-
decachePreparedStatement
- Specified by:
decachePreparedStatementin interfaceMySQLConnection- Throws:
SQLException
-
registerQueryExecutionTime
public void registerQueryExecutionTime(long queryTimeMs) - Specified by:
registerQueryExecutionTimein interfaceMySQLConnection
-
registerStatement
- Specified by:
registerStatementin interfaceMySQLConnection
-
releaseSavepoint
- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
reportNumberOfTablesAccessed
public void reportNumberOfTablesAccessed(int numTablesAccessed) - Specified by:
reportNumberOfTablesAccessedin interfaceMySQLConnection
-
reportQueryTime
public void reportQueryTime(long millisOrNanos) - Specified by:
reportQueryTimein interfaceConnection
-
resetServerState
Description copied from interface:ConnectionResets the server-side state of this connection. Doesn't work for MySQL versions older than 4.0.6 or if isParanoid() is set (it will become a no-op in these cases). Usually only used from connection pooling code.- Specified by:
resetServerStatein interfaceConnection- Throws:
SQLException- if the operation fails while resetting server state.
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
serverPrepareStatement
public PreparedStatement serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverPrepareStatement
public PreparedStatement serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverPrepareStatement
public PreparedStatement serverPrepareStatement(String sql, int autoGenKeyIndex) throws SQLException Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverPrepareStatement
public PreparedStatement serverPrepareStatement(String sql, int[] autoGenKeyIndexes) throws SQLException Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverPrepareStatement
public PreparedStatement serverPrepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverPrepareStatement
Description copied from interface:ConnectionPrepares a statement on the server (irregardless of the configuration property 'useServerPrepStmts') with the same semantics as the java.sql.Connection.prepareStatement() method with the same argument types.- Specified by:
serverPrepareStatementin interfaceConnection- Throws:
SQLException- See Also:
-
serverSupportsConvertFn
- Specified by:
serverSupportsConvertFnin interfaceMySQLConnection- Throws:
SQLException
-
setAutoCommit
- Specified by:
setAutoCommitin interfaceConnection- Throws:
SQLException
-
setCatalog
- Specified by:
setCatalogin interfaceConnection- Throws:
SQLException
-
setFailedOver
public void setFailedOver(boolean flag) - Specified by:
setFailedOverin interfaceConnection
-
setHoldability
- Specified by:
setHoldabilityin interfaceConnection- Throws:
SQLException
-
setInGlobalTx
public void setInGlobalTx(boolean flag) Description copied from interface:ConnectionSet the state of being in a global (XA) transaction.- Specified by:
setInGlobalTxin interfaceConnection- Parameters:
flag-
-
setPreferSlaveDuringFailover
Deprecated.- Specified by:
setPreferSlaveDuringFailoverin interfaceConnection
-
setProxy
- Specified by:
setProxyin interfaceConnection- Specified by:
setProxyin interfaceMySQLConnection
-
setReadInfoMsgEnabled
public void setReadInfoMsgEnabled(boolean flag) - Specified by:
setReadInfoMsgEnabledin interfaceMySQLConnection
-
setReadOnly
- Specified by:
setReadOnlyin interfaceConnection- Throws:
SQLException
-
setReadOnlyInternal
- Specified by:
setReadOnlyInternalin interfaceMySQLConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setStatementComment
Description copied from interface:ConnectionSets the comment that will be prepended to all statements sent to the server. Do not use slash-star or star-slash tokens in the comment as these will be added by the driver itself.- Specified by:
setStatementCommentin interfaceConnection- Parameters:
comment- the comment that will be prepended to all statements sent to the server.
-
setTransactionIsolation
- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLException
-
shutdownServer
Description copied from interface:ConnectionUsed by MiniAdmin to shutdown a MySQL server- Specified by:
shutdownServerin interfaceConnection- Specified by:
shutdownServerin interfaceMySQLConnection- Throws:
SQLException- if the command can not be issued.
-
storesLowerCaseTableName
public boolean storesLowerCaseTableName()- Specified by:
storesLowerCaseTableNamein interfaceMySQLConnection
-
supportsIsolationLevel
public boolean supportsIsolationLevel()Description copied from interface:ConnectionDoes the server this connection is connected to support isolation levels?- Specified by:
supportsIsolationLevelin interfaceConnection
-
supportsQuotedIdentifiers
public boolean supportsQuotedIdentifiers()Description copied from interface:ConnectionDoes the server this connection is connected to support quoted identifiers?- Specified by:
supportsQuotedIdentifiersin interfaceConnection
-
supportsTransactions
public boolean supportsTransactions()Description copied from interface:ConnectionDoes the server this connection is connected to support transactions?- Specified by:
supportsTransactionsin interfaceConnection
-
throwConnectionClosedException
- Specified by:
throwConnectionClosedExceptionin interfaceMySQLConnection- Throws:
SQLException
-
transactionBegun
- Specified by:
transactionBegunin interfaceMySQLConnection- Throws:
SQLException
-
transactionCompleted
- Specified by:
transactionCompletedin interfaceMySQLConnection- Throws:
SQLException
-
unregisterStatement
- Specified by:
unregisterStatementin interfaceMySQLConnection
-
unSafeStatementInterceptors
- Specified by:
unSafeStatementInterceptorsin interfaceMySQLConnection- Throws:
SQLException
-
useAnsiQuotedIdentifiers
public boolean useAnsiQuotedIdentifiers()- Specified by:
useAnsiQuotedIdentifiersin interfaceMySQLConnection
-
versionMeetsMinimum
Description copied from interface:ConnectionDoes the server this connection is connected to meet or exceed the given version?- Specified by:
versionMeetsMinimumin interfaceConnection- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceConnection- Throws:
SQLException
-
getHoldResultsOpenOverStatementClose
public boolean getHoldResultsOpenOverStatementClose()- Specified by:
getHoldResultsOpenOverStatementClosein interfaceConnectionProperties- Returns:
- Returns the holdResultsOpenOverStatementClose.
-
getLoadBalanceConnectionGroup
- Specified by:
getLoadBalanceConnectionGroupin interfaceConnectionProperties
-
getLoadBalanceEnableJMX
public boolean getLoadBalanceEnableJMX()- Specified by:
getLoadBalanceEnableJMXin interfaceConnectionProperties
-
getLoadBalanceExceptionChecker
- Specified by:
getLoadBalanceExceptionCheckerin interfaceConnectionProperties
-
getLoadBalanceSQLExceptionSubclassFailover
- Specified by:
getLoadBalanceSQLExceptionSubclassFailoverin interfaceConnectionProperties
-
getLoadBalanceSQLStateFailover
- Specified by:
getLoadBalanceSQLStateFailoverin interfaceConnectionProperties
-
setLoadBalanceConnectionGroup
- Specified by:
setLoadBalanceConnectionGroupin interfaceConnectionProperties
-
setLoadBalanceEnableJMX
public void setLoadBalanceEnableJMX(boolean loadBalanceEnableJMX) - Specified by:
setLoadBalanceEnableJMXin interfaceConnectionProperties
-
setLoadBalanceExceptionChecker
- Specified by:
setLoadBalanceExceptionCheckerin interfaceConnectionProperties
-
setLoadBalanceSQLExceptionSubclassFailover
public void setLoadBalanceSQLExceptionSubclassFailover(String loadBalanceSQLExceptionSubclassFailover) - Specified by:
setLoadBalanceSQLExceptionSubclassFailoverin interfaceConnectionProperties
-
setLoadBalanceSQLStateFailover
- Specified by:
setLoadBalanceSQLStateFailoverin interfaceConnectionProperties
-
setLoadBalanceHostRemovalGracePeriod
public void setLoadBalanceHostRemovalGracePeriod(int loadBalanceHostRemovalGracePeriod) throws SQLException - Specified by:
setLoadBalanceHostRemovalGracePeriodin interfaceConnectionProperties- Throws:
SQLException
-
getLoadBalanceHostRemovalGracePeriod
public int getLoadBalanceHostRemovalGracePeriod()- Specified by:
getLoadBalanceHostRemovalGracePeriodin interfaceConnectionProperties
-
isProxySet
public boolean isProxySet()- Specified by:
isProxySetin interfaceMySQLConnection
-
getLoadBalanceAutoCommitStatementRegex
- Specified by:
getLoadBalanceAutoCommitStatementRegexin interfaceConnectionProperties
-
getLoadBalanceAutoCommitStatementThreshold
public int getLoadBalanceAutoCommitStatementThreshold()- Specified by:
getLoadBalanceAutoCommitStatementThresholdin interfaceConnectionProperties
-
setLoadBalanceAutoCommitStatementRegex
- Specified by:
setLoadBalanceAutoCommitStatementRegexin interfaceConnectionProperties
-
setLoadBalanceAutoCommitStatementThreshold
public void setLoadBalanceAutoCommitStatementThreshold(int loadBalanceAutoCommitStatementThreshold) throws SQLException - Specified by:
setLoadBalanceAutoCommitStatementThresholdin interfaceConnectionProperties- Throws:
SQLException
-
getIncludeThreadDumpInDeadlockExceptions
public boolean getIncludeThreadDumpInDeadlockExceptions()- Specified by:
getIncludeThreadDumpInDeadlockExceptionsin interfaceConnectionProperties
-
setIncludeThreadDumpInDeadlockExceptions
public void setIncludeThreadDumpInDeadlockExceptions(boolean flag) - Specified by:
setIncludeThreadDumpInDeadlockExceptionsin interfaceConnectionProperties
-
setTypeMap
- Specified by:
setTypeMapin interfaceConnection- Throws:
SQLException
-
getIncludeThreadNamesAsStatementComment
public boolean getIncludeThreadNamesAsStatementComment()- Specified by:
getIncludeThreadNamesAsStatementCommentin interfaceConnectionProperties
-
setIncludeThreadNamesAsStatementComment
public void setIncludeThreadNamesAsStatementComment(boolean flag) - Specified by:
setIncludeThreadNamesAsStatementCommentin interfaceConnectionProperties
-
isServerLocal
Description copied from interface:ConnectionIs the server this connection is connected to "local" (i.e. same host) as the application?- Specified by:
isServerLocalin interfaceConnection- Throws:
SQLException
-
setAuthenticationPlugins
- Specified by:
setAuthenticationPluginsin interfaceConnectionProperties
-
getAuthenticationPlugins
- Specified by:
getAuthenticationPluginsin interfaceConnectionProperties
-
setDisabledAuthenticationPlugins
- Specified by:
setDisabledAuthenticationPluginsin interfaceConnectionProperties
-
getDisabledAuthenticationPlugins
- Specified by:
getDisabledAuthenticationPluginsin interfaceConnectionProperties
-
setDefaultAuthenticationPlugin
- Specified by:
setDefaultAuthenticationPluginin interfaceConnectionProperties
-
getDefaultAuthenticationPlugin
- Specified by:
getDefaultAuthenticationPluginin interfaceConnectionProperties
-
setParseInfoCacheFactory
- Specified by:
setParseInfoCacheFactoryin interfaceConnectionProperties
-
getParseInfoCacheFactory
- Specified by:
getParseInfoCacheFactoryin interfaceConnectionProperties
-
setSchema
- Specified by:
setSchemain interfaceConnection- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
getSchema
- Specified by:
getSchemain interfaceConnection- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
abort
- Specified by:
abortin interfaceConnection- Specified by:
abortin interfaceConnection- Throws:
SQLException
-
setNetworkTimeout
- Specified by:
setNetworkTimeoutin interfaceConnection- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeoutin interfaceConnection- Specified by:
getNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
setServerConfigCacheFactory
- Specified by:
setServerConfigCacheFactoryin interfaceConnectionProperties
-
getServerConfigCacheFactory
- Specified by:
getServerConfigCacheFactoryin interfaceConnectionProperties
-
setDisconnectOnExpiredPasswords
public void setDisconnectOnExpiredPasswords(boolean disconnectOnExpiredPasswords) - Specified by:
setDisconnectOnExpiredPasswordsin interfaceConnectionProperties
-
getDisconnectOnExpiredPasswords
public boolean getDisconnectOnExpiredPasswords()- Specified by:
getDisconnectOnExpiredPasswordsin interfaceConnectionProperties
-
setGetProceduresReturnsFunctions
public void setGetProceduresReturnsFunctions(boolean getProcedureReturnsFunctions) - Specified by:
setGetProceduresReturnsFunctionsin interfaceConnectionProperties
-
getGetProceduresReturnsFunctions
public boolean getGetProceduresReturnsFunctions()- Specified by:
getGetProceduresReturnsFunctionsin interfaceConnectionProperties
-
getConnectionMutex
- Specified by:
getConnectionMutexin interfaceConnection
-
getConnectionAttributes
- Specified by:
getConnectionAttributesin interfaceConnectionProperties- Specified by:
getConnectionAttributesin interfaceMySQLConnection- Throws:
SQLException
-
getAllowMasterDownConnections
public boolean getAllowMasterDownConnections()- Specified by:
getAllowMasterDownConnectionsin interfaceConnectionProperties
-
setAllowMasterDownConnections
public void setAllowMasterDownConnections(boolean connectIfMasterDown) - Specified by:
setAllowMasterDownConnectionsin interfaceConnectionProperties
-
getAllowSlaveDownConnections
public boolean getAllowSlaveDownConnections()- Specified by:
getAllowSlaveDownConnectionsin interfaceConnectionProperties
-
setAllowSlaveDownConnections
public void setAllowSlaveDownConnections(boolean connectIfSlaveDown) - Specified by:
setAllowSlaveDownConnectionsin interfaceConnectionProperties
-
getReadFromMasterWhenNoSlaves
public boolean getReadFromMasterWhenNoSlaves()- Specified by:
getReadFromMasterWhenNoSlavesin interfaceConnectionProperties
-
setReadFromMasterWhenNoSlaves
public void setReadFromMasterWhenNoSlaves(boolean useMasterIfSlavesDown) - Specified by:
setReadFromMasterWhenNoSlavesin interfaceConnectionProperties
-
getReplicationEnableJMX
public boolean getReplicationEnableJMX()- Specified by:
getReplicationEnableJMXin interfaceConnectionProperties
-
setReplicationEnableJMX
public void setReplicationEnableJMX(boolean replicationEnableJMX) - Specified by:
setReplicationEnableJMXin interfaceConnectionProperties
-
setDetectCustomCollations
public void setDetectCustomCollations(boolean detectCustomCollations) - Specified by:
setDetectCustomCollationsin interfaceConnectionProperties
-
getDetectCustomCollations
public boolean getDetectCustomCollations()- Specified by:
getDetectCustomCollationsin interfaceConnectionProperties
-
getSessionMaxRows
public int getSessionMaxRows()- Specified by:
getSessionMaxRowsin interfaceConnection
-
setSessionMaxRows
- Specified by:
setSessionMaxRowsin interfaceConnection- Throws:
SQLException
-
getProfilerEventHandlerInstance
public com.mysql.jdbc.profiler.ProfilerEventHandler getProfilerEventHandlerInstance()- Specified by:
getProfilerEventHandlerInstancein interfaceMySQLConnection
-
setProfilerEventHandlerInstance
public void setProfilerEventHandlerInstance(com.mysql.jdbc.profiler.ProfilerEventHandler h) - Specified by:
setProfilerEventHandlerInstancein interfaceMySQLConnection
-
getServerRSAPublicKeyFile
- Specified by:
getServerRSAPublicKeyFilein interfaceConnectionProperties
-
setServerRSAPublicKeyFile
- Specified by:
setServerRSAPublicKeyFilein interfaceConnectionProperties- Throws:
SQLException
-
getAllowPublicKeyRetrieval
public boolean getAllowPublicKeyRetrieval()- Specified by:
getAllowPublicKeyRetrievalin interfaceConnectionProperties
-
setAllowPublicKeyRetrieval
- Specified by:
setAllowPublicKeyRetrievalin interfaceConnectionProperties- Throws:
SQLException
-
setDontCheckOnDuplicateKeyUpdateInSQL
public void setDontCheckOnDuplicateKeyUpdateInSQL(boolean dontCheckOnDuplicateKeyUpdateInSQL) - Specified by:
setDontCheckOnDuplicateKeyUpdateInSQLin interfaceConnectionProperties
-
getDontCheckOnDuplicateKeyUpdateInSQL
public boolean getDontCheckOnDuplicateKeyUpdateInSQL()- Specified by:
getDontCheckOnDuplicateKeyUpdateInSQLin interfaceConnectionProperties
-
setSocksProxyHost
- Specified by:
setSocksProxyHostin interfaceConnectionProperties
-
getSocksProxyHost
- Specified by:
getSocksProxyHostin interfaceConnectionProperties
-
setSocksProxyPort
- Specified by:
setSocksProxyPortin interfaceConnectionProperties- Throws:
SQLException
-
getSocksProxyPort
public int getSocksProxyPort()- Specified by:
getSocksProxyPortin interfaceConnectionProperties
-
getReadOnlyPropagatesToServer
public boolean getReadOnlyPropagatesToServer()- Specified by:
getReadOnlyPropagatesToServerin interfaceConnectionProperties
-
setReadOnlyPropagatesToServer
public void setReadOnlyPropagatesToServer(boolean flag) - Specified by:
setReadOnlyPropagatesToServerin interfaceConnectionProperties
-
getEnabledSSLCipherSuites
- Specified by:
getEnabledSSLCipherSuitesin interfaceConnectionProperties
-
setEnabledSSLCipherSuites
- Specified by:
setEnabledSSLCipherSuitesin interfaceConnectionProperties
-
getEnabledTLSProtocols
- Specified by:
getEnabledTLSProtocolsin interfaceConnectionProperties
-
setEnabledTLSProtocols
- Specified by:
setEnabledTLSProtocolsin interfaceConnectionProperties
-
getEnableEscapeProcessing
public boolean getEnableEscapeProcessing()- Specified by:
getEnableEscapeProcessingin interfaceConnectionProperties
-
setEnableEscapeProcessing
public void setEnableEscapeProcessing(boolean flag) - Specified by:
setEnableEscapeProcessingin interfaceConnectionProperties
-
isUseSSLExplicit
public boolean isUseSSLExplicit()- Specified by:
isUseSSLExplicitin interfaceConnectionProperties
-
isServerTruncatesFracSecs
public boolean isServerTruncatesFracSecs()- Specified by:
isServerTruncatesFracSecsin interfaceMySQLConnection
-
getQueryTimingUnits
- Specified by:
getQueryTimingUnitsin interfaceMySQLConnection
-
getEncodingForIndex(int charsetIndex)