|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jnetdirect.datasource.BaseDatasource
com.jnetdirect.jsql.JSQLDataSource
com.jnetdirect.jsql.JSQLConnectionPoolDataSource
com.jnetdirect.jsql.JSQLXADataSource
public class JSQLXADataSource
JSQLXADataSource provides database connections for use in distributed (XA) transactions. JSQLXADataSource also supports connection pooling of physical connections. The XADataSource and XAConnection interfaces, which are defined in the package javax.sql, are implemented by JSQLConnect. An XAConnection object is a pooled connection that can participate in a distributed transaction. More precisely, XAConnection extends the PooledConnection interface by adding the method getXAResource. This method produces an XAResource object that can be used by a transaction manager to coordinate the work done on this connection with the other participants in the distributed transaction.
| Field Summary |
|---|
| Fields inherited from class com.jnetdirect.datasource.BaseDatasource |
|---|
debugLog |
| Constructor Summary | |
|---|---|
JSQLXADataSource()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDtcEnabled()
Get the MS DTC setting |
java.lang.String |
getDtcLoggingEnabled()
Get the MS DTC logging setting |
javax.sql.XAConnection |
getXAConnection()
Obtain a physical database connection to particate in an XA transaction. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Obtain a physical database connection to particate in an XA transaction with the specified user and password. |
boolean |
isWrapperFor(java.lang.Class iface)
|
void |
setDtcEnabled(java.lang.String way)
Set DTC Enabled |
void |
setDtcLoggingEnabled(java.lang.String way)
Controls logging of MS Distributed Transaction Coordinator (MS-DTC) calls. |
java.lang.Object |
unwrap(java.lang.Class iface)
|
| Methods inherited from class com.jnetdirect.jsql.JSQLConnectionPoolDataSource |
|---|
getPooledConnection, getPooledConnection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.CommonDataSource |
|---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Constructor Detail |
|---|
public JSQLXADataSource()
| Method Detail |
|---|
public javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLException - The database connection failed.
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLException - The database connection failed.public void setDtcEnabled(java.lang.String way)
"false" - or "0" - MS DTC is not used. This is the default.
XA transactions are implemented by local transactions."true" - or "1" - MS DTC is used to support XA distributed transactionspublic java.lang.String getDtcEnabled()
public void setDtcLoggingEnabled(java.lang.String way)
way - "false" or "0" - MS DTC logging is disabled. Only errors are logged to the log file.way - "true" or "1" - MS DTC logging is enabled.
Both errors and API calls are logged to the log file.public java.lang.String getDtcLoggingEnabled()
public boolean isWrapperFor(java.lang.Class iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.WrapperisWrapperFor in class JSQLConnectionPoolDataSourcejava.sql.SQLException
public java.lang.Object unwrap(java.lang.Class iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperunwrap in class JSQLConnectionPoolDataSourcejava.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||