Save This Page
Home » MySQL-JDBC-5.1.11 » com.mysql.jdbc.jdbc2.optional » [javadoc | source]
com.mysql.jdbc.jdbc2.optional
public class: MysqlConnectionPoolDataSource [javadoc | source]
java.lang.Object
   com.mysql.jdbc.ConnectionPropertiesImpl
      com.mysql.jdbc.jdbc2.optional.MysqlDataSource
         com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

All Implemented Interfaces:
    ConnectionPoolDataSource, DataSource, Referenceable, Serializable, ConnectionProperties

This class is used to obtain a physical connection and instantiate and return a MysqlPooledConnection. J2EE application servers map client calls to dataSource.getConnection to this class based upon mapping set within deployment descriptor. This class extends MysqlDataSource.
Fields inherited from com.mysql.jdbc.jdbc2.optional.MysqlDataSource:
mysqlDriver,  logWriter,  databaseName,  encoding,  hostName,  password,  profileSql,  url,  user,  explicitUrl,  port
Fields inherited from com.mysql.jdbc.ConnectionPropertiesImpl:
ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL,  ZERO_DATETIME_BEHAVIOR_EXCEPTION,  ZERO_DATETIME_BEHAVIOR_ROUND,  largeRowSizeThreshold
Method from com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource Summary:
getPooledConnection,   getPooledConnection
Methods from com.mysql.jdbc.jdbc2.optional.MysqlDataSource:
getConnection,   getConnection,   getConnection,   getDatabaseName,   getLogWriter,   getLoginTimeout,   getPort,   getPortNumber,   getReference,   getServerName,   getURL,   getUrl,   getUser,   setDatabaseName,   setLogWriter,   setLoginTimeout,   setPassword,   setPort,   setPortNumber,   setPropertiesViaRef,   setServerName,   setURL,   setUrl,   setUser
Methods from com.mysql.jdbc.ConnectionPropertiesImpl:
exposeAsDriverPropertyInfo,   exposeAsDriverPropertyInfoInternal,   exposeAsProperties,   exposeAsXml,   getAllowLoadLocalInfile,   getAllowMultiQueries,   getAllowNanAndInf,   getAllowUrlInLocalInfile,   getAlwaysSendSetIsolation,   getAutoClosePStmtStreams,   getAutoDeserialize,   getAutoGenerateTestcaseScript,   getAutoReconnectForPools,   getAutoSlowLog,   getBlobSendChunkSize,   getBlobsAreStrings,   getCacheCallableStatements,   getCacheCallableStmts,   getCachePrepStmts,   getCachePreparedStatements,   getCacheResultSetMetadata,   getCacheServerConfiguration,   getCallableStatementCacheSize,   getCallableStmtCacheSize,   getCapitalizeTypeNames,   getCharacterSetResults,   getClientCertificateKeyStorePassword,   getClientCertificateKeyStoreType,   getClientCertificateKeyStoreUrl,   getClientInfoProvider,   getClobCharacterEncoding,   getClobberStreamingResults,   getCompensateOnDuplicateKeyUpdateCounts,   getConnectTimeout,   getConnectionCollation,   getConnectionLifecycleInterceptors,   getContinueBatchOnError,   getCreateDatabaseIfNotExist,   getDefaultFetchSize,   getDontTrackOpenResources,   getDumpMetadataOnColumnNotFound,   getDumpQueriesOnException,   getDynamicCalendars,   getElideSetAutoCommits,   getEmptyStringsConvertToZero,   getEmulateLocators,   getEmulateUnsupportedPstmts,   getEnablePacketDebug,   getEnableQueryTimeouts,   getEncoding,   getExceptionInterceptor,   getExceptionInterceptors,   getExplainSlowQueries,   getFailOverReadOnly,   getFunctionsNeverReturnBlobs,   getGatherPerfMetrics,   getGatherPerformanceMetrics,   getGenerateSimpleParameterMetadata,   getHighAvailability,   getHoldResultsOpenOverStatementClose,   getIgnoreNonTxTables,   getIncludeInnodbStatusInDeadlockExceptions,   getInitialTimeout,   getInteractiveClient,   getIsInteractiveClient,   getJdbcCompliantTruncation,   getJdbcCompliantTruncationForReads,   getLargeRowSizeThreshold,   getLoadBalanceBlacklistTimeout,   getLoadBalanceStrategy,   getLocalSocketAddress,   getLocatorFetchBufferSize,   getLogSlowQueries,   getLogXaCommands,   getLogger,   getLoggerClassName,   getMaintainTimeStats,   getMaxAllowedPacket,   getMaxQuerySizeToLog,   getMaxReconnects,   getMaxRows,   getMetadataCacheSize,   getNetTimeoutForStreamingResults,   getNoAccessToProcedureBodies,   getNoDatetimeStringSync,   getNoTimezoneConversionForTimeType,   getNullCatalogMeansCurrent,   getNullNamePatternMatchesAll,   getOverrideSupportsIntegrityEnhancementFacility,   getPacketDebugBufferSize,   getPadCharsWithSpace,   getParanoid,   getPasswordCharacterEncoding,   getPedantic,   getPinGlobalTxToPhysicalConnection,   getPopulateInsertRowWithDefaultValues,   getPrepStmtCacheSize,   getPrepStmtCacheSqlLimit,   getPreparedStatementCacheSize,   getPreparedStatementCacheSqlLimit,   getProcessEscapeCodesForPrepStmts,   getProfileSQL,   getProfileSql,   getProfilerEventHandler,   getPropertiesTransform,   getQueriesBeforeRetryMaster,   getQueryTimeoutKillsConnection,   getReconnectAtTxEnd,   getRelaxAutoCommit,   getReportMetricsIntervalMillis,   getRequireSSL,   getResourceId,   getResultSetSizeThreshold,   getRetainStatementAfterResultSetClose,   getRetriesAllDown,   getRewriteBatchedStatements,   getRollbackOnPooledClose,   getRoundRobinLoadBalance,   getRunningCTS13,   getSecondsBeforeRetryMaster,   getSelfDestructOnPingMaxOperations,   getSelfDestructOnPingSecondsLifetime,   getServerTimezone,   getSessionVariables,   getSlowQueryThresholdMillis,   getSlowQueryThresholdNanos,   getSocketFactory,   getSocketFactoryClassName,   getSocketTimeout,   getStatementInterceptors,   getStrictFloatingPoint,   getStrictUpdates,   getTcpKeepAlive,   getTcpNoDelay,   getTcpRcvBuf,   getTcpSndBuf,   getTcpTrafficClass,   getTinyInt1isBit,   getTraceProtocol,   getTransformedBitIsBoolean,   getTreatUtilDateAsTimestamp,   getTrustCertificateKeyStorePassword,   getTrustCertificateKeyStoreType,   getTrustCertificateKeyStoreUrl,   getUltraDevHack,   getUseAffectedRows,   getUseBlobToStoreUTF8OutsideBMP,   getUseColumnNamesInFindColumn,   getUseCompression,   getUseConfigs,   getUseCursorFetch,   getUseDirectRowUnpack,   getUseDynamicCharsetInfo,   getUseFastDateParsing,   getUseFastIntParsing,   getUseGmtMillisForDatetimes,   getUseHostsInPrivileges,   getUseInformationSchema,   getUseJDBCCompliantTimezoneShift,   getUseJvmCharsetConverters,   getUseLegacyDatetimeCode,   getUseLocalSessionState,   getUseLocalTransactionState,   getUseNanosForElapsedTime,   getUseOldAliasMetadataBehavior,   getUseOldUTF8Behavior,   getUseOnlyServerErrorMessages,   getUseReadAheadInput,   getUseSSL,   getUseSSPSCompatibleTimezoneShift,   getUseServerPrepStmts,   getUseServerPreparedStmts,   getUseSqlStateCodes,   getUseStreamLengthsInPrepStmts,   getUseTimezone,   getUseUltraDevWorkAround,   getUseUnbufferedInput,   getUseUnicode,   getUseUsageAdvisor,   getUtf8OutsideBmpExcludedColumnNamePattern,   getUtf8OutsideBmpIncludedColumnNamePattern,   getVerifyServerCertificate,   getYearIsDateType,   getZeroDateTimeBehavior,   initializeFromRef,   initializeProperties,   postInitialization,   setAllowLoadLocalInfile,   setAllowMultiQueries,   setAllowNanAndInf,   setAllowUrlInLocalInfile,   setAlwaysSendSetIsolation,   setAutoClosePStmtStreams,   setAutoDeserialize,   setAutoGenerateTestcaseScript,   setAutoReconnect,   setAutoReconnectForConnectionPools,   setAutoReconnectForPools,   setAutoSlowLog,   setBlobSendChunkSize,   setBlobsAreStrings,   setCacheCallableStatements,   setCacheCallableStmts,   setCachePrepStmts,   setCachePreparedStatements,   setCacheResultSetMetadata,   setCacheServerConfiguration,   setCallableStatementCacheSize,   setCallableStmtCacheSize,   setCapitalizeDBMDTypes,   setCapitalizeTypeNames,   setCharacterEncoding,   setCharacterSetResults,   setClientCertificateKeyStorePassword,   setClientCertificateKeyStoreType,   setClientCertificateKeyStoreUrl,   setClientInfoProvider,   setClobCharacterEncoding,   setClobberStreamingResults,   setCompensateOnDuplicateKeyUpdateCounts,   setConnectTimeout,   setConnectionCollation,   setConnectionLifecycleInterceptors,   setContinueBatchOnError,   setCreateDatabaseIfNotExist,   setDefaultFetchSize,   setDetectServerPreparedStmts,   setDontTrackOpenResources,   setDumpMetadataOnColumnNotFound,   setDumpQueriesOnException,   setDynamicCalendars,   setElideSetAutoCommits,   setEmptyStringsConvertToZero,   setEmulateLocators,   setEmulateUnsupportedPstmts,   setEnablePacketDebug,   setEnableQueryTimeouts,   setEncoding,   setExceptionInterceptors,   setExplainSlowQueries,   setFailOverReadOnly,   setFunctionsNeverReturnBlobs,   setGatherPerfMetrics,   setGatherPerformanceMetrics,   setGenerateSimpleParameterMetadata,   setHighAvailability,   setHoldResultsOpenOverStatementClose,   setIgnoreNonTxTables,   setIncludeInnodbStatusInDeadlockExceptions,   setInitialTimeout,   setInteractiveClient,   setIsInteractiveClient,   setJdbcCompliantTruncation,   setJdbcCompliantTruncationForReads,   setLargeRowSizeThreshold,   setLoadBalanceBlacklistTimeout,   setLoadBalanceStrategy,   setLocalSocketAddress,   setLocatorFetchBufferSize,   setLogSlowQueries,   setLogXaCommands,   setLogger,   setLoggerClassName,   setMaintainTimeStats,   setMaxAllowedPacket,   setMaxQuerySizeToLog,   setMaxReconnects,   setMaxRows,   setMetadataCacheSize,   setNetTimeoutForStreamingResults,   setNoAccessToProcedureBodies,   setNoDatetimeStringSync,   setNoTimezoneConversionForTimeType,   setNullCatalogMeansCurrent,   setNullNamePatternMatchesAll,   setOverrideSupportsIntegrityEnhancementFacility,   setPacketDebugBufferSize,   setPadCharsWithSpace,   setParanoid,   setPasswordCharacterEncoding,   setPedantic,   setPinGlobalTxToPhysicalConnection,   setPopulateInsertRowWithDefaultValues,   setPrepStmtCacheSize,   setPrepStmtCacheSqlLimit,   setPreparedStatementCacheSize,   setPreparedStatementCacheSqlLimit,   setProcessEscapeCodesForPrepStmts,   setProfileSQL,   setProfileSql,   setProfilerEventHandler,   setPropertiesTransform,   setQueriesBeforeRetryMaster,   setQueryTimeoutKillsConnection,   setReconnectAtTxEnd,   setRelaxAutoCommit,   setReportMetricsIntervalMillis,   setRequireSSL,   setResourceId,   setResultSetSizeThreshold,   setRetainStatementAfterResultSetClose,   setRetriesAllDown,   setRewriteBatchedStatements,   setRollbackOnPooledClose,   setRoundRobinLoadBalance,   setRunningCTS13,   setSecondsBeforeRetryMaster,   setSelfDestructOnPingMaxOperations,   setSelfDestructOnPingSecondsLifetime,   setServerTimezone,   setSessionVariables,   setSlowQueryThresholdMillis,   setSlowQueryThresholdNanos,   setSocketFactory,   setSocketFactoryClassName,   setSocketTimeout,   setStatementInterceptors,   setStrictFloatingPoint,   setStrictUpdates,   setTcpKeepAlive,   setTcpNoDelay,   setTcpRcvBuf,   setTcpSndBuf,   setTcpTrafficClass,   setTinyInt1isBit,   setTraceProtocol,   setTransformedBitIsBoolean,   setTreatUtilDateAsTimestamp,   setTrustCertificateKeyStorePassword,   setTrustCertificateKeyStoreType,   setTrustCertificateKeyStoreUrl,   setUltraDevHack,   setUseAffectedRows,   setUseBlobToStoreUTF8OutsideBMP,   setUseColumnNamesInFindColumn,   setUseCompression,   setUseConfigs,   setUseCursorFetch,   setUseDirectRowUnpack,   setUseDynamicCharsetInfo,   setUseFastDateParsing,   setUseFastIntParsing,   setUseGmtMillisForDatetimes,   setUseHostsInPrivileges,   setUseInformationSchema,   setUseJDBCCompliantTimezoneShift,   setUseJvmCharsetConverters,   setUseLegacyDatetimeCode,   setUseLocalSessionState,   setUseLocalTransactionState,   setUseNanosForElapsedTime,   setUseOldAliasMetadataBehavior,   setUseOldUTF8Behavior,   setUseOnlyServerErrorMessages,   setUseReadAheadInput,   setUseSSL,   setUseSSPSCompatibleTimezoneShift,   setUseServerPrepStmts,   setUseServerPreparedStmts,   setUseSqlStateCodes,   setUseStreamLengthsInPrepStmts,   setUseTimezone,   setUseUltraDevWorkAround,   setUseUnbufferedInput,   setUseUnicode,   setUseUsageAdvisor,   setUtf8OutsideBmpExcludedColumnNamePattern,   setUtf8OutsideBmpIncludedColumnNamePattern,   setVerifyServerCertificate,   setYearIsDateType,   setZeroDateTimeBehavior,   storeToRef,   useUnbufferedInput
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource Detail:
 public synchronized PooledConnection getPooledConnection() throws SQLException 
    Returns a pooled connection.
 public synchronized PooledConnection getPooledConnection(String s,
    String s1) throws SQLException 
    This method is invoked by the container. Obtains physical connection using mySql.Driver class and returns a mysqlPooledConnection object.