|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.ConnectionPropertiesImpl
public class ConnectionPropertiesImpl
Represents configurable properties for Connections and DataSources. Can also expose properties as JDBC DriverPropertyInfo if required as well.
Nested Class Summary | |
---|---|
(package private) class |
ConnectionPropertiesImpl.BooleanConnectionProperty
|
(package private) class |
ConnectionPropertiesImpl.ConnectionProperty
|
(package private) class |
ConnectionPropertiesImpl.IntegerConnectionProperty
|
class |
ConnectionPropertiesImpl.LongConnectionProperty
|
(package private) class |
ConnectionPropertiesImpl.MemorySizeConnectionProperty
|
(package private) class |
ConnectionPropertiesImpl.StringConnectionProperty
|
Field Summary | |
---|---|
protected ConnectionPropertiesImpl.MemorySizeConnectionProperty |
largeRowSizeThreshold
|
protected static java.lang.String |
ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL
|
protected static java.lang.String |
ZERO_DATETIME_BEHAVIOR_EXCEPTION
|
protected static java.lang.String |
ZERO_DATETIME_BEHAVIOR_ROUND
|
Constructor Summary | |
---|---|
ConnectionPropertiesImpl()
|
Method Summary | |
---|---|
protected static java.sql.DriverPropertyInfo[] |
exposeAsDriverPropertyInfo(java.util.Properties info,
int slotsToReserve)
Exposes all ConnectionPropertyInfo instances as DriverPropertyInfo |
protected java.sql.DriverPropertyInfo[] |
exposeAsDriverPropertyInfoInternal(java.util.Properties info,
int slotsToReserve)
|
protected java.util.Properties |
exposeAsProperties(java.util.Properties info)
|
java.lang.String |
exposeAsXml()
Returns a description of the connection properties as an XML document. |
boolean |
getAllowLoadLocalInfile()
DOCUMENT ME! |
boolean |
getAllowMultiQueries()
DOCUMENT ME! |
boolean |
getAllowNanAndInf()
|
boolean |
getAllowUrlInLocalInfile()
|
boolean |
getAlwaysSendSetIsolation()
|
boolean |
getAutoClosePStmtStreams()
|
boolean |
getAutoDeserialize()
|
boolean |
getAutoGenerateTestcaseScript()
|
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 |
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()
|
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()
|
protected boolean |
getHighAvailability()
DOCUMENT ME! |
boolean |
getHoldResultsOpenOverStatementClose()
|
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()
|
java.lang.String |
getLogger()
DOCUMENT ME! |
java.lang.String |
getLoggerClassName()
DOCUMENT ME! |
boolean |
getLogSlowQueries()
DOCUMENT ME! |
boolean |
getLogXaCommands()
|
boolean |
getMaintainTimeStats()
|
int |
getMaxAllowedPacket()
|
int |
getMaxQuerySizeToLog()
DOCUMENT ME! |
int |
getMaxReconnects()
DOCUMENT ME! |
int |
getMaxRows()
DOCUMENT ME! |
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.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()
|
protected boolean |
getRetainStatementAfterResultSetClose()
|
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 |
getServerTimezone()
Returns the 'serverTimezone' property. |
java.lang.String |
getSessionVariables()
|
int |
getSlowQueryThresholdMillis()
DOCUMENT ME! |
long |
getSlowQueryThresholdNanos()
|
java.lang.String |
getSocketFactory()
|
java.lang.String |
getSocketFactoryClassName()
DOCUMENT ME! |
int |
getSocketTimeout()
DOCUMENT ME! |
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! |
boolean |
getTransformedBitIsBoolean()
|
boolean |
getTreatUtilDateAsTimestamp()
|
java.lang.String |
getTrustCertificateKeyStorePassword()
|
java.lang.String |
getTrustCertificateKeyStoreType()
|
java.lang.String |
getTrustCertificateKeyStoreUrl()
|
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()
|
boolean |
getYearIsDateType()
|
java.lang.String |
getZeroDateTimeBehavior()
|
protected void |
initializeFromRef(javax.naming.Reference ref)
Initializes driver properties that come from a JNDI reference (in the case of a javax.sql.DataSource bound into some name service that doesn't handle Java objects directly). |
protected void |
initializeProperties(java.util.Properties info)
Initializes driver properties that come from URL or properties passed to the driver manager. |
protected void |
postInitialization()
|
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 |
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 |
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 |
setFailOverReadOnly(boolean flag)
DOCUMENT ME! |
void |
setFunctionsNeverReturnBlobs(boolean flag)
|
void |
setGatherPerfMetrics(boolean flag)
|
void |
setGatherPerformanceMetrics(boolean flag)
DOCUMENT ME! |
void |
setGenerateSimpleParameterMetadata(boolean flag)
|
protected void |
setHighAvailability(boolean property)
DOCUMENT ME! |
void |
setHoldResultsOpenOverStatementClose(boolean flag)
|
void |
setIgnoreNonTxTables(boolean property)
DOCUMENT ME! |
void |
setIncludeInnodbStatusInDeadlockExceptions(boolean flag)
|
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 |
setMaxAllowedPacket(int max)
|
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 |
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 |
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)
|
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 |
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 |
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 |
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)
|
protected void |
storeToRef(javax.naming.Reference ref)
|
boolean |
useUnbufferedInput()
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL
protected static final java.lang.String ZERO_DATETIME_BEHAVIOR_EXCEPTION
protected static final java.lang.String ZERO_DATETIME_BEHAVIOR_ROUND
protected ConnectionPropertiesImpl.MemorySizeConnectionProperty largeRowSizeThreshold
Constructor Detail |
---|
public ConnectionPropertiesImpl()
Method Detail |
---|
public ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor
in interface ConnectionProperties
protected static java.sql.DriverPropertyInfo[] exposeAsDriverPropertyInfo(java.util.Properties info, int slotsToReserve) throws java.sql.SQLException
info
- the properties to load into these ConnectionPropertyInfo
instancesslotsToReserve
- the number of DPI slots to reserve for 'standard' DPI
properties (user, host, password, etc)
java.sql.SQLException
- if an error occursprotected java.sql.DriverPropertyInfo[] exposeAsDriverPropertyInfoInternal(java.util.Properties info, int slotsToReserve) throws java.sql.SQLException
java.sql.SQLException
protected java.util.Properties exposeAsProperties(java.util.Properties info) throws java.sql.SQLException
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 getAutoDeserialize()
getAutoDeserialize
in interface ConnectionProperties
public boolean getAutoGenerateTestcaseScript()
getAutoGenerateTestcaseScript
in interface ConnectionProperties
public boolean getAutoReconnectForPools()
ConnectionProperties
getAutoReconnectForPools
in interface ConnectionProperties
public int getBlobSendChunkSize()
getBlobSendChunkSize
in interface ConnectionProperties
public boolean getCacheCallableStatements()
ConnectionProperties
getCacheCallableStatements
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 boolean getCapitalizeTypeNames()
ConnectionProperties
getCapitalizeTypeNames
in interface ConnectionProperties
public java.lang.String getCharacterSetResults()
ConnectionProperties
getCharacterSetResults
in interface ConnectionProperties
public boolean getClobberStreamingResults()
ConnectionProperties
getClobberStreamingResults
in interface ConnectionProperties
public java.lang.String getClobCharacterEncoding()
getClobCharacterEncoding
in interface ConnectionProperties
public java.lang.String getConnectionCollation()
ConnectionProperties
getConnectionCollation
in interface ConnectionProperties
public int getConnectTimeout()
ConnectionProperties
getConnectTimeout
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 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 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 getGatherPerformanceMetrics()
ConnectionProperties
getGatherPerformanceMetrics
in interface ConnectionProperties
protected boolean getHighAvailability()
public boolean getHoldResultsOpenOverStatementClose()
getHoldResultsOpenOverStatementClose
in interface ConnectionProperties
public boolean getIgnoreNonTxTables()
ConnectionProperties
getIgnoreNonTxTables
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 int getLocatorFetchBufferSize()
getLocatorFetchBufferSize
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 getLogSlowQueries()
ConnectionProperties
getLogSlowQueries
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 boolean getNoDatetimeStringSync()
getNoDatetimeStringSync
in interface ConnectionProperties
public boolean getNullCatalogMeansCurrent()
getNullCatalogMeansCurrent
in interface ConnectionProperties
public boolean getNullNamePatternMatchesAll()
getNullNamePatternMatchesAll
in interface ConnectionProperties
public int getPacketDebugBufferSize()
ConnectionProperties
getPacketDebugBufferSize
in interface ConnectionProperties
public boolean getParanoid()
ConnectionProperties
getParanoid
in interface ConnectionProperties
public boolean getPedantic()
ConnectionProperties
getPedantic
in interface ConnectionProperties
public int getPreparedStatementCacheSize()
ConnectionProperties
getPreparedStatementCacheSize
in interface ConnectionProperties
public int getPreparedStatementCacheSqlLimit()
ConnectionProperties
getPreparedStatementCacheSqlLimit
in interface ConnectionProperties
public boolean getProfileSql()
ConnectionProperties
getProfileSql
in interface ConnectionProperties
public boolean getProfileSQL()
ConnectionProperties
getProfileSQL
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
protected boolean getRetainStatementAfterResultSetClose()
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 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 java.lang.String getSocketFactoryClassName()
ConnectionProperties
getSocketFactoryClassName
in interface ConnectionProperties
public int getSocketTimeout()
ConnectionProperties
getSocketTimeout
in interface ConnectionProperties
public boolean getStrictFloatingPoint()
ConnectionProperties
getStrictFloatingPoint
in interface ConnectionProperties
public boolean getStrictUpdates()
ConnectionProperties
getStrictUpdates
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 getUseCompression()
ConnectionProperties
getUseCompression
in interface ConnectionProperties
public boolean getUseFastIntParsing()
getUseFastIntParsing
in interface ConnectionProperties
public boolean getUseHostsInPrivileges()
ConnectionProperties
getUseHostsInPrivileges
in interface ConnectionProperties
public boolean getUseInformationSchema()
getUseInformationSchema
in interface ConnectionProperties
public boolean getUseLocalSessionState()
getUseLocalSessionState
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 getUseServerPreparedStmts()
ConnectionProperties
getUseServerPreparedStmts
in interface ConnectionProperties
public boolean getUseSqlStateCodes()
ConnectionProperties
getUseSqlStateCodes
in interface ConnectionProperties
public boolean getUseSSL()
ConnectionProperties
getUseSSL
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 boolean getYearIsDateType()
getYearIsDateType
in interface ConnectionProperties
public java.lang.String getZeroDateTimeBehavior()
getZeroDateTimeBehavior
in interface ConnectionProperties
protected void initializeFromRef(javax.naming.Reference ref) throws java.sql.SQLException
ref
- The JNDI Reference that holds RefAddrs for all properties
java.sql.SQLException
- DOCUMENT ME!protected void initializeProperties(java.util.Properties info) throws java.sql.SQLException
info
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!protected void postInitialization() throws java.sql.SQLException
java.sql.SQLException
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 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 setBlobSendChunkSize(java.lang.String value) throws java.sql.SQLException
setBlobSendChunkSize
in interface ConnectionProperties
java.sql.SQLException
public void setCacheCallableStatements(boolean flag)
ConnectionProperties
setCacheCallableStatements
in interface ConnectionProperties
flag
- The cacheCallableStatements to set.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 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 setClobberStreamingResults(boolean flag)
ConnectionProperties
setClobberStreamingResults
in interface ConnectionProperties
flag
- The clobberStreamingResults to set.public void setClobCharacterEncoding(java.lang.String encoding)
setClobCharacterEncoding
in interface ConnectionProperties
public void setConnectionCollation(java.lang.String collation)
ConnectionProperties
setConnectionCollation
in interface ConnectionProperties
collation
- The connectionCollation to set.public void setConnectTimeout(int timeoutMs)
ConnectionProperties
setConnectTimeout
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 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 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 setGatherPerformanceMetrics(boolean flag)
ConnectionProperties
setGatherPerformanceMetrics
in interface ConnectionProperties
flag
- The gatherPerformanceMetrics to set.protected void setHighAvailability(boolean property)
property
- public void setHoldResultsOpenOverStatementClose(boolean flag)
setHoldResultsOpenOverStatementClose
in interface ConnectionProperties
public void setIgnoreNonTxTables(boolean property)
ConnectionProperties
setIgnoreNonTxTables
in interface ConnectionProperties
public void setInitialTimeout(int property)
ConnectionProperties
setInitialTimeout
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 setLocatorFetchBufferSize(java.lang.String value) throws java.sql.SQLException
setLocatorFetchBufferSize
in interface ConnectionProperties
java.sql.SQLException
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 setLogSlowQueries(boolean flag)
ConnectionProperties
setLogSlowQueries
in interface ConnectionProperties
flag
- The logSlowQueries 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 setNoDatetimeStringSync(boolean flag)
setNoDatetimeStringSync
in interface ConnectionProperties
public void setNullCatalogMeansCurrent(boolean value)
setNullCatalogMeansCurrent
in interface ConnectionProperties
public void setNullNamePatternMatchesAll(boolean value)
setNullNamePatternMatchesAll
in interface ConnectionProperties
public void setPacketDebugBufferSize(int size)
ConnectionProperties
setPacketDebugBufferSize
in interface ConnectionProperties
size
- The packetDebugBufferSize to set.public void setParanoid(boolean property)
ConnectionProperties
setParanoid
in interface ConnectionProperties
public void setPedantic(boolean property)
ConnectionProperties
setPedantic
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 setProfileSql(boolean property)
ConnectionProperties
setProfileSql
in interface ConnectionProperties
public void setProfileSQL(boolean flag)
ConnectionProperties
setProfileSQL
in interface ConnectionProperties
flag
- The profileSQL to set.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 setRetainStatementAfterResultSetClose(boolean flag)
setRetainStatementAfterResultSetClose
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 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 setSocketFactoryClassName(java.lang.String property)
ConnectionProperties
setSocketFactoryClassName
in interface ConnectionProperties
public void setSocketTimeout(int property)
ConnectionProperties
setSocketTimeout
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 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 setUseCompression(boolean property)
ConnectionProperties
setUseCompression
in interface ConnectionProperties
public void setUseFastIntParsing(boolean flag)
setUseFastIntParsing
in interface ConnectionProperties
public void setUseHostsInPrivileges(boolean property)
ConnectionProperties
setUseHostsInPrivileges
in interface ConnectionProperties
public void setUseInformationSchema(boolean flag)
setUseInformationSchema
in interface ConnectionProperties
public void setUseLocalSessionState(boolean flag)
setUseLocalSessionState
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 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 setUseSSL(boolean property)
ConnectionProperties
setUseSSL
in interface ConnectionProperties
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 setYearIsDateType(boolean flag)
setYearIsDateType
in interface ConnectionProperties
public void setZeroDateTimeBehavior(java.lang.String behavior)
setZeroDateTimeBehavior
in interface ConnectionProperties
protected void storeToRef(javax.naming.Reference ref) throws java.sql.SQLException
java.sql.SQLException
public boolean useUnbufferedInput()
ConnectionProperties
useUnbufferedInput
in interface ConnectionProperties
public boolean getUseCursorFetch()
getUseCursorFetch
in interface ConnectionProperties
public void setUseCursorFetch(boolean flag)
setUseCursorFetch
in interface ConnectionProperties
public boolean getOverrideSupportsIntegrityEnhancementFacility()
getOverrideSupportsIntegrityEnhancementFacility
in interface ConnectionProperties
public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag)
setOverrideSupportsIntegrityEnhancementFacility
in interface ConnectionProperties
public boolean getNoTimezoneConversionForTimeType()
getNoTimezoneConversionForTimeType
in interface ConnectionProperties
public void setNoTimezoneConversionForTimeType(boolean flag)
setNoTimezoneConversionForTimeType
in interface ConnectionProperties
public boolean getUseJDBCCompliantTimezoneShift()
getUseJDBCCompliantTimezoneShift
in interface ConnectionProperties
public void setUseJDBCCompliantTimezoneShift(boolean flag)
setUseJDBCCompliantTimezoneShift
in interface ConnectionProperties
public boolean getAutoClosePStmtStreams()
getAutoClosePStmtStreams
in interface ConnectionProperties
public void setAutoClosePStmtStreams(boolean flag)
setAutoClosePStmtStreams
in interface ConnectionProperties
public boolean getProcessEscapeCodesForPrepStmts()
getProcessEscapeCodesForPrepStmts
in interface ConnectionProperties
public void setProcessEscapeCodesForPrepStmts(boolean flag)
setProcessEscapeCodesForPrepStmts
in interface ConnectionProperties
public boolean getUseGmtMillisForDatetimes()
getUseGmtMillisForDatetimes
in interface ConnectionProperties
public void setUseGmtMillisForDatetimes(boolean flag)
setUseGmtMillisForDatetimes
in interface ConnectionProperties
public boolean getDumpMetadataOnColumnNotFound()
getDumpMetadataOnColumnNotFound
in interface ConnectionProperties
public void setDumpMetadataOnColumnNotFound(boolean flag)
setDumpMetadataOnColumnNotFound
in interface ConnectionProperties
public java.lang.String getResourceId()
getResourceId
in interface ConnectionProperties
public void setResourceId(java.lang.String resourceId)
setResourceId
in interface ConnectionProperties
public boolean getRewriteBatchedStatements()
getRewriteBatchedStatements
in interface ConnectionProperties
public void setRewriteBatchedStatements(boolean flag)
setRewriteBatchedStatements
in interface ConnectionProperties
public boolean getJdbcCompliantTruncationForReads()
getJdbcCompliantTruncationForReads
in interface ConnectionProperties
public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads)
setJdbcCompliantTruncationForReads
in interface ConnectionProperties
public boolean getUseJvmCharsetConverters()
getUseJvmCharsetConverters
in interface ConnectionProperties
public void setUseJvmCharsetConverters(boolean flag)
setUseJvmCharsetConverters
in interface ConnectionProperties
public boolean getPinGlobalTxToPhysicalConnection()
getPinGlobalTxToPhysicalConnection
in interface ConnectionProperties
public void setPinGlobalTxToPhysicalConnection(boolean flag)
setPinGlobalTxToPhysicalConnection
in interface ConnectionProperties
public void setGatherPerfMetrics(boolean flag)
setGatherPerfMetrics
in interface ConnectionProperties
public boolean getGatherPerfMetrics()
getGatherPerfMetrics
in interface ConnectionProperties
public void setUltraDevHack(boolean flag)
setUltraDevHack
in interface ConnectionProperties
public boolean getUltraDevHack()
getUltraDevHack
in interface ConnectionProperties
public void setInteractiveClient(boolean property)
setInteractiveClient
in interface ConnectionProperties
public void setSocketFactory(java.lang.String name)
setSocketFactory
in interface ConnectionProperties
public java.lang.String getSocketFactory()
getSocketFactory
in interface ConnectionProperties
public void setUseServerPrepStmts(boolean flag)
setUseServerPrepStmts
in interface ConnectionProperties
public boolean getUseServerPrepStmts()
getUseServerPrepStmts
in interface ConnectionProperties
public void setCacheCallableStmts(boolean flag)
setCacheCallableStmts
in interface ConnectionProperties
public boolean getCacheCallableStmts()
getCacheCallableStmts
in interface ConnectionProperties
public void setCachePrepStmts(boolean flag)
setCachePrepStmts
in interface ConnectionProperties
public boolean getCachePrepStmts()
getCachePrepStmts
in interface ConnectionProperties
public void setCallableStmtCacheSize(int cacheSize)
setCallableStmtCacheSize
in interface ConnectionProperties
public int getCallableStmtCacheSize()
getCallableStmtCacheSize
in interface ConnectionProperties
public void setPrepStmtCacheSize(int cacheSize)
setPrepStmtCacheSize
in interface ConnectionProperties
public int getPrepStmtCacheSize()
getPrepStmtCacheSize
in interface ConnectionProperties
public void setPrepStmtCacheSqlLimit(int sqlLimit)
setPrepStmtCacheSqlLimit
in interface ConnectionProperties
public int getPrepStmtCacheSqlLimit()
getPrepStmtCacheSqlLimit
in interface ConnectionProperties
public boolean getNoAccessToProcedureBodies()
getNoAccessToProcedureBodies
in interface ConnectionProperties
public void setNoAccessToProcedureBodies(boolean flag)
setNoAccessToProcedureBodies
in interface ConnectionProperties
public boolean getUseOldAliasMetadataBehavior()
getUseOldAliasMetadataBehavior
in interface ConnectionProperties
public void setUseOldAliasMetadataBehavior(boolean flag)
setUseOldAliasMetadataBehavior
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStorePassword()
getClientCertificateKeyStorePassword
in interface ConnectionProperties
public void setClientCertificateKeyStorePassword(java.lang.String value)
setClientCertificateKeyStorePassword
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStoreType()
getClientCertificateKeyStoreType
in interface ConnectionProperties
public void setClientCertificateKeyStoreType(java.lang.String value)
setClientCertificateKeyStoreType
in interface ConnectionProperties
public java.lang.String getClientCertificateKeyStoreUrl()
getClientCertificateKeyStoreUrl
in interface ConnectionProperties
public void setClientCertificateKeyStoreUrl(java.lang.String value)
setClientCertificateKeyStoreUrl
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStorePassword()
getTrustCertificateKeyStorePassword
in interface ConnectionProperties
public void setTrustCertificateKeyStorePassword(java.lang.String value)
setTrustCertificateKeyStorePassword
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStoreType()
getTrustCertificateKeyStoreType
in interface ConnectionProperties
public void setTrustCertificateKeyStoreType(java.lang.String value)
setTrustCertificateKeyStoreType
in interface ConnectionProperties
public java.lang.String getTrustCertificateKeyStoreUrl()
getTrustCertificateKeyStoreUrl
in interface ConnectionProperties
public void setTrustCertificateKeyStoreUrl(java.lang.String value)
setTrustCertificateKeyStoreUrl
in interface ConnectionProperties
public boolean getUseSSPSCompatibleTimezoneShift()
getUseSSPSCompatibleTimezoneShift
in interface ConnectionProperties
public void setUseSSPSCompatibleTimezoneShift(boolean flag)
setUseSSPSCompatibleTimezoneShift
in interface ConnectionProperties
public boolean getTreatUtilDateAsTimestamp()
getTreatUtilDateAsTimestamp
in interface ConnectionProperties
public void setTreatUtilDateAsTimestamp(boolean flag)
setTreatUtilDateAsTimestamp
in interface ConnectionProperties
public boolean getUseFastDateParsing()
getUseFastDateParsing
in interface ConnectionProperties
public void setUseFastDateParsing(boolean flag)
setUseFastDateParsing
in interface ConnectionProperties
public java.lang.String getLocalSocketAddress()
getLocalSocketAddress
in interface ConnectionProperties
public void setLocalSocketAddress(java.lang.String address)
setLocalSocketAddress
in interface ConnectionProperties
public void setUseConfigs(java.lang.String configs)
setUseConfigs
in interface ConnectionProperties
public java.lang.String getUseConfigs()
getUseConfigs
in interface ConnectionProperties
public boolean getGenerateSimpleParameterMetadata()
getGenerateSimpleParameterMetadata
in interface ConnectionProperties
public void setGenerateSimpleParameterMetadata(boolean flag)
setGenerateSimpleParameterMetadata
in interface ConnectionProperties
public boolean getLogXaCommands()
getLogXaCommands
in interface ConnectionProperties
public void setLogXaCommands(boolean flag)
setLogXaCommands
in interface ConnectionProperties
public int getResultSetSizeThreshold()
getResultSetSizeThreshold
in interface ConnectionProperties
public void setResultSetSizeThreshold(int threshold)
setResultSetSizeThreshold
in interface ConnectionProperties
public int getNetTimeoutForStreamingResults()
getNetTimeoutForStreamingResults
in interface ConnectionProperties
public void setNetTimeoutForStreamingResults(int value)
setNetTimeoutForStreamingResults
in interface ConnectionProperties
public boolean getEnableQueryTimeouts()
getEnableQueryTimeouts
in interface ConnectionProperties
public void setEnableQueryTimeouts(boolean flag)
setEnableQueryTimeouts
in interface ConnectionProperties
public boolean getPadCharsWithSpace()
getPadCharsWithSpace
in interface ConnectionProperties
public void setPadCharsWithSpace(boolean flag)
setPadCharsWithSpace
in interface ConnectionProperties
public boolean getUseDynamicCharsetInfo()
getUseDynamicCharsetInfo
in interface ConnectionProperties
public void setUseDynamicCharsetInfo(boolean flag)
setUseDynamicCharsetInfo
in interface ConnectionProperties
public java.lang.String getClientInfoProvider()
getClientInfoProvider
in interface ConnectionProperties
public void setClientInfoProvider(java.lang.String classname)
setClientInfoProvider
in interface ConnectionProperties
public boolean getPopulateInsertRowWithDefaultValues()
getPopulateInsertRowWithDefaultValues
in interface ConnectionProperties
public void setPopulateInsertRowWithDefaultValues(boolean flag)
setPopulateInsertRowWithDefaultValues
in interface ConnectionProperties
public java.lang.String getLoadBalanceStrategy()
getLoadBalanceStrategy
in interface ConnectionProperties
public void setLoadBalanceStrategy(java.lang.String strategy)
setLoadBalanceStrategy
in interface ConnectionProperties
public boolean getTcpNoDelay()
getTcpNoDelay
in interface ConnectionProperties
public void setTcpNoDelay(boolean flag)
setTcpNoDelay
in interface ConnectionProperties
public boolean getTcpKeepAlive()
getTcpKeepAlive
in interface ConnectionProperties
public void setTcpKeepAlive(boolean flag)
setTcpKeepAlive
in interface ConnectionProperties
public int getTcpRcvBuf()
getTcpRcvBuf
in interface ConnectionProperties
public void setTcpRcvBuf(int bufSize)
setTcpRcvBuf
in interface ConnectionProperties
public int getTcpSndBuf()
getTcpSndBuf
in interface ConnectionProperties
public void setTcpSndBuf(int bufSize)
setTcpSndBuf
in interface ConnectionProperties
public int getTcpTrafficClass()
getTcpTrafficClass
in interface ConnectionProperties
public void setTcpTrafficClass(int classFlags)
setTcpTrafficClass
in interface ConnectionProperties
public boolean getUseNanosForElapsedTime()
getUseNanosForElapsedTime
in interface ConnectionProperties
public void setUseNanosForElapsedTime(boolean flag)
setUseNanosForElapsedTime
in interface ConnectionProperties
public long getSlowQueryThresholdNanos()
getSlowQueryThresholdNanos
in interface ConnectionProperties
public void setSlowQueryThresholdNanos(long nanos)
setSlowQueryThresholdNanos
in interface ConnectionProperties
public java.lang.String getStatementInterceptors()
getStatementInterceptors
in interface ConnectionProperties
public void setStatementInterceptors(java.lang.String value)
setStatementInterceptors
in interface ConnectionProperties
public boolean getUseDirectRowUnpack()
getUseDirectRowUnpack
in interface ConnectionProperties
public void setUseDirectRowUnpack(boolean flag)
setUseDirectRowUnpack
in interface ConnectionProperties
public java.lang.String getLargeRowSizeThreshold()
getLargeRowSizeThreshold
in interface ConnectionProperties
public void setLargeRowSizeThreshold(java.lang.String value)
setLargeRowSizeThreshold
in interface ConnectionProperties
public boolean getUseBlobToStoreUTF8OutsideBMP()
getUseBlobToStoreUTF8OutsideBMP
in interface ConnectionProperties
public void setUseBlobToStoreUTF8OutsideBMP(boolean flag)
setUseBlobToStoreUTF8OutsideBMP
in interface ConnectionProperties
public java.lang.String getUtf8OutsideBmpExcludedColumnNamePattern()
getUtf8OutsideBmpExcludedColumnNamePattern
in interface ConnectionProperties
public void setUtf8OutsideBmpExcludedColumnNamePattern(java.lang.String regexPattern)
setUtf8OutsideBmpExcludedColumnNamePattern
in interface ConnectionProperties
public java.lang.String getUtf8OutsideBmpIncludedColumnNamePattern()
getUtf8OutsideBmpIncludedColumnNamePattern
in interface ConnectionProperties
public void setUtf8OutsideBmpIncludedColumnNamePattern(java.lang.String regexPattern)
setUtf8OutsideBmpIncludedColumnNamePattern
in interface ConnectionProperties
public boolean getIncludeInnodbStatusInDeadlockExceptions()
getIncludeInnodbStatusInDeadlockExceptions
in interface ConnectionProperties
public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag)
setIncludeInnodbStatusInDeadlockExceptions
in interface ConnectionProperties
public boolean getBlobsAreStrings()
getBlobsAreStrings
in interface ConnectionProperties
public void setBlobsAreStrings(boolean flag)
setBlobsAreStrings
in interface ConnectionProperties
public boolean getFunctionsNeverReturnBlobs()
getFunctionsNeverReturnBlobs
in interface ConnectionProperties
public void setFunctionsNeverReturnBlobs(boolean flag)
setFunctionsNeverReturnBlobs
in interface ConnectionProperties
public boolean getAutoSlowLog()
getAutoSlowLog
in interface ConnectionProperties
public void setAutoSlowLog(boolean flag)
setAutoSlowLog
in interface ConnectionProperties
public java.lang.String getConnectionLifecycleInterceptors()
getConnectionLifecycleInterceptors
in interface ConnectionProperties
public void setConnectionLifecycleInterceptors(java.lang.String interceptors)
setConnectionLifecycleInterceptors
in interface ConnectionProperties
public java.lang.String getProfilerEventHandler()
getProfilerEventHandler
in interface ConnectionProperties
public void setProfilerEventHandler(java.lang.String handler)
setProfilerEventHandler
in interface ConnectionProperties
public boolean getVerifyServerCertificate()
getVerifyServerCertificate
in interface ConnectionProperties
public void setVerifyServerCertificate(boolean flag)
setVerifyServerCertificate
in interface ConnectionProperties
public boolean getUseLegacyDatetimeCode()
getUseLegacyDatetimeCode
in interface ConnectionProperties
public void setUseLegacyDatetimeCode(boolean flag)
setUseLegacyDatetimeCode
in interface ConnectionProperties
public int getSelfDestructOnPingSecondsLifetime()
getSelfDestructOnPingSecondsLifetime
in interface ConnectionProperties
public void setSelfDestructOnPingSecondsLifetime(int seconds)
setSelfDestructOnPingSecondsLifetime
in interface ConnectionProperties
public int getSelfDestructOnPingMaxOperations()
getSelfDestructOnPingMaxOperations
in interface ConnectionProperties
public void setSelfDestructOnPingMaxOperations(int maxOperations)
setSelfDestructOnPingMaxOperations
in interface ConnectionProperties
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 int getLoadBalanceBlacklistTimeout()
getLoadBalanceBlacklistTimeout
in interface ConnectionProperties
public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout)
setLoadBalanceBlacklistTimeout
in interface ConnectionProperties
public void setRetriesAllDown(int retriesAllDown)
setRetriesAllDown
in interface ConnectionProperties
public int getRetriesAllDown()
getRetriesAllDown
in interface ConnectionProperties
public void setUseAffectedRows(boolean flag)
setUseAffectedRows
in interface ConnectionProperties
public boolean getUseAffectedRows()
getUseAffectedRows
in interface ConnectionProperties
public void setPasswordCharacterEncoding(java.lang.String characterSet)
setPasswordCharacterEncoding
in interface ConnectionProperties
public java.lang.String getPasswordCharacterEncoding()
getPasswordCharacterEncoding
in interface ConnectionProperties
public void setExceptionInterceptors(java.lang.String exceptionInterceptors)
setExceptionInterceptors
in interface ConnectionProperties
public java.lang.String getExceptionInterceptors()
getExceptionInterceptors
in interface ConnectionProperties
public void setMaxAllowedPacket(int max)
public int getMaxAllowedPacket()
public boolean getQueryTimeoutKillsConnection()
getQueryTimeoutKillsConnection
in interface ConnectionProperties
public void setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection)
setQueryTimeoutKillsConnection
in interface ConnectionProperties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |