public class DTCDataSource extends TdsDataSource implements javax.sql.XADataSource
TdsDataSource
,
Serialized FormMODE_SQLSERVER_65, MODE_SQLSERVER_70, MODE_SQLSERVER_70_ASCII
Constructor and Description |
---|
DTCDataSource() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, getAppname, getCharset, getDatabaseName, getDescription, getDstsave, getFailover, getFailoverInstanceName, getFailoverPort, getFailoverServerName, getFetchsize, getFulltran, getImpltran, getInitSQL, getInstanceName, getLanguage, getLastUpdateCount, getLoginTimeout, getLogWriter, getMode, getPacketSize, getPassword, getPort, getPortNumber, getPrepare, getPrepareLiveTime, getProperties, getProperty, getQueryTimeout, getReference, getResultSetType, getSecureLevel, getServerName, getSqlServer7Mode, getStatusRequest, getUrl, getUseCursorsAlways, getUseInsteadOfTrigger, getUser, getWSID, isMars, setAppname, setCharset, setDatabaseName, setDescription, setDstsave, setFailover, setFailoverInstanceName, setFailoverPort, setFailoverServerName, setFetchsize, setFulltran, setFulltran, setImpltran, setImpltran, setInitSQL, setInstanceName, setLanguage, setLastUpdateCount, setLogging, setLoginTimeout, setLogWriter, setMars, setMode, setPacketSize, setPassword, setPort, setPortNumber, setPrepare, setPrepareLiveTime, setProperties, setProperty, setProperty, setProperty, setQueryTimeout, setResultSetType, setSecureLevel, setServerName, setSqlServer7Mode, setStatusRequest, setUrl, setUseCursorsAlways, setUseInsteadOfTrigger, setUser, setWSID, toString
acceptsURL, connect, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, run
getClass, hashCode, notify, notifyAll, wait, wait, wait
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 passwordjava.sql.SQLException
public void setSystemDatabase(java.lang.String systemDatabase)
systemDatabase
- The catalog where you created the extended stored procedures.public java.lang.String getSystemDatabase()
copyright by i-net software