|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.apache.commons.dbcp.managed.LocalXAConnectionFactory
public class LocalXAConnectionFactory
An implementation of XAConnectionFactory which manages non-XA connections in XA transactions. A non-XA connection commits and rolls back as part of the XA transaction, but is not recoverable since the connection does not implement the 2-phase protocol.
| Constructor Summary | |
|---|---|
LocalXAConnectionFactory(javax.transaction.TransactionManager transactionManager,
ConnectionFactory connectionFactory)
Creates an LocalXAConnectionFactory which uses the specified connection factory to create database connections. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
createConnection()
Create a new Connection in an implementation specific fashion. |
TransactionRegistry |
getTransactionRegistry()
Gets the TransactionRegistry for this connection factory which contains a the XAResource for every connection created by this factory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalXAConnectionFactory(javax.transaction.TransactionManager transactionManager,
ConnectionFactory connectionFactory)
transactionManager - the transaction manager in which connections will be enlistedconnectionFactory - the connection factory from which connections will be retrieved| Method Detail |
|---|
public java.sql.Connection createConnection()
throws java.sql.SQLException
XAConnectionFactoryConnection in an implementation specific fashion.
An implementation can assume that the caller of this will wrap the connection in
a proxy that protects access to the setAutoCommit, commit and rollback when
enrolled in a XA transaction.
createConnection in interface ConnectionFactorycreateConnection in interface XAConnectionFactoryConnection
java.sql.SQLException - if a database error occurs creating the connectionpublic TransactionRegistry getTransactionRegistry()
XAConnectionFactory
getTransactionRegistry in interface XAConnectionFactory
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||