|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.ReplicationConnection
public class ReplicationConnection
Connection that opens two connections, one two a replication master, and another to one or more slaves, and decides to use master when the connection is not read-only, and use slave(s) when the connection is read-only.
Field Summary | |
---|---|
protected Connection |
currentConnection
|
protected Connection |
masterConnection
|
protected Connection |
slavesConnection
|
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
protected |
ReplicationConnection()
|
|
ReplicationConnection(java.util.Properties masterProperties,
java.util.Properties slaveProperties)
|
Method Summary | |
---|---|
void |
changeUser(java.lang.String userName,
java.lang.String newPassword)
Changes the user on this connection by performing a re-authentication. |
void |
clearHasTriedMaster()
|
void |
clearWarnings()
|
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.String sql)
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. |
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
clientPrepareStatement(java.lang.String sql,
java.lang.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. |
void |
close()
|
void |
commit()
|
java.sql.Statement |
createStatement()
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
void |
doPing()
|
java.lang.String |
exposeAsXml()
Returns a description of the connection properties as an XML document. |
int |
getActiveStatementCount()
Returns the number of statements active on this connection, which haven't been .close()d. |
boolean |
getAllowLoadLocalInfile()
DOCUMENT ME! |
boolean |
getAllowMultiQueries()
DOCUMENT ME! |
boolean |
getAllowNanAndInf()
|
boolean |
getAllowUrlInLocalInfile()
|
boolean |
getAlwaysSendSetIsolation()
|
boolean |
getAutoClosePStmtStreams()
|
boolean |
getAutoCommit()
|
boolean |
getAutoDeserialize()
|
boolean |
getAutoGenerateTestcaseScript()
|
int |
getAutoIncrementIncrement()
Returns the -session- value of 'auto_increment_increment' from the server if it exists, or '1' if not. |
boolean |
getAutoReconnectForPools()
DOCUMENT ME! |
boolean |
getAutoSlowLog()
|
boolean |
getBlobsAreStrings()
|
int |
getBlobSendChunkSize()
|
boolean |
getCacheCallableStatements()
DOCUMENT ME! |
boolean |
getCacheCallableStmts()
|
boolean |
getCachePreparedStatements()
DOCUMENT ME! |
boolean |
getCachePrepStmts()
|
boolean |
getCacheResultSetMetadata()
DOCUMENT ME! |
boolean |
getCacheServerConfiguration()
|
int |
getCallableStatementCacheSize()
DOCUMENT ME! |
int |
getCallableStmtCacheSize()
|
boolean |
getCapitalizeTypeNames()
DOCUMENT ME! |
java.lang.String |
getCatalog()
|
java.lang.String |
getCharacterSetResults()
DOCUMENT ME! |
java.lang.String |
getClientCertificateKeyStorePassword()
|
java.lang.String |
getClientCertificateKeyStoreType()
|
java.lang.String |
getClientCertificateKeyStoreUrl()
|
java.lang.String |
getClientInfoProvider()
|
boolean |
getClobberStreamingResults()
DOCUMENT ME! |
java.lang.String |
getClobCharacterEncoding()
|
boolean |
getCompensateOnDuplicateKeyUpdateCounts()
|
java.lang.String |
getConnectionCollation()
DOCUMENT ME! |
java.lang.String |
getConnectionLifecycleInterceptors()
|
int |
getConnectTimeout()
DOCUMENT ME! |
boolean |
getContinueBatchOnError()
DOCUMENT ME! |
boolean |
getCreateDatabaseIfNotExist()
|
Connection |
getCurrentConnection()
|
int |
getDefaultFetchSize()
|
boolean |
getDontTrackOpenResources()
|
boolean |
getDumpMetadataOnColumnNotFound()
|
boolean |
getDumpQueriesOnException()
DOCUMENT ME! |
boolean |
getDynamicCalendars()
|
boolean |
getElideSetAutoCommits()
DOCUMENT ME! |
boolean |
getEmptyStringsConvertToZero()
|
boolean |
getEmulateLocators()
DOCUMENT ME! |
boolean |
getEmulateUnsupportedPstmts()
|
boolean |
getEnablePacketDebug()
DOCUMENT ME! |
boolean |
getEnableQueryTimeouts()
|
java.lang.String |
getEncoding()
DOCUMENT ME! |
ExceptionInterceptor |
getExceptionInterceptor()
|
java.lang.String |
getExceptionInterceptors()
|
boolean |
getExplainSlowQueries()
DOCUMENT ME! |
boolean |
getFailOverReadOnly()
DOCUMENT ME! |
boolean |
getFunctionsNeverReturnBlobs()
|
boolean |
getGatherPerfMetrics()
|
boolean |
getGatherPerformanceMetrics()
DOCUMENT ME! |
boolean |
getGenerateSimpleParameterMetadata()
|
int |
getHoldability()
|
boolean |
getHoldResultsOpenOverStatementClose()
|
long |
getIdleFor()
Reports how long this connection has been idle. |
boolean |
getIgnoreNonTxTables()
DOCUMENT ME! |
boolean |
getIncludeInnodbStatusInDeadlockExceptions()
|
int |
getInitialTimeout()
DOCUMENT ME! |
boolean |
getInteractiveClient()
DOCUMENT ME! |
boolean |
getIsInteractiveClient()
DOCUMENT ME! |
boolean |
getJdbcCompliantTruncation()
DOCUMENT ME! |
boolean |
getJdbcCompliantTruncationForReads()
|
java.lang.String |
getLargeRowSizeThreshold()
|
int |
getLoadBalanceBlacklistTimeout()
|
java.lang.String |
getLoadBalanceStrategy()
|
java.lang.String |
getLocalSocketAddress()
|
int |
getLocatorFetchBufferSize()
|
com.mysql.jdbc.log.Log |
getLog()
Returns the log mechanism that should be used to log information from/for this Connection. |
java.lang.String |
getLogger()
DOCUMENT ME! |
java.lang.String |
getLoggerClassName()
DOCUMENT ME! |
boolean |
getLogSlowQueries()
DOCUMENT ME! |
boolean |
getLogXaCommands()
|
boolean |
getMaintainTimeStats()
|
Connection |
getMasterConnection()
|
int |
getMaxQuerySizeToLog()
DOCUMENT ME! |
int |
getMaxReconnects()
DOCUMENT ME! |
int |
getMaxRows()
DOCUMENT ME! |
java.sql.DatabaseMetaData |
getMetaData()
|
int |
getMetadataCacheSize()
Returns the number of queries that metadata can be cached if caching is enabled. |
int |
getNetTimeoutForStreamingResults()
|
boolean |
getNoAccessToProcedureBodies()
|
boolean |
getNoDatetimeStringSync()
|
boolean |
getNoTimezoneConversionForTimeType()
|
boolean |
getNullCatalogMeansCurrent()
|
boolean |
getNullNamePatternMatchesAll()
|
boolean |
getOverrideSupportsIntegrityEnhancementFacility()
|
int |
getPacketDebugBufferSize()
DOCUMENT ME! |
boolean |
getPadCharsWithSpace()
|
boolean |
getParanoid()
DOCUMENT ME! |
java.lang.String |
getPasswordCharacterEncoding()
|
boolean |
getPedantic()
DOCUMENT ME! |
boolean |
getPinGlobalTxToPhysicalConnection()
|
boolean |
getPopulateInsertRowWithDefaultValues()
|
int |
getPreparedStatementCacheSize()
DOCUMENT ME! |
int |
getPreparedStatementCacheSqlLimit()
DOCUMENT ME! |
int |
getPrepStmtCacheSize()
|
int |
getPrepStmtCacheSqlLimit()
|
boolean |
getProcessEscapeCodesForPrepStmts()
|
java.lang.String |
getProfilerEventHandler()
|
boolean |
getProfileSql()
DOCUMENT ME! |
boolean |
getProfileSQL()
DOCUMENT ME! |
java.util.Properties |
getProperties()
Returns the parsed and passed in properties for this connection. |
java.lang.String |
getPropertiesTransform()
|
int |
getQueriesBeforeRetryMaster()
DOCUMENT ME! |
boolean |
getQueryTimeoutKillsConnection()
|
boolean |
getReconnectAtTxEnd()
DOCUMENT ME! |
boolean |
getRelaxAutoCommit()
DOCUMENT ME! |
int |
getReportMetricsIntervalMillis()
DOCUMENT ME! |
boolean |
getRequireSSL()
DOCUMENT ME! |
java.lang.String |
getResourceId()
|
int |
getResultSetSizeThreshold()
|
int |
getRetriesAllDown()
|
boolean |
getRewriteBatchedStatements()
|
boolean |
getRollbackOnPooledClose()
|
boolean |
getRoundRobinLoadBalance()
Returns whether or not hosts will be picked in a round-robin fashion. |
boolean |
getRunningCTS13()
|
int |
getSecondsBeforeRetryMaster()
DOCUMENT ME! |
int |
getSelfDestructOnPingMaxOperations()
|
int |
getSelfDestructOnPingSecondsLifetime()
|
java.lang.String |
getServerCharacterEncoding()
Returns the server's character set |
java.lang.String |
getServerTimezone()
Returns the 'serverTimezone' property. |
java.util.TimeZone |
getServerTimezoneTZ()
Returns the TimeZone that represents the configured timezone for the server. |
java.lang.String |
getSessionVariables()
|
Connection |
getSlavesConnection()
|
int |
getSlowQueryThresholdMillis()
DOCUMENT ME! |
long |
getSlowQueryThresholdNanos()
|
java.lang.String |
getSocketFactory()
|
java.lang.String |
getSocketFactoryClassName()
DOCUMENT ME! |
int |
getSocketTimeout()
DOCUMENT ME! |
java.lang.String |
getStatementComment()
Returns the comment that will be prepended to all statements sent to the server. |
java.lang.String |
getStatementInterceptors()
|
boolean |
getStrictFloatingPoint()
DOCUMENT ME! |
boolean |
getStrictUpdates()
DOCUMENT ME! |
boolean |
getTcpKeepAlive()
|
boolean |
getTcpNoDelay()
|
int |
getTcpRcvBuf()
|
int |
getTcpSndBuf()
|
int |
getTcpTrafficClass()
|
boolean |
getTinyInt1isBit()
|
boolean |
getTraceProtocol()
DOCUMENT ME! |
int |
getTransactionIsolation()
|
boolean |
getTransformedBitIsBoolean()
|
boolean |
getTreatUtilDateAsTimestamp()
|
java.lang.String |
getTrustCertificateKeyStorePassword()
|
java.lang.String |
getTrustCertificateKeyStoreType()
|
java.lang.String |
getTrustCertificateKeyStoreUrl()
|
java.util.Map |
getTypeMap()
|
boolean |
getUltraDevHack()
|
boolean |
getUseAffectedRows()
|
boolean |
getUseBlobToStoreUTF8OutsideBMP()
|
boolean |
getUseColumnNamesInFindColumn()
|
boolean |
getUseCompression()
DOCUMENT ME! |
java.lang.String |
getUseConfigs()
|
boolean |
getUseCursorFetch()
|
boolean |
getUseDirectRowUnpack()
|
boolean |
getUseDynamicCharsetInfo()
|
boolean |
getUseFastDateParsing()
|
boolean |
getUseFastIntParsing()
|
boolean |
getUseGmtMillisForDatetimes()
|
boolean |
getUseHostsInPrivileges()
DOCUMENT ME! |
boolean |
getUseInformationSchema()
|
boolean |
getUseJDBCCompliantTimezoneShift()
|
boolean |
getUseJvmCharsetConverters()
|
boolean |
getUseLegacyDatetimeCode()
|
boolean |
getUseLocalSessionState()
|
boolean |
getUseLocalTransactionState()
|
boolean |
getUseNanosForElapsedTime()
|
boolean |
getUseOldAliasMetadataBehavior()
|
boolean |
getUseOldUTF8Behavior()
|
boolean |
getUseOnlyServerErrorMessages()
|
boolean |
getUseReadAheadInput()
|
boolean |
getUseServerPreparedStmts()
DOCUMENT ME! |
boolean |
getUseServerPrepStmts()
|
boolean |
getUseSqlStateCodes()
DOCUMENT ME! |
boolean |
getUseSSL()
DOCUMENT ME! |
boolean |
getUseSSPSCompatibleTimezoneShift()
|
boolean |
getUseStreamLengthsInPrepStmts()
DOCUMENT ME! |
boolean |
getUseTimezone()
DOCUMENT ME! |
boolean |
getUseUltraDevWorkAround()
DOCUMENT ME! |
boolean |
getUseUnbufferedInput()
DOCUMENT ME! |
boolean |
getUseUnicode()
DOCUMENT ME! |
boolean |
getUseUsageAdvisor()
Returns whether or not the driver advises of proper usage. |
java.lang.String |
getUtf8OutsideBmpExcludedColumnNamePattern()
|
java.lang.String |
getUtf8OutsideBmpIncludedColumnNamePattern()
|
boolean |
getVerifyServerCertificate()
|
java.sql.SQLWarning |
getWarnings()
|
boolean |
getYearIsDateType()
|
java.lang.String |
getZeroDateTimeBehavior()
|
boolean |
hasSameProperties(Connection c)
Does this connection have the same properties as another? |
boolean |
hasTriedMaster()
Has this connection tried to execute a query on the "master" server (first host in a multiple host list). |
void |
initializeExtension(Extension ex)
|
boolean |
isAbonormallyLongQuery(long millisOrNanos)
|
boolean |
isClosed()
|
boolean |
isInGlobalTx()
Is this connection currently a participant in an XA transaction? |
boolean |
isMasterConnection()
Is this connection connected to the first host in the list if there is a list of servers in the URL? |
boolean |
isNoBackslashEscapesSet()
Is the server in a sql_mode that doesn't allow us to use \\ to escape things? |
boolean |
isReadOnly()
|
boolean |
isSameResource(Connection c)
Does this connection have the same resource name as the given connection (for XA)? |
boolean |
lowerCaseTableNames()
Is the server configured to use lower-case table names only? |
java.lang.String |
nativeSQL(java.lang.String sql)
|
boolean |
parserKnowsUnicode()
Does the server this connection is connected to support unicode? |
void |
ping()
Detect if the connection is still good by sending a ping command to the server. |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
|
void |
releaseSavepoint(java.sql.Savepoint savepoint)
|
void |
reportQueryTime(long millisOrNanos)
|
void |
resetServerState()
Resets the server-side state of this connection. |
void |
rollback()
|
void |
rollback(java.sql.Savepoint savepoint)
|
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.String sql)
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. |
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.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. |
java.sql.PreparedStatement |
serverPrepareStatement(java.lang.String sql,
java.lang.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. |
void |
setAllowLoadLocalInfile(boolean property)
DOCUMENT ME! |
void |
setAllowMultiQueries(boolean property)
DOCUMENT ME! |
void |
setAllowNanAndInf(boolean flag)
|
void |
setAllowUrlInLocalInfile(boolean flag)
|
void |
setAlwaysSendSetIsolation(boolean flag)
|
void |
setAutoClosePStmtStreams(boolean flag)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setAutoDeserialize(boolean flag)
|
void |
setAutoGenerateTestcaseScript(boolean flag)
|
void |
setAutoReconnect(boolean flag)
DOCUMENT ME! |
void |
setAutoReconnectForConnectionPools(boolean property)
DOCUMENT ME! |
void |
setAutoReconnectForPools(boolean flag)
DOCUMENT ME! |
void |
setAutoSlowLog(boolean flag)
|
void |
setBlobsAreStrings(boolean flag)
|
void |
setBlobSendChunkSize(java.lang.String value)
|
void |
setCacheCallableStatements(boolean flag)
DOCUMENT ME! |
void |
setCacheCallableStmts(boolean flag)
|
void |
setCachePreparedStatements(boolean flag)
DOCUMENT ME! |
void |
setCachePrepStmts(boolean flag)
|
void |
setCacheResultSetMetadata(boolean property)
Sets whether or not we should cache result set metadata. |
void |
setCacheServerConfiguration(boolean flag)
|
void |
setCallableStatementCacheSize(int size)
Configures the number of callable statements to cache. |
void |
setCallableStmtCacheSize(int cacheSize)
|
void |
setCapitalizeDBMDTypes(boolean property)
DOCUMENT ME! |
void |
setCapitalizeTypeNames(boolean flag)
DOCUMENT ME! |
void |
setCatalog(java.lang.String catalog)
|
void |
setCharacterEncoding(java.lang.String encoding)
DOCUMENT ME! |
void |
setCharacterSetResults(java.lang.String characterSet)
DOCUMENT ME! |
void |
setClientCertificateKeyStorePassword(java.lang.String value)
|
void |
setClientCertificateKeyStoreType(java.lang.String value)
|
void |
setClientCertificateKeyStoreUrl(java.lang.String value)
|
void |
setClientInfoProvider(java.lang.String classname)
|
void |
setClobberStreamingResults(boolean flag)
DOCUMENT ME! |
void |
setClobCharacterEncoding(java.lang.String encoding)
|
void |
setCompensateOnDuplicateKeyUpdateCounts(boolean flag)
|
void |
setConnectionCollation(java.lang.String collation)
DOCUMENT ME! |
void |
setConnectionLifecycleInterceptors(java.lang.String interceptors)
|
void |
setConnectTimeout(int timeoutMs)
DOCUMENT ME! |
void |
setContinueBatchOnError(boolean property)
DOCUMENT ME! |
void |
setCreateDatabaseIfNotExist(boolean flag)
|
void |
setDefaultFetchSize(int n)
|
void |
setDetectServerPreparedStmts(boolean property)
DOCUMENT ME! |
void |
setDontTrackOpenResources(boolean flag)
|
void |
setDumpMetadataOnColumnNotFound(boolean flag)
|
void |
setDumpQueriesOnException(boolean flag)
DOCUMENT ME! |
void |
setDynamicCalendars(boolean flag)
|
void |
setElideSetAutoCommits(boolean flag)
DOCUMENT ME! |
void |
setEmptyStringsConvertToZero(boolean flag)
|
void |
setEmulateLocators(boolean property)
DOCUMENT ME! |
void |
setEmulateUnsupportedPstmts(boolean flag)
|
void |
setEnablePacketDebug(boolean flag)
DOCUMENT ME! |
void |
setEnableQueryTimeouts(boolean flag)
|
void |
setEncoding(java.lang.String property)
DOCUMENT ME! |
void |
setExceptionInterceptors(java.lang.String exceptionInterceptors)
|
void |
setExplainSlowQueries(boolean flag)
DOCUMENT ME! |
void |
setFailedOver(boolean flag)
|
void |
setFailOverReadOnly(boolean flag)
DOCUMENT ME! |
void |
setFunctionsNeverReturnBlobs(boolean flag)
|
void |
setGatherPerfMetrics(boolean flag)
|
void |
setGatherPerformanceMetrics(boolean flag)
DOCUMENT ME! |
void |
setGenerateSimpleParameterMetadata(boolean flag)
|
void |
setHoldability(int holdability)
|
void |
setHoldResultsOpenOverStatementClose(boolean flag)
|
void |
setIgnoreNonTxTables(boolean property)
DOCUMENT ME! |
void |
setIncludeInnodbStatusInDeadlockExceptions(boolean flag)
|
void |
setInGlobalTx(boolean flag)
Set the state of being in a global (XA) transaction. |
void |
setInitialTimeout(int property)
DOCUMENT ME! |
void |
setInteractiveClient(boolean property)
|
void |
setIsInteractiveClient(boolean property)
DOCUMENT ME! |
void |
setJdbcCompliantTruncation(boolean flag)
DOCUMENT ME! |
void |
setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads)
|
void |
setLargeRowSizeThreshold(java.lang.String value)
|
void |
setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout)
|
void |
setLoadBalanceStrategy(java.lang.String strategy)
|
void |
setLocalSocketAddress(java.lang.String address)
|
void |
setLocatorFetchBufferSize(java.lang.String value)
|
void |
setLogger(java.lang.String property)
DOCUMENT ME! |
void |
setLoggerClassName(java.lang.String className)
DOCUMENT ME! |
void |
setLogSlowQueries(boolean flag)
DOCUMENT ME! |
void |
setLogXaCommands(boolean flag)
|
void |
setMaintainTimeStats(boolean flag)
|
void |
setMaxQuerySizeToLog(int sizeInBytes)
DOCUMENT ME! |
void |
setMaxReconnects(int property)
DOCUMENT ME! |
void |
setMaxRows(int property)
DOCUMENT ME! |
void |
setMetadataCacheSize(int value)
Sets the number of queries that metadata can be cached if caching is enabled. |
void |
setNetTimeoutForStreamingResults(int value)
|
void |
setNoAccessToProcedureBodies(boolean flag)
|
void |
setNoDatetimeStringSync(boolean flag)
|
void |
setNoTimezoneConversionForTimeType(boolean flag)
|
void |
setNullCatalogMeansCurrent(boolean value)
|
void |
setNullNamePatternMatchesAll(boolean value)
|
void |
setOverrideSupportsIntegrityEnhancementFacility(boolean flag)
|
void |
setPacketDebugBufferSize(int size)
DOCUMENT ME! |
void |
setPadCharsWithSpace(boolean flag)
|
void |
setParanoid(boolean property)
DOCUMENT ME! |
void |
setPasswordCharacterEncoding(java.lang.String characterSet)
|
void |
setPedantic(boolean property)
DOCUMENT ME! |
void |
setPinGlobalTxToPhysicalConnection(boolean flag)
|
void |
setPopulateInsertRowWithDefaultValues(boolean flag)
|
void |
setPreferSlaveDuringFailover(boolean flag)
|
void |
setPreparedStatementCacheSize(int cacheSize)
DOCUMENT ME! |
void |
setPreparedStatementCacheSqlLimit(int cacheSqlLimit)
DOCUMENT ME! |
void |
setPrepStmtCacheSize(int cacheSize)
|
void |
setPrepStmtCacheSqlLimit(int sqlLimit)
|
void |
setProcessEscapeCodesForPrepStmts(boolean flag)
|
void |
setProfilerEventHandler(java.lang.String handler)
|
void |
setProfileSql(boolean property)
DOCUMENT ME! |
void |
setProfileSQL(boolean flag)
DOCUMENT ME! |
void |
setPropertiesTransform(java.lang.String value)
|
void |
setQueriesBeforeRetryMaster(int property)
DOCUMENT ME! |
void |
setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection)
|
void |
setReadOnly(boolean readOnly)
|
void |
setReconnectAtTxEnd(boolean property)
DOCUMENT ME! |
void |
setRelaxAutoCommit(boolean property)
DOCUMENT ME! |
void |
setReportMetricsIntervalMillis(int millis)
DOCUMENT ME! |
void |
setRequireSSL(boolean property)
DOCUMENT ME! |
void |
setResourceId(java.lang.String resourceId)
|
void |
setResultSetSizeThreshold(int threshold)
|
void |
setRetainStatementAfterResultSetClose(boolean flag)
|
void |
setRetriesAllDown(int retriesAllDown)
|
void |
setRewriteBatchedStatements(boolean flag)
|
void |
setRollbackOnPooledClose(boolean flag)
|
void |
setRoundRobinLoadBalance(boolean flag)
Sets whether or not hosts will be picked in a round-robin fashion. |
void |
setRunningCTS13(boolean flag)
|
java.sql.Savepoint |
setSavepoint()
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
|
void |
setSecondsBeforeRetryMaster(int property)
DOCUMENT ME! |
void |
setSelfDestructOnPingMaxOperations(int maxOperations)
|
void |
setSelfDestructOnPingSecondsLifetime(int seconds)
|
void |
setServerTimezone(java.lang.String property)
DOCUMENT ME! |
void |
setSessionVariables(java.lang.String variables)
|
void |
setSlowQueryThresholdMillis(int millis)
DOCUMENT ME! |
void |
setSlowQueryThresholdNanos(long nanos)
|
void |
setSocketFactory(java.lang.String name)
|
void |
setSocketFactoryClassName(java.lang.String property)
DOCUMENT ME! |
void |
setSocketTimeout(int property)
DOCUMENT ME! |
void |
setStatementComment(java.lang.String comment)
Sets the comment that will be prepended to all statements sent to the server. |
void |
setStatementInterceptors(java.lang.String value)
|
void |
setStrictFloatingPoint(boolean property)
DOCUMENT ME! |
void |
setStrictUpdates(boolean property)
DOCUMENT ME! |
void |
setTcpKeepAlive(boolean flag)
|
void |
setTcpNoDelay(boolean flag)
|
void |
setTcpRcvBuf(int bufSize)
|
void |
setTcpSndBuf(int bufSize)
|
void |
setTcpTrafficClass(int classFlags)
|
void |
setTinyInt1isBit(boolean flag)
|
void |
setTraceProtocol(boolean flag)
DOCUMENT ME! |
void |
setTransactionIsolation(int level)
|
void |
setTransformedBitIsBoolean(boolean flag)
|
void |
setTreatUtilDateAsTimestamp(boolean flag)
|
void |
setTrustCertificateKeyStorePassword(java.lang.String value)
|
void |
setTrustCertificateKeyStoreType(java.lang.String value)
|
void |
setTrustCertificateKeyStoreUrl(java.lang.String value)
|
void |
setTypeMap(java.util.Map arg0)
|
void |
setUltraDevHack(boolean flag)
|
void |
setUseAffectedRows(boolean flag)
|
void |
setUseBlobToStoreUTF8OutsideBMP(boolean flag)
|
void |
setUseColumnNamesInFindColumn(boolean flag)
|
void |
setUseCompression(boolean property)
DOCUMENT ME! |
void |
setUseConfigs(java.lang.String configs)
|
void |
setUseCursorFetch(boolean flag)
|
void |
setUseDirectRowUnpack(boolean flag)
|
void |
setUseDynamicCharsetInfo(boolean flag)
|
void |
setUseFastDateParsing(boolean flag)
|
void |
setUseFastIntParsing(boolean flag)
|
void |
setUseGmtMillisForDatetimes(boolean flag)
|
void |
setUseHostsInPrivileges(boolean property)
DOCUMENT ME! |
void |
setUseInformationSchema(boolean flag)
|
void |
setUseJDBCCompliantTimezoneShift(boolean flag)
|
void |
setUseJvmCharsetConverters(boolean flag)
|
void |
setUseLegacyDatetimeCode(boolean flag)
|
void |
setUseLocalSessionState(boolean flag)
|
void |
setUseLocalTransactionState(boolean flag)
|
void |
setUseNanosForElapsedTime(boolean flag)
|
void |
setUseOldAliasMetadataBehavior(boolean flag)
|
void |
setUseOldUTF8Behavior(boolean flag)
|
void |
setUseOnlyServerErrorMessages(boolean flag)
|
void |
setUseReadAheadInput(boolean flag)
|
void |
setUseServerPreparedStmts(boolean flag)
DOCUMENT ME! |
void |
setUseServerPrepStmts(boolean flag)
|
void |
setUseSqlStateCodes(boolean flag)
DOCUMENT ME! |
void |
setUseSSL(boolean property)
DOCUMENT ME! |
void |
setUseSSPSCompatibleTimezoneShift(boolean flag)
|
void |
setUseStreamLengthsInPrepStmts(boolean property)
DOCUMENT ME! |
void |
setUseTimezone(boolean property)
DOCUMENT ME! |
void |
setUseUltraDevWorkAround(boolean property)
DOCUMENT ME! |
void |
setUseUnbufferedInput(boolean flag)
DOCUMENT ME! |
void |
setUseUnicode(boolean flag)
DOCUMENT ME! |
void |
setUseUsageAdvisor(boolean useUsageAdvisorFlag)
Sets whether or not the driver advises of proper usage. |
void |
setUtf8OutsideBmpExcludedColumnNamePattern(java.lang.String regexPattern)
|
void |
setUtf8OutsideBmpIncludedColumnNamePattern(java.lang.String regexPattern)
|
void |
setVerifyServerCertificate(boolean flag)
|
void |
setYearIsDateType(boolean flag)
|
void |
setZeroDateTimeBehavior(java.lang.String behavior)
|
void |
shutdownServer()
Used by MiniAdmin to shutdown a MySQL server |
boolean |
supportsIsolationLevel()
Does the server this connection is connected to support quoted isolation levels? |
boolean |
supportsQuotedIdentifiers()
Does the server this connection is connected to support quoted identifiers? |
boolean |
supportsTransactions()
Does the server this connection is connected to support quoted identifiers? |
boolean |
useUnbufferedInput()
DOCUMENT ME! |
boolean |
versionMeetsMinimum(int major,
int minor,
int subminor)
Does the server this connection is connected to meet or exceed the given version? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.Connection |
---|
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Field Detail |
---|
protected Connection currentConnection
protected Connection masterConnection
protected Connection slavesConnection
Constructor Detail |
---|
protected ReplicationConnection()
public ReplicationConnection(java.util.Properties masterProperties, java.util.Properties slaveProperties) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Connection
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.sql.Connection
java.sql.SQLException
public void commit() throws java.sql.SQLException
commit
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement() throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public boolean getAutoCommit() throws java.sql.SQLException
getAutoCommit
in interface java.sql.Connection
java.sql.SQLException
public java.lang.String getCatalog() throws java.sql.SQLException
getCatalog
in interface java.sql.Connection
java.sql.SQLException
public Connection getCurrentConnection()
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.Connection
java.sql.SQLException
public Connection getMasterConnection()
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.Connection
java.sql.SQLException
public Connection getSlavesConnection()
public int getTransactionIsolation() throws java.sql.SQLException
getTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
public java.util.Map getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Connection
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.Connection
java.sql.SQLException
public boolean isReadOnly() throws java.sql.SQLException
isReadOnly
in interface java.sql.Connection
java.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException
nativeSQL
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
java.sql.SQLException
public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
setAutoCommit
in interface java.sql.Connection
java.sql.SQLException
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
setCatalog
in interface java.sql.Connection
java.sql.SQLException
public void setHoldability(int holdability) throws java.sql.SQLException
setHoldability
in interface java.sql.Connection
java.sql.SQLException
public void setReadOnly(boolean readOnly) throws java.sql.SQLException
setReadOnly
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
public void setTransactionIsolation(int level) throws java.sql.SQLException
setTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
public void setTypeMap(java.util.Map arg0) throws java.sql.SQLException
setTypeMap
in interface java.sql.Connection
java.sql.SQLException
public void doPing() throws java.sql.SQLException
doPing
in interface PingTarget
java.sql.SQLException
public void changeUser(java.lang.String userName, java.lang.String newPassword) throws java.sql.SQLException
Connection
userName
- the username to authenticate withnewPassword
- the password to authenticate with
java.sql.SQLException
- if authentication fails, or some other error occurs while
performing the command.public void clearHasTriedMaster()
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String)
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql, int autoGenKeyIndex) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int)
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int, int)
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql, int[] autoGenKeyIndexes) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int[])
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int, int, int)
public java.sql.PreparedStatement clientPrepareStatement(java.lang.String sql, java.lang.String[] autoGenKeyColNames) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, String[])
public int getActiveStatementCount()
Connection
public long getIdleFor()
Connection
public com.mysql.jdbc.log.Log getLog() throws java.sql.SQLException
Connection
java.sql.SQLException
- if an error occurspublic java.lang.String getServerCharacterEncoding()
Connection
public java.util.TimeZone getServerTimezoneTZ()
Connection
public java.lang.String getStatementComment()
Connection
public boolean hasTriedMaster()
Connection
public void initializeExtension(Extension ex) throws java.sql.SQLException
java.sql.SQLException
public boolean isAbonormallyLongQuery(long millisOrNanos)
public boolean isInGlobalTx()
Connection
public boolean isMasterConnection()
Connection
public boolean isNoBackslashEscapesSet()
Connection
public boolean lowerCaseTableNames()
Connection
public boolean parserKnowsUnicode()
Connection
public void ping() throws java.sql.SQLException
Connection
java.sql.SQLException
- if the ping failspublic void reportQueryTime(long millisOrNanos)
public void resetServerState() throws java.sql.SQLException
Connection
java.sql.SQLException
- if the operation fails while resetting server state.public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String)
public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql, int autoGenKeyIndex) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int)
public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int, int)
public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int, int, int)
public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql, int[] autoGenKeyIndexes) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, int[])
public java.sql.PreparedStatement serverPrepareStatement(java.lang.String sql, java.lang.String[] autoGenKeyColNames) throws java.sql.SQLException
Connection
java.sql.SQLException
Connection.prepareStatement(String, String[])
public void setFailedOver(boolean flag)
public void setPreferSlaveDuringFailover(boolean flag)
public void setStatementComment(java.lang.String comment)
Connection
comment
- the comment that will be prepended to all statements
sent to the server.public void shutdownServer() throws java.sql.SQLException
Connection
java.sql.SQLException
- if the command can not be issued.public boolean supportsIsolationLevel()
Connection
public boolean supportsQuotedIdentifiers()
Connection
public boolean supportsTransactions()
Connection
public boolean versionMeetsMinimum(int major, int minor, int subminor) throws java.sql.SQLException
Connection
java.sql.SQLException
public java.lang.String exposeAsXml() throws java.sql.SQLException
ConnectionProperties
exposeAsXml
in interface ConnectionProperties
java.sql.SQLException
- if an error occurs.public boolean getAllowLoadLocalInfile()
ConnectionProperties
getAllowLoadLocalInfile
in interface ConnectionProperties
public boolean getAllowMultiQueries()
ConnectionProperties
getAllowMultiQueries
in interface ConnectionProperties
public boolean getAllowNanAndInf()
getAllowNanAndInf
in interface ConnectionProperties
public boolean getAllowUrlInLocalInfile()
getAllowUrlInLocalInfile
in interface ConnectionProperties
public boolean getAlwaysSendSetIsolation()
getAlwaysSendSetIsolation
in interface ConnectionProperties
public boolean getAutoClosePStmtStreams()
getAutoClosePStmtStreams
in interface ConnectionProperties
public boolean getAutoDeserialize()
getAutoDeserialize
in interface ConnectionProperties
public boolean getAutoGenerateTestcaseScript()
getAutoGenerateTestcaseScript
in interface ConnectionProperties
public boolean getAutoReconnectForPools()
ConnectionProperties
getAutoReconnectForPools
in interface ConnectionProperties
public boolean getAutoSlowLog()
getAutoSlowLog
in interface ConnectionProperties
public int getBlobSendChunkSize()
getBlobSendChunkSize
in interface ConnectionProperties
public boolean getBlobsAreStrings()
getBlobsAreStrings
in interface ConnectionProperties
public boolean getCacheCallableStatements()
ConnectionProperties
getCacheCallableStatements
in interface ConnectionProperties
public boolean getCacheCallableStmts()
getCacheCallableStmts
in interface ConnectionProperties
public boolean getCachePrepStmts()
getCachePrepStmts
in interface ConnectionProperties
public boolean getCachePreparedStatements()
ConnectionProperties
getCachePreparedStatements
in interface ConnectionProperties
public boolean getCacheResultSetMetadata()
ConnectionProperties
getCacheResultSetMetadata
in interface ConnectionProperties
public boolean getCacheServerConfiguration()
getCacheServerConfiguration
in interface ConnectionProperties
public int getCallableStatementCacheSize()
ConnectionProperties
getCallableStatementCacheSize
in interface ConnectionProperties
public int getCallableStmtCacheSize()
getCallableStmtCacheSize
in interface ConnectionProperties
public boolean getCapitalizeTypeNames()
ConnectionProperties
getCapitalizeTypeNames
in interface ConnectionProperties
public java.lang.String getCharacterSetResults()
ConnectionProperties
getCharacterSetResults
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStorePassword()
getClientCertificateKeyStorePassword
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStoreType()
getClientCertificateKeyStoreType
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStoreUrl()
getClientCertificateKeyStoreUrl
in interface ConnectionProperties
public java.lang.String getClientInfoProvider()
getClientInfoProvider
in interface ConnectionProperties
public java.lang.String getClobCharacterEncoding()
getClobCharacterEncoding
in interface ConnectionProperties
public boolean getClobberStreamingResults()
ConnectionProperties
getClobberStreamingResults
in interface ConnectionProperties
public int getConnectTimeout()
ConnectionProperties
getConnectTimeout
in interface ConnectionProperties
public java.lang.String getConnectionCollation()
ConnectionProperties
getConnectionCollation
in interface ConnectionProperties
public java.lang.String getConnectionLifecycleInterceptors()
getConnectionLifecycleInterceptors
in interface ConnectionProperties
public boolean getContinueBatchOnError()
ConnectionProperties
getContinueBatchOnError
in interface ConnectionProperties
public boolean getCreateDatabaseIfNotExist()
getCreateDatabaseIfNotExist
in interface ConnectionProperties
public int getDefaultFetchSize()
getDefaultFetchSize
in interface ConnectionProperties
public boolean getDontTrackOpenResources()
getDontTrackOpenResources
in interface ConnectionProperties
public boolean getDumpMetadataOnColumnNotFound()
getDumpMetadataOnColumnNotFound
in interface ConnectionProperties
public boolean getDumpQueriesOnException()
ConnectionProperties
getDumpQueriesOnException
in interface ConnectionProperties
public boolean getDynamicCalendars()
getDynamicCalendars
in interface ConnectionProperties
public boolean getElideSetAutoCommits()
ConnectionProperties
getElideSetAutoCommits
in interface ConnectionProperties
public boolean getEmptyStringsConvertToZero()
getEmptyStringsConvertToZero
in interface ConnectionProperties
public boolean getEmulateLocators()
ConnectionProperties
getEmulateLocators
in interface ConnectionProperties
public boolean getEmulateUnsupportedPstmts()
getEmulateUnsupportedPstmts
in interface ConnectionProperties
public boolean getEnablePacketDebug()
ConnectionProperties
getEnablePacketDebug
in interface ConnectionProperties
public boolean getEnableQueryTimeouts()
getEnableQueryTimeouts
in interface ConnectionProperties
public java.lang.String getEncoding()
ConnectionProperties
getEncoding
in interface ConnectionProperties
public boolean getExplainSlowQueries()
ConnectionProperties
getExplainSlowQueries
in interface ConnectionProperties
public boolean getFailOverReadOnly()
ConnectionProperties
getFailOverReadOnly
in interface ConnectionProperties
public boolean getFunctionsNeverReturnBlobs()
getFunctionsNeverReturnBlobs
in interface ConnectionProperties
public boolean getGatherPerfMetrics()
getGatherPerfMetrics
in interface ConnectionProperties
public boolean getGatherPerformanceMetrics()
ConnectionProperties
getGatherPerformanceMetrics
in interface ConnectionProperties
public boolean getGenerateSimpleParameterMetadata()
getGenerateSimpleParameterMetadata
in interface ConnectionProperties
public boolean getHoldResultsOpenOverStatementClose()
getHoldResultsOpenOverStatementClose
in interface ConnectionProperties
public boolean getIgnoreNonTxTables()
ConnectionProperties
getIgnoreNonTxTables
in interface ConnectionProperties
public boolean getIncludeInnodbStatusInDeadlockExceptions()
getIncludeInnodbStatusInDeadlockExceptions
in interface ConnectionProperties
public int getInitialTimeout()
ConnectionProperties
getInitialTimeout
in interface ConnectionProperties
public boolean getInteractiveClient()
ConnectionProperties
getInteractiveClient
in interface ConnectionProperties
public boolean getIsInteractiveClient()
ConnectionProperties
getIsInteractiveClient
in interface ConnectionProperties
public boolean getJdbcCompliantTruncation()
ConnectionProperties
getJdbcCompliantTruncation
in interface ConnectionProperties
public boolean getJdbcCompliantTruncationForReads()
getJdbcCompliantTruncationForReads
in interface ConnectionProperties
public java.lang.String getLargeRowSizeThreshold()
getLargeRowSizeThreshold
in interface ConnectionProperties
public java.lang.String getLoadBalanceStrategy()
getLoadBalanceStrategy
in interface ConnectionProperties
public java.lang.String getLocalSocketAddress()
getLocalSocketAddress
in interface ConnectionProperties
public int getLocatorFetchBufferSize()
getLocatorFetchBufferSize
in interface ConnectionProperties
public boolean getLogSlowQueries()
ConnectionProperties
getLogSlowQueries
in interface ConnectionProperties
public boolean getLogXaCommands()
getLogXaCommands
in interface ConnectionProperties
public java.lang.String getLogger()
ConnectionProperties
getLogger
in interface ConnectionProperties
public java.lang.String getLoggerClassName()
ConnectionProperties
getLoggerClassName
in interface ConnectionProperties
public boolean getMaintainTimeStats()
getMaintainTimeStats
in interface ConnectionProperties
public int getMaxQuerySizeToLog()
ConnectionProperties
getMaxQuerySizeToLog
in interface ConnectionProperties
public int getMaxReconnects()
ConnectionProperties
getMaxReconnects
in interface ConnectionProperties
public int getMaxRows()
ConnectionProperties
getMaxRows
in interface ConnectionProperties
public int getMetadataCacheSize()
ConnectionProperties
getMetadataCacheSize
in interface ConnectionProperties
public int getNetTimeoutForStreamingResults()
getNetTimeoutForStreamingResults
in interface ConnectionProperties
public boolean getNoAccessToProcedureBodies()
getNoAccessToProcedureBodies
in interface ConnectionProperties
public boolean getNoDatetimeStringSync()
getNoDatetimeStringSync
in interface ConnectionProperties
public boolean getNoTimezoneConversionForTimeType()
getNoTimezoneConversionForTimeType
in interface ConnectionProperties
public boolean getNullCatalogMeansCurrent()
getNullCatalogMeansCurrent
in interface ConnectionProperties
public boolean getNullNamePatternMatchesAll()
getNullNamePatternMatchesAll
in interface ConnectionProperties
public boolean getOverrideSupportsIntegrityEnhancementFacility()
getOverrideSupportsIntegrityEnhancementFacility
in interface ConnectionProperties
public int getPacketDebugBufferSize()
ConnectionProperties
getPacketDebugBufferSize
in interface ConnectionProperties
public boolean getPadCharsWithSpace()
getPadCharsWithSpace
in interface ConnectionProperties
public boolean getParanoid()
ConnectionProperties
getParanoid
in interface ConnectionProperties
public boolean getPedantic()
ConnectionProperties
getPedantic
in interface ConnectionProperties
public boolean getPinGlobalTxToPhysicalConnection()
getPinGlobalTxToPhysicalConnection
in interface ConnectionProperties
public boolean getPopulateInsertRowWithDefaultValues()
getPopulateInsertRowWithDefaultValues
in interface ConnectionProperties
public int getPrepStmtCacheSize()
getPrepStmtCacheSize
in interface ConnectionProperties
public int getPrepStmtCacheSqlLimit()
getPrepStmtCacheSqlLimit
in interface ConnectionProperties
public int getPreparedStatementCacheSize()
ConnectionProperties
getPreparedStatementCacheSize
in interface ConnectionProperties
public int getPreparedStatementCacheSqlLimit()
ConnectionProperties
getPreparedStatementCacheSqlLimit
in interface ConnectionProperties
public boolean getProcessEscapeCodesForPrepStmts()
getProcessEscapeCodesForPrepStmts
in interface ConnectionProperties
public boolean getProfileSQL()
ConnectionProperties
getProfileSQL
in interface ConnectionProperties
public boolean getProfileSql()
ConnectionProperties
getProfileSql
in interface ConnectionProperties
public java.lang.String getProfilerEventHandler()
getProfilerEventHandler
in interface ConnectionProperties
public java.lang.String getPropertiesTransform()
getPropertiesTransform
in interface ConnectionProperties
public int getQueriesBeforeRetryMaster()
ConnectionProperties
getQueriesBeforeRetryMaster
in interface ConnectionProperties
public boolean getReconnectAtTxEnd()
ConnectionProperties
getReconnectAtTxEnd
in interface ConnectionProperties
public boolean getRelaxAutoCommit()
ConnectionProperties
getRelaxAutoCommit
in interface ConnectionProperties
public int getReportMetricsIntervalMillis()
ConnectionProperties
getReportMetricsIntervalMillis
in interface ConnectionProperties
public boolean getRequireSSL()
ConnectionProperties
getRequireSSL
in interface ConnectionProperties
public java.lang.String getResourceId()
getResourceId
in interface ConnectionProperties
public int getResultSetSizeThreshold()
getResultSetSizeThreshold
in interface ConnectionProperties
public boolean getRewriteBatchedStatements()
getRewriteBatchedStatements
in interface ConnectionProperties
public boolean getRollbackOnPooledClose()
getRollbackOnPooledClose
in interface ConnectionProperties
public boolean getRoundRobinLoadBalance()
ConnectionProperties
getRoundRobinLoadBalance
in interface ConnectionProperties
public boolean getRunningCTS13()
getRunningCTS13
in interface ConnectionProperties
public int getSecondsBeforeRetryMaster()
ConnectionProperties
getSecondsBeforeRetryMaster
in interface ConnectionProperties
public int getSelfDestructOnPingMaxOperations()
getSelfDestructOnPingMaxOperations
in interface ConnectionProperties
public int getSelfDestructOnPingSecondsLifetime()
getSelfDestructOnPingSecondsLifetime
in interface ConnectionProperties
public java.lang.String getServerTimezone()
ConnectionProperties
getServerTimezone
in interface ConnectionProperties
public java.lang.String getSessionVariables()
getSessionVariables
in interface ConnectionProperties
public int getSlowQueryThresholdMillis()
ConnectionProperties
getSlowQueryThresholdMillis
in interface ConnectionProperties
public long getSlowQueryThresholdNanos()
getSlowQueryThresholdNanos
in interface ConnectionProperties
public java.lang.String getSocketFactory()
getSocketFactory
in interface ConnectionProperties
public java.lang.String getSocketFactoryClassName()
ConnectionProperties
getSocketFactoryClassName
in interface ConnectionProperties
public int getSocketTimeout()
ConnectionProperties
getSocketTimeout
in interface ConnectionProperties
public java.lang.String getStatementInterceptors()
getStatementInterceptors
in interface ConnectionProperties
public boolean getStrictFloatingPoint()
ConnectionProperties
getStrictFloatingPoint
in interface ConnectionProperties
public boolean getStrictUpdates()
ConnectionProperties
getStrictUpdates
in interface ConnectionProperties
public boolean getTcpKeepAlive()
getTcpKeepAlive
in interface ConnectionProperties
public boolean getTcpNoDelay()
getTcpNoDelay
in interface ConnectionProperties
public int getTcpRcvBuf()
getTcpRcvBuf
in interface ConnectionProperties
public int getTcpSndBuf()
getTcpSndBuf
in interface ConnectionProperties
public int getTcpTrafficClass()
getTcpTrafficClass
in interface ConnectionProperties
public boolean getTinyInt1isBit()
getTinyInt1isBit
in interface ConnectionProperties
public boolean getTraceProtocol()
ConnectionProperties
getTraceProtocol
in interface ConnectionProperties
public boolean getTransformedBitIsBoolean()
getTransformedBitIsBoolean
in interface ConnectionProperties
public boolean getTreatUtilDateAsTimestamp()
getTreatUtilDateAsTimestamp
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStorePassword()
getTrustCertificateKeyStorePassword
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStoreType()
getTrustCertificateKeyStoreType
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStoreUrl()
getTrustCertificateKeyStoreUrl
in interface ConnectionProperties
public boolean getUltraDevHack()
getUltraDevHack
in interface ConnectionProperties
public boolean getUseBlobToStoreUTF8OutsideBMP()
getUseBlobToStoreUTF8OutsideBMP
in interface ConnectionProperties
public boolean getUseCompression()
ConnectionProperties
getUseCompression
in interface ConnectionProperties
public java.lang.String getUseConfigs()
getUseConfigs
in interface ConnectionProperties
public boolean getUseCursorFetch()
getUseCursorFetch
in interface ConnectionProperties
public boolean getUseDirectRowUnpack()
getUseDirectRowUnpack
in interface ConnectionProperties
public boolean getUseDynamicCharsetInfo()
getUseDynamicCharsetInfo
in interface ConnectionProperties
public boolean getUseFastDateParsing()
getUseFastDateParsing
in interface ConnectionProperties
public boolean getUseFastIntParsing()
getUseFastIntParsing
in interface ConnectionProperties
public boolean getUseGmtMillisForDatetimes()
getUseGmtMillisForDatetimes
in interface ConnectionProperties
public boolean getUseHostsInPrivileges()
ConnectionProperties
getUseHostsInPrivileges
in interface ConnectionProperties
public boolean getUseInformationSchema()
getUseInformationSchema
in interface ConnectionProperties
public boolean getUseJDBCCompliantTimezoneShift()
getUseJDBCCompliantTimezoneShift
in interface ConnectionProperties
public boolean getUseJvmCharsetConverters()
getUseJvmCharsetConverters
in interface ConnectionProperties
public boolean getUseLegacyDatetimeCode()
getUseLegacyDatetimeCode
in interface ConnectionProperties
public boolean getUseLocalSessionState()
getUseLocalSessionState
in interface ConnectionProperties
public boolean getUseNanosForElapsedTime()
getUseNanosForElapsedTime
in interface ConnectionProperties
public boolean getUseOldAliasMetadataBehavior()
getUseOldAliasMetadataBehavior
in interface ConnectionProperties
public boolean getUseOldUTF8Behavior()
getUseOldUTF8Behavior
in interface ConnectionProperties
public boolean getUseOnlyServerErrorMessages()
getUseOnlyServerErrorMessages
in interface ConnectionProperties
public boolean getUseReadAheadInput()
getUseReadAheadInput
in interface ConnectionProperties
public boolean getUseSSL()
ConnectionProperties
getUseSSL
in interface ConnectionProperties
public boolean getUseSSPSCompatibleTimezoneShift()
getUseSSPSCompatibleTimezoneShift
in interface ConnectionProperties
public boolean getUseServerPrepStmts()
getUseServerPrepStmts
in interface ConnectionProperties
public boolean getUseServerPreparedStmts()
ConnectionProperties
getUseServerPreparedStmts
in interface ConnectionProperties
public boolean getUseSqlStateCodes()
ConnectionProperties
getUseSqlStateCodes
in interface ConnectionProperties
public boolean getUseStreamLengthsInPrepStmts()
ConnectionProperties
getUseStreamLengthsInPrepStmts
in interface ConnectionProperties
public boolean getUseTimezone()
ConnectionProperties
getUseTimezone
in interface ConnectionProperties
public boolean getUseUltraDevWorkAround()
ConnectionProperties
getUseUltraDevWorkAround
in interface ConnectionProperties
public boolean getUseUnbufferedInput()
ConnectionProperties
getUseUnbufferedInput
in interface ConnectionProperties
public boolean getUseUnicode()
ConnectionProperties
getUseUnicode
in interface ConnectionProperties
public boolean getUseUsageAdvisor()
ConnectionProperties
getUseUsageAdvisor
in interface ConnectionProperties
public java.lang.String getUtf8OutsideBmpExcludedColumnNamePattern()
getUtf8OutsideBmpExcludedColumnNamePattern
in interface ConnectionProperties
public java.lang.String getUtf8OutsideBmpIncludedColumnNamePattern()
getUtf8OutsideBmpIncludedColumnNamePattern
in interface ConnectionProperties
public boolean getVerifyServerCertificate()
getVerifyServerCertificate
in interface ConnectionProperties
public boolean getYearIsDateType()
getYearIsDateType
in interface ConnectionProperties
public java.lang.String getZeroDateTimeBehavior()
getZeroDateTimeBehavior
in interface ConnectionProperties
public void setAllowLoadLocalInfile(boolean property)
ConnectionProperties
setAllowLoadLocalInfile
in interface ConnectionProperties
public void setAllowMultiQueries(boolean property)
ConnectionProperties
setAllowMultiQueries
in interface ConnectionProperties
public void setAllowNanAndInf(boolean flag)
setAllowNanAndInf
in interface ConnectionProperties
public void setAllowUrlInLocalInfile(boolean flag)
setAllowUrlInLocalInfile
in interface ConnectionProperties
public void setAlwaysSendSetIsolation(boolean flag)
setAlwaysSendSetIsolation
in interface ConnectionProperties
public void setAutoClosePStmtStreams(boolean flag)
setAutoClosePStmtStreams
in interface ConnectionProperties
public void setAutoDeserialize(boolean flag)
setAutoDeserialize
in interface ConnectionProperties
public void setAutoGenerateTestcaseScript(boolean flag)
setAutoGenerateTestcaseScript
in interface ConnectionProperties
public void setAutoReconnect(boolean flag)
ConnectionProperties
setAutoReconnect
in interface ConnectionProperties
flag
- The autoReconnect to set.public void setAutoReconnectForConnectionPools(boolean property)
ConnectionProperties
setAutoReconnectForConnectionPools
in interface ConnectionProperties
public void setAutoReconnectForPools(boolean flag)
ConnectionProperties
setAutoReconnectForPools
in interface ConnectionProperties
flag
- The autoReconnectForPools to set.public void setAutoSlowLog(boolean flag)
setAutoSlowLog
in interface ConnectionProperties
public void setBlobSendChunkSize(java.lang.String value) throws java.sql.SQLException
setBlobSendChunkSize
in interface ConnectionProperties
java.sql.SQLException
public void setBlobsAreStrings(boolean flag)
setBlobsAreStrings
in interface ConnectionProperties
public void setCacheCallableStatements(boolean flag)
ConnectionProperties
setCacheCallableStatements
in interface ConnectionProperties
flag
- The cacheCallableStatements to set.public void setCacheCallableStmts(boolean flag)
setCacheCallableStmts
in interface ConnectionProperties
public void setCachePrepStmts(boolean flag)
setCachePrepStmts
in interface ConnectionProperties
public void setCachePreparedStatements(boolean flag)
ConnectionProperties
setCachePreparedStatements
in interface ConnectionProperties
flag
- The cachePreparedStatements to set.public void setCacheResultSetMetadata(boolean property)
ConnectionProperties
setCacheResultSetMetadata
in interface ConnectionProperties
public void setCacheServerConfiguration(boolean flag)
setCacheServerConfiguration
in interface ConnectionProperties
public void setCallableStatementCacheSize(int size)
ConnectionProperties
setCallableStatementCacheSize
in interface ConnectionProperties
size
- The callableStatementCacheSize to set.public void setCallableStmtCacheSize(int cacheSize)
setCallableStmtCacheSize
in interface ConnectionProperties
public void setCapitalizeDBMDTypes(boolean property)
ConnectionProperties
setCapitalizeDBMDTypes
in interface ConnectionProperties
public void setCapitalizeTypeNames(boolean flag)
ConnectionProperties
setCapitalizeTypeNames
in interface ConnectionProperties
flag
- The capitalizeTypeNames to set.public void setCharacterEncoding(java.lang.String encoding)
ConnectionProperties
setCharacterEncoding
in interface ConnectionProperties
encoding
- The characterEncoding to set.public void setCharacterSetResults(java.lang.String characterSet)
ConnectionProperties
setCharacterSetResults
in interface ConnectionProperties
characterSet
- The characterSetResults to set.public void setClientCertificateKeyStorePassword(java.lang.String value)
setClientCertificateKeyStorePassword
in interface ConnectionProperties
public void setClientCertificateKeyStoreType(java.lang.String value)
setClientCertificateKeyStoreType
in interface ConnectionProperties
public void setClientCertificateKeyStoreUrl(java.lang.String value)
setClientCertificateKeyStoreUrl
in interface ConnectionProperties
public void setClientInfoProvider(java.lang.String classname)
setClientInfoProvider
in interface ConnectionProperties
public void setClobCharacterEncoding(java.lang.String encoding)
setClobCharacterEncoding
in interface ConnectionProperties
public void setClobberStreamingResults(boolean flag)
ConnectionProperties
setClobberStreamingResults
in interface ConnectionProperties
flag
- The clobberStreamingResults to set.public void setConnectTimeout(int timeoutMs)
ConnectionProperties
setConnectTimeout
in interface ConnectionProperties
public void setConnectionCollation(java.lang.String collation)
ConnectionProperties
setConnectionCollation
in interface ConnectionProperties
collation
- The connectionCollation to set.public void setConnectionLifecycleInterceptors(java.lang.String interceptors)
setConnectionLifecycleInterceptors
in interface ConnectionProperties
public void setContinueBatchOnError(boolean property)
ConnectionProperties
setContinueBatchOnError
in interface ConnectionProperties
public void setCreateDatabaseIfNotExist(boolean flag)
setCreateDatabaseIfNotExist
in interface ConnectionProperties
public void setDefaultFetchSize(int n)
setDefaultFetchSize
in interface ConnectionProperties
public void setDetectServerPreparedStmts(boolean property)
ConnectionProperties
setDetectServerPreparedStmts
in interface ConnectionProperties
public void setDontTrackOpenResources(boolean flag)
setDontTrackOpenResources
in interface ConnectionProperties
public void setDumpMetadataOnColumnNotFound(boolean flag)
setDumpMetadataOnColumnNotFound
in interface ConnectionProperties
public void setDumpQueriesOnException(boolean flag)
ConnectionProperties
setDumpQueriesOnException
in interface ConnectionProperties
flag
- The dumpQueriesOnException to set.public void setDynamicCalendars(boolean flag)
setDynamicCalendars
in interface ConnectionProperties
public void setElideSetAutoCommits(boolean flag)
ConnectionProperties
setElideSetAutoCommits
in interface ConnectionProperties
flag
- The elideSetAutoCommits to set.public void setEmptyStringsConvertToZero(boolean flag)
setEmptyStringsConvertToZero
in interface ConnectionProperties
public void setEmulateLocators(boolean property)
ConnectionProperties
setEmulateLocators
in interface ConnectionProperties
public void setEmulateUnsupportedPstmts(boolean flag)
setEmulateUnsupportedPstmts
in interface ConnectionProperties
public void setEnablePacketDebug(boolean flag)
ConnectionProperties
setEnablePacketDebug
in interface ConnectionProperties
flag
- The enablePacketDebug to set.public void setEnableQueryTimeouts(boolean flag)
setEnableQueryTimeouts
in interface ConnectionProperties
public void setEncoding(java.lang.String property)
ConnectionProperties
setEncoding
in interface ConnectionProperties
public void setExplainSlowQueries(boolean flag)
ConnectionProperties
setExplainSlowQueries
in interface ConnectionProperties
flag
- The explainSlowQueries to set.public void setFailOverReadOnly(boolean flag)
ConnectionProperties
setFailOverReadOnly
in interface ConnectionProperties
flag
- The failOverReadOnly to set.public void setFunctionsNeverReturnBlobs(boolean flag)
setFunctionsNeverReturnBlobs
in interface ConnectionProperties
public void setGatherPerfMetrics(boolean flag)
setGatherPerfMetrics
in interface ConnectionProperties
public void setGatherPerformanceMetrics(boolean flag)
ConnectionProperties
setGatherPerformanceMetrics
in interface ConnectionProperties
flag
- The gatherPerformanceMetrics to set.public void setGenerateSimpleParameterMetadata(boolean flag)
setGenerateSimpleParameterMetadata
in interface ConnectionProperties
public void setHoldResultsOpenOverStatementClose(boolean flag)
setHoldResultsOpenOverStatementClose
in interface ConnectionProperties
public void setIgnoreNonTxTables(boolean property)
ConnectionProperties
setIgnoreNonTxTables
in interface ConnectionProperties
public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag)
setIncludeInnodbStatusInDeadlockExceptions
in interface ConnectionProperties
public void setInitialTimeout(int property)
ConnectionProperties
setInitialTimeout
in interface ConnectionProperties
public void setInteractiveClient(boolean property)
setInteractiveClient
in interface ConnectionProperties
public void setIsInteractiveClient(boolean property)
ConnectionProperties
setIsInteractiveClient
in interface ConnectionProperties
public void setJdbcCompliantTruncation(boolean flag)
ConnectionProperties
setJdbcCompliantTruncation
in interface ConnectionProperties
flag
- The jdbcCompliantTruncation to set.public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads)
setJdbcCompliantTruncationForReads
in interface ConnectionProperties
public void setLargeRowSizeThreshold(java.lang.String value)
setLargeRowSizeThreshold
in interface ConnectionProperties
public void setLoadBalanceStrategy(java.lang.String strategy)
setLoadBalanceStrategy
in interface ConnectionProperties
public void setLocalSocketAddress(java.lang.String address)
setLocalSocketAddress
in interface ConnectionProperties
public void setLocatorFetchBufferSize(java.lang.String value) throws java.sql.SQLException
setLocatorFetchBufferSize
in interface ConnectionProperties
java.sql.SQLException
public void setLogSlowQueries(boolean flag)
ConnectionProperties
setLogSlowQueries
in interface ConnectionProperties
flag
- The logSlowQueries to set.public void setLogXaCommands(boolean flag)
setLogXaCommands
in interface ConnectionProperties
public void setLogger(java.lang.String property)
ConnectionProperties
setLogger
in interface ConnectionProperties
public void setLoggerClassName(java.lang.String className)
ConnectionProperties
setLoggerClassName
in interface ConnectionProperties
className
- The loggerClassName to set.public void setMaintainTimeStats(boolean flag)
setMaintainTimeStats
in interface ConnectionProperties
public void setMaxQuerySizeToLog(int sizeInBytes)
ConnectionProperties
setMaxQuerySizeToLog
in interface ConnectionProperties
sizeInBytes
- The maxQuerySizeToLog to set.public void setMaxReconnects(int property)
ConnectionProperties
setMaxReconnects
in interface ConnectionProperties
public void setMaxRows(int property)
ConnectionProperties
setMaxRows
in interface ConnectionProperties
public void setMetadataCacheSize(int value)
ConnectionProperties
setMetadataCacheSize
in interface ConnectionProperties
value
- the number of queries to cache metadata for.public void setNetTimeoutForStreamingResults(int value)
setNetTimeoutForStreamingResults
in interface ConnectionProperties
public void setNoAccessToProcedureBodies(boolean flag)
setNoAccessToProcedureBodies
in interface ConnectionProperties
public void setNoDatetimeStringSync(boolean flag)
setNoDatetimeStringSync
in interface ConnectionProperties
public void setNoTimezoneConversionForTimeType(boolean flag)
setNoTimezoneConversionForTimeType
in interface ConnectionProperties
public void setNullCatalogMeansCurrent(boolean value)
setNullCatalogMeansCurrent
in interface ConnectionProperties
public void setNullNamePatternMatchesAll(boolean value)
setNullNamePatternMatchesAll
in interface ConnectionProperties
public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag)
setOverrideSupportsIntegrityEnhancementFacility
in interface ConnectionProperties
public void setPacketDebugBufferSize(int size)
ConnectionProperties
setPacketDebugBufferSize
in interface ConnectionProperties
size
- The packetDebugBufferSize to set.public void setPadCharsWithSpace(boolean flag)
setPadCharsWithSpace
in interface ConnectionProperties
public void setParanoid(boolean property)
ConnectionProperties
setParanoid
in interface ConnectionProperties
public void setPedantic(boolean property)
ConnectionProperties
setPedantic
in interface ConnectionProperties
public void setPinGlobalTxToPhysicalConnection(boolean flag)
setPinGlobalTxToPhysicalConnection
in interface ConnectionProperties
public void setPopulateInsertRowWithDefaultValues(boolean flag)
setPopulateInsertRowWithDefaultValues
in interface ConnectionProperties
public void setPrepStmtCacheSize(int cacheSize)
setPrepStmtCacheSize
in interface ConnectionProperties
public void setPrepStmtCacheSqlLimit(int sqlLimit)
setPrepStmtCacheSqlLimit
in interface ConnectionProperties
public void setPreparedStatementCacheSize(int cacheSize)
ConnectionProperties
setPreparedStatementCacheSize
in interface ConnectionProperties
cacheSize
- The preparedStatementCacheSize to set.public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit)
ConnectionProperties
setPreparedStatementCacheSqlLimit
in interface ConnectionProperties
cacheSqlLimit
- The preparedStatementCacheSqlLimit to set.public void setProcessEscapeCodesForPrepStmts(boolean flag)
setProcessEscapeCodesForPrepStmts
in interface ConnectionProperties
public void setProfileSQL(boolean flag)
ConnectionProperties
setProfileSQL
in interface ConnectionProperties
flag
- The profileSQL to set.public void setProfileSql(boolean property)
ConnectionProperties
setProfileSql
in interface ConnectionProperties
public void setProfilerEventHandler(java.lang.String handler)
setProfilerEventHandler
in interface ConnectionProperties
public void setPropertiesTransform(java.lang.String value)
setPropertiesTransform
in interface ConnectionProperties
public void setQueriesBeforeRetryMaster(int property)
ConnectionProperties
setQueriesBeforeRetryMaster
in interface ConnectionProperties
public void setReconnectAtTxEnd(boolean property)
ConnectionProperties
setReconnectAtTxEnd
in interface ConnectionProperties
public void setRelaxAutoCommit(boolean property)
ConnectionProperties
setRelaxAutoCommit
in interface ConnectionProperties
public void setReportMetricsIntervalMillis(int millis)
ConnectionProperties
setReportMetricsIntervalMillis
in interface ConnectionProperties
millis
- The reportMetricsIntervalMillis to set.public void setRequireSSL(boolean property)
ConnectionProperties
setRequireSSL
in interface ConnectionProperties
public void setResourceId(java.lang.String resourceId)
setResourceId
in interface ConnectionProperties
public void setResultSetSizeThreshold(int threshold)
setResultSetSizeThreshold
in interface ConnectionProperties
public void setRetainStatementAfterResultSetClose(boolean flag)
setRetainStatementAfterResultSetClose
in interface ConnectionProperties
public void setRewriteBatchedStatements(boolean flag)
setRewriteBatchedStatements
in interface ConnectionProperties
public void setRollbackOnPooledClose(boolean flag)
setRollbackOnPooledClose
in interface ConnectionProperties
public void setRoundRobinLoadBalance(boolean flag)
ConnectionProperties
setRoundRobinLoadBalance
in interface ConnectionProperties
flag
- The roundRobinLoadBalance property to set.public void setRunningCTS13(boolean flag)
setRunningCTS13
in interface ConnectionProperties
public void setSecondsBeforeRetryMaster(int property)
ConnectionProperties
setSecondsBeforeRetryMaster
in interface ConnectionProperties
public void setSelfDestructOnPingMaxOperations(int maxOperations)
setSelfDestructOnPingMaxOperations
in interface ConnectionProperties
public void setSelfDestructOnPingSecondsLifetime(int seconds)
setSelfDestructOnPingSecondsLifetime
in interface ConnectionProperties
public void setServerTimezone(java.lang.String property)
ConnectionProperties
setServerTimezone
in interface ConnectionProperties
property
- DOCUMENT ME!public void setSessionVariables(java.lang.String variables)
setSessionVariables
in interface ConnectionProperties
public void setSlowQueryThresholdMillis(int millis)
ConnectionProperties
setSlowQueryThresholdMillis
in interface ConnectionProperties
millis
- The slowQueryThresholdMillis to set.public void setSlowQueryThresholdNanos(long nanos)
setSlowQueryThresholdNanos
in interface ConnectionProperties
public void setSocketFactory(java.lang.String name)
setSocketFactory
in interface ConnectionProperties
public void setSocketFactoryClassName(java.lang.String property)
ConnectionProperties
setSocketFactoryClassName
in interface ConnectionProperties
public void setSocketTimeout(int property)
ConnectionProperties
setSocketTimeout
in interface ConnectionProperties
public void setStatementInterceptors(java.lang.String value)
setStatementInterceptors
in interface ConnectionProperties
public void setStrictFloatingPoint(boolean property)
ConnectionProperties
setStrictFloatingPoint
in interface ConnectionProperties
public void setStrictUpdates(boolean property)
ConnectionProperties
setStrictUpdates
in interface ConnectionProperties
public void setTcpKeepAlive(boolean flag)
setTcpKeepAlive
in interface ConnectionProperties
public void setTcpNoDelay(boolean flag)
setTcpNoDelay
in interface ConnectionProperties
public void setTcpRcvBuf(int bufSize)
setTcpRcvBuf
in interface ConnectionProperties
public void setTcpSndBuf(int bufSize)
setTcpSndBuf
in interface ConnectionProperties
public void setTcpTrafficClass(int classFlags)
setTcpTrafficClass
in interface ConnectionProperties
public void setTinyInt1isBit(boolean flag)
setTinyInt1isBit
in interface ConnectionProperties
public void setTraceProtocol(boolean flag)
ConnectionProperties
setTraceProtocol
in interface ConnectionProperties
flag
- The logProtocol to set.public void setTransformedBitIsBoolean(boolean flag)
setTransformedBitIsBoolean
in interface ConnectionProperties
public void setTreatUtilDateAsTimestamp(boolean flag)
setTreatUtilDateAsTimestamp
in interface ConnectionProperties
public void setTrustCertificateKeyStorePassword(java.lang.String value)
setTrustCertificateKeyStorePassword
in interface ConnectionProperties
public void setTrustCertificateKeyStoreType(java.lang.String value)
setTrustCertificateKeyStoreType
in interface ConnectionProperties
public void setTrustCertificateKeyStoreUrl(java.lang.String value)
setTrustCertificateKeyStoreUrl
in interface ConnectionProperties
public void setUltraDevHack(boolean flag)
setUltraDevHack
in interface ConnectionProperties
public void setUseBlobToStoreUTF8OutsideBMP(boolean flag)
setUseBlobToStoreUTF8OutsideBMP
in interface ConnectionProperties
public void setUseCompression(boolean property)
ConnectionProperties
setUseCompression
in interface ConnectionProperties
public void setUseConfigs(java.lang.String configs)
setUseConfigs
in interface ConnectionProperties
public void setUseCursorFetch(boolean flag)
setUseCursorFetch
in interface ConnectionProperties
public void setUseDirectRowUnpack(boolean flag)
setUseDirectRowUnpack
in interface ConnectionProperties
public void setUseDynamicCharsetInfo(boolean flag)
setUseDynamicCharsetInfo
in interface ConnectionProperties
public void setUseFastDateParsing(boolean flag)
setUseFastDateParsing
in interface ConnectionProperties
public void setUseFastIntParsing(boolean flag)
setUseFastIntParsing
in interface ConnectionProperties
public void setUseGmtMillisForDatetimes(boolean flag)
setUseGmtMillisForDatetimes
in interface ConnectionProperties
public void setUseHostsInPrivileges(boolean property)
ConnectionProperties
setUseHostsInPrivileges
in interface ConnectionProperties
public void setUseInformationSchema(boolean flag)
setUseInformationSchema
in interface ConnectionProperties
public void setUseJDBCCompliantTimezoneShift(boolean flag)
setUseJDBCCompliantTimezoneShift
in interface ConnectionProperties
public void setUseJvmCharsetConverters(boolean flag)
setUseJvmCharsetConverters
in interface ConnectionProperties
public void setUseLegacyDatetimeCode(boolean flag)
setUseLegacyDatetimeCode
in interface ConnectionProperties
public void setUseLocalSessionState(boolean flag)
setUseLocalSessionState
in interface ConnectionProperties
public void setUseNanosForElapsedTime(boolean flag)
setUseNanosForElapsedTime
in interface ConnectionProperties
public void setUseOldAliasMetadataBehavior(boolean flag)
setUseOldAliasMetadataBehavior
in interface ConnectionProperties
public void setUseOldUTF8Behavior(boolean flag)
setUseOldUTF8Behavior
in interface ConnectionProperties
public void setUseOnlyServerErrorMessages(boolean flag)
setUseOnlyServerErrorMessages
in interface ConnectionProperties
public void setUseReadAheadInput(boolean flag)
setUseReadAheadInput
in interface ConnectionProperties
public void setUseSSL(boolean property)
ConnectionProperties
setUseSSL
in interface ConnectionProperties
public void setUseSSPSCompatibleTimezoneShift(boolean flag)
setUseSSPSCompatibleTimezoneShift
in interface ConnectionProperties
public void setUseServerPrepStmts(boolean flag)
setUseServerPrepStmts
in interface ConnectionProperties
public void setUseServerPreparedStmts(boolean flag)
ConnectionProperties
setUseServerPreparedStmts
in interface ConnectionProperties
flag
- The detectServerPreparedStmts to set.public void setUseSqlStateCodes(boolean flag)
ConnectionProperties
setUseSqlStateCodes
in interface ConnectionProperties
flag
- The useSqlStateCodes to set.public void setUseStreamLengthsInPrepStmts(boolean property)
ConnectionProperties
setUseStreamLengthsInPrepStmts
in interface ConnectionProperties
public void setUseTimezone(boolean property)
ConnectionProperties
setUseTimezone
in interface ConnectionProperties
public void setUseUltraDevWorkAround(boolean property)
ConnectionProperties
setUseUltraDevWorkAround
in interface ConnectionProperties
public void setUseUnbufferedInput(boolean flag)
ConnectionProperties
setUseUnbufferedInput
in interface ConnectionProperties
flag
- The useUnbufferedInput to set.public void setUseUnicode(boolean flag)
ConnectionProperties
setUseUnicode
in interface ConnectionProperties
flag
- The useUnicode to set.public void setUseUsageAdvisor(boolean useUsageAdvisorFlag)
ConnectionProperties
setUseUsageAdvisor
in interface ConnectionProperties
useUsageAdvisorFlag
- whether or not the driver advises of proper usage.public void setUtf8OutsideBmpExcludedColumnNamePattern(java.lang.String regexPattern)
setUtf8OutsideBmpExcludedColumnNamePattern
in interface ConnectionProperties
public void setUtf8OutsideBmpIncludedColumnNamePattern(java.lang.String regexPattern)
setUtf8OutsideBmpIncludedColumnNamePattern
in interface ConnectionProperties
public void setVerifyServerCertificate(boolean flag)
setVerifyServerCertificate
in interface ConnectionProperties
public void setYearIsDateType(boolean flag)
setYearIsDateType
in interface ConnectionProperties
public void setZeroDateTimeBehavior(java.lang.String behavior)
setZeroDateTimeBehavior
in interface ConnectionProperties
public boolean useUnbufferedInput()
ConnectionProperties
useUnbufferedInput
in interface ConnectionProperties
public boolean isSameResource(Connection c)
Connection
public void setInGlobalTx(boolean flag)
Connection
public boolean getUseColumnNamesInFindColumn()
getUseColumnNamesInFindColumn
in interface ConnectionProperties
public void setUseColumnNamesInFindColumn(boolean flag)
setUseColumnNamesInFindColumn
in interface ConnectionProperties
public boolean getUseLocalTransactionState()
getUseLocalTransactionState
in interface ConnectionProperties
public void setUseLocalTransactionState(boolean flag)
setUseLocalTransactionState
in interface ConnectionProperties
public boolean getCompensateOnDuplicateKeyUpdateCounts()
getCompensateOnDuplicateKeyUpdateCounts
in interface ConnectionProperties
public void setCompensateOnDuplicateKeyUpdateCounts(boolean flag)
setCompensateOnDuplicateKeyUpdateCounts
in interface ConnectionProperties
public boolean getUseAffectedRows()
getUseAffectedRows
in interface ConnectionProperties
public void setUseAffectedRows(boolean flag)
setUseAffectedRows
in interface ConnectionProperties
public java.lang.String getPasswordCharacterEncoding()
getPasswordCharacterEncoding
in interface ConnectionProperties
public void setPasswordCharacterEncoding(java.lang.String characterSet)
setPasswordCharacterEncoding
in interface ConnectionProperties
public int getAutoIncrementIncrement()
Connection
public int getLoadBalanceBlacklistTimeout()
getLoadBalanceBlacklistTimeout
in interface ConnectionProperties
public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout)
setLoadBalanceBlacklistTimeout
in interface ConnectionProperties
public int getRetriesAllDown()
getRetriesAllDown
in interface ConnectionProperties
public void setRetriesAllDown(int retriesAllDown)
setRetriesAllDown
in interface ConnectionProperties
public ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor
in interface ConnectionProperties
public java.lang.String getExceptionInterceptors()
getExceptionInterceptors
in interface ConnectionProperties
public void setExceptionInterceptors(java.lang.String exceptionInterceptors)
setExceptionInterceptors
in interface ConnectionProperties
public boolean getQueryTimeoutKillsConnection()
getQueryTimeoutKillsConnection
in interface ConnectionProperties
public void setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection)
setQueryTimeoutKillsConnection
in interface ConnectionProperties
public boolean hasSameProperties(Connection c)
Connection
public java.util.Properties getProperties()
Connection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |