|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.inet.tds.TdsDriver com.inet.tds.TdsDataSource com.inet.tds.DTCDataSource
public class DTCDataSource
This class implements the interface XADataSource. It works in conjunction with the MSDTC. You need to run the DTC on SQL Server site. Before you can use it you need to install the Resource Manager Proxy of this driver for every instance of the SQL Server.
TdsDataSource
,
Serialized FormField Summary |
---|
Fields inherited from class com.inet.tds.TdsDataSource |
---|
MODE_SQLSERVER_65, MODE_SQLSERVER_70, MODE_SQLSERVER_70_ASCII |
Constructor Summary | |
---|---|
DTCDataSource()
|
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
throws ever a SQLException |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
throws ever a SQLException |
java.lang.String |
getSystemDatabase()
Get the database for the extended stored procedures to communicate with the MSDTC. |
javax.sql.XAConnection |
getXAConnection()
Attempt to establish a database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Attempt to establish a database connection. |
void |
setSystemDatabase(java.lang.String systemDatabase)
Set the database for the extended stored procedures to communicate with the MSDTC. |
Methods inherited from class com.inet.tds.TdsDriver |
---|
acceptsURL, connect, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, run |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Constructor Detail |
---|
public DTCDataSource()
Method Detail |
---|
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
getConnection
in class TdsDataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
getConnection
in class TdsDataSource
username
- the database user on whose behalf the Connection is being made.password
- the user's password.
java.sql.SQLException
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
user
- the database user on whose behalf the Connection is being madepassword
- the user's password
java.sql.SQLException
public void setSystemDatabase(java.lang.String systemDatabase)
systemDatabase
- The catalog where you created the extended stored procedures.public java.lang.String getSystemDatabase()
|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |