public final class SQLServerXADataSource extends SQLServerConnectionPoolDataSource implements XADataSource
Because they extend the PooledConnection interface, XAConnection objects support all the methods of PooledConnection objects. They are reusable physical connections to an underlying data source and produce logical connection handles that can be passed back to a JDBC application.
XAConnection objects are produced by an XADataSource object. There is some similarity between ConnectionPoolDataSource objects and XADataSource
objects in that they are both implemented below a DataSource layer that is visible to the JDBC application. This architecture allows sqlserver to
support distributed transactions in a way that is transparent to the application.
SQLServerXADataSource can be configured to integrate with Microsoft Distributed Transaction Coordinator (DTC) to provide true, distributed
transaction processing.
| Constructor and Description |
|---|
SQLServerXADataSource() |
| Modifier and Type | Method and Description |
|---|---|
Reference |
getReference() |
XAConnection |
getXAConnection()
Obtain a physical database connection to particate in an XA transaction.
|
XAConnection |
getXAConnection(String user,
String password)
Obtain a physical database connection to particate in an XA transaction with the specified user and password.
|
getPooledConnection, getPooledConnectiongetAccessToken, getApplicationIntent, getApplicationName, getAuthentication, getColumnEncryptionSetting, getConnection, getConnection, getDatabaseName, getDescription, getEnablePrepareOnFirstPreparedStatementCall, getEncrypt, getFailoverPartner, getFIPS, getFIPSProvider, getGSSCredentials, getHostNameInCertificate, getInstanceName, getJASSConfigurationName, getKeyStoreAuthentication, getKeyStoreLocation, getLastUpdateCount, getLockTimeout, getLoginTimeout, getLogWriter, getMultiSubnetFailover, getPacketSize, getParentLogger, getPortNumber, getQueryTimeout, getResponseBuffering, getSelectMethod, getSendStringParametersAsUnicode, getSendTimeAsDatetime, getServerName, getServerNameAsACE, getServerPreparedStatementDiscardThreshold, getServerSpn, getSocketTimeout, getTransparentNetworkIPResolution, getTrustServerCertificate, getTrustStore, getTrustStoreType, getURL, getUser, getWorkstationID, getXopenStates, isWrapperFor, setAccessToken, setApplicationIntent, setApplicationName, setAuthentication, setAuthenticationScheme, setColumnEncryptionSetting, setDatabaseName, setDescription, setEnablePrepareOnFirstPreparedStatementCall, setEncrypt, setFailoverPartner, setFIPS, setFIPSProvider, setGSSCredentials, setHostNameInCertificate, setInstanceName, setIntegratedSecurity, setJASSConfigurationName, setKeyStoreAuthentication, setKeyStoreLocation, setKeyStoreSecret, setLastUpdateCount, setLockTimeout, setLoginTimeout, setLogWriter, setMultiSubnetFailover, setPacketSize, setPassword, setPortNumber, setQueryTimeout, setResponseBuffering, setSelectMethod, setSendStringParametersAsUnicode, setSendTimeAsDatetime, setServerName, setServerNameAsACE, setServerPreparedStatementDiscardThreshold, setServerSpn, setSocketTimeout, setTransparentNetworkIPResolution, setTrustServerCertificate, setTrustStore, setTrustStorePassword, setTrustStoreType, setURL, setUser, setWorkstationID, setXopenStates, toString, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection in interface XADataSourceSQLException - The database connection failed.public XAConnection getXAConnection() throws SQLException
getXAConnection in interface XADataSourceSQLException - The database connection failed.public Reference getReference()
getReference in interface ReferenceablegetReference in class SQLServerConnectionPoolDataSourceCopyright © 2017 Microsoft Corporation. All rights reserved.