Package com.microsoft.sqlserver.jdbc
Class SQLServerConnectionPoolDataSource
java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerDataSource
com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource
- All Implemented Interfaces:
ISQLServerDataSource,java.io.Serializable,java.sql.Wrapper,javax.naming.Referenceable,javax.sql.CommonDataSource,javax.sql.ConnectionPoolDataSource,javax.sql.DataSource
- Direct Known Subclasses:
SQLServerXADataSource
public class SQLServerConnectionPoolDataSource extends SQLServerDataSource implements javax.sql.ConnectionPoolDataSource
Provides physical database connections for connection pool managers. SQLServerConnectionPoolDataSource is typically
used in Java Application Server environments that support built-in connection pooling and require a
ConnectionPoolDataSource to provide physical connections. For example, J2EE application servers that provide JDBC 3.0
API spec connection pooling.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SQLServerConnectionPoolDataSource() -
Method Summary
Modifier and Type Method Description javax.sql.PooledConnectiongetPooledConnection()javax.sql.PooledConnectiongetPooledConnection(java.lang.String user, java.lang.String password)javax.naming.ReferencegetReference()Methods inherited from class com.microsoft.sqlserver.jdbc.SQLServerDataSource
getAccessToken, getApplicationIntent, getApplicationName, getAuthentication, getCancelQueryTimeout, getClientCertificate, getClientKey, getColumnEncryptionSetting, getConnection, getConnection, getDatabaseName, getDescription, getDisableStatementPooling, getDomain, getEnablePrepareOnFirstPreparedStatementCall, getEnclaveAttestationProtocol, getEnclaveAttestationUrl, getEncrypt, getFailoverPartner, getFIPS, getGSSCredentials, getHostNameInCertificate, getInstanceName, getJASSConfigurationName, getKeyStoreAuthentication, getKeyStoreLocation, getKeyStorePrincipalId, getKeyVaultProviderClientId, getLastUpdateCount, getLockTimeout, getLoginTimeout, getLogWriter, getMSIClientId, getMultiSubnetFailover, getPacketSize, getParentLogger, getPortNumber, getQueryTimeout, getResponseBuffering, getSelectMethod, getSendStringParametersAsUnicode, getSendTimeAsDatetime, getServerName, getServerNameAsACE, getServerPreparedStatementDiscardThreshold, getServerSpn, getSocketFactoryClass, getSocketFactoryConstructorArg, getSocketTimeout, getSSLProtocol, getStatementPoolingCacheSize, getTransparentNetworkIPResolution, getTrustManagerClass, getTrustManagerConstructorArg, getTrustServerCertificate, getTrustStore, getTrustStoreType, getURL, getUseBulkCopyForBatchInsert, getUseFmtOnly, getUser, getWorkstationID, getXopenStates, isWrapperFor, setAccessToken, setApplicationIntent, setApplicationName, setAuthentication, setAuthenticationScheme, setCancelQueryTimeout, setClientCertificate, setClientKey, setClientKeyPassword, setColumnEncryptionSetting, setDatabaseName, setDescription, setDisableStatementPooling, setDomain, setEnablePrepareOnFirstPreparedStatementCall, setEnclaveAttestationProtocol, setEnclaveAttestationUrl, setEncrypt, setFailoverPartner, setFIPS, setGSSCredentials, setHostNameInCertificate, setInstanceName, setIntegratedSecurity, setJASSConfigurationName, setKeyStoreAuthentication, setKeyStoreLocation, setKeyStorePrincipalId, setKeyStoreSecret, setKeyVaultProviderClientId, setKeyVaultProviderClientKey, setLastUpdateCount, setLockTimeout, setLoginTimeout, setLogWriter, setMSIClientId, setMultiSubnetFailover, setPacketSize, setPassword, setPortNumber, setQueryTimeout, setResponseBuffering, setSelectMethod, setSendStringParametersAsUnicode, setSendTimeAsDatetime, setServerName, setServerNameAsACE, setServerPreparedStatementDiscardThreshold, setServerSpn, setSocketFactoryClass, setSocketFactoryConstructorArg, setSocketTimeout, setSSLProtocol, setStatementPoolingCacheSize, setTransparentNetworkIPResolution, setTrustManagerClass, setTrustManagerConstructorArg, setTrustServerCertificate, setTrustStore, setTrustStorePassword, setTrustStoreType, setURL, setUseBulkCopyForBatchInsert, setUseFmtOnly, setUser, setWorkstationID, setXopenStates, toString, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
Constructor Details
-
SQLServerConnectionPoolDataSource
public SQLServerConnectionPoolDataSource()
-
-
Method Details
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException- Specified by:
getPooledConnectionin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException- Specified by:
getPooledConnectionin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
getReference
public javax.naming.Reference getReference()- Specified by:
getReferencein interfacejavax.naming.Referenceable- Overrides:
getReferencein classSQLServerDataSource
-