Package com.microsoft.sqlserver.jdbc
Class SQLServerXAConnection
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerPooledConnection
-
- com.microsoft.sqlserver.jdbc.SQLServerXAConnection
-
- All Implemented Interfaces:
java.io.Serializable
,javax.sql.PooledConnection
,javax.sql.XAConnection
public final class SQLServerXAConnection extends SQLServerPooledConnection implements javax.sql.XAConnection
Provides JDBC connections that can participate in distributed (XA) transactions.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the physical connection that this PooledConnection object represents.javax.transaction.xa.XAResource
getXAResource()
-
Methods inherited from class com.microsoft.sqlserver.jdbc.SQLServerPooledConnection
addConnectionEventListener, addStatementEventListener, getConnection, removeConnectionEventListener, removeStatementEventListener, toString
-
-
-
-
Method Detail
-
getXAResource
public javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLException
- Specified by:
getXAResource
in interfacejavax.sql.XAConnection
- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException
Closes the physical connection that this PooledConnection object represents.- Specified by:
close
in interfacejavax.sql.PooledConnection
- Overrides:
close
in classSQLServerPooledConnection
- Throws:
java.sql.SQLException
-
-