public class LocalXAConnectionFactory extends Object implements XAConnectionFactory
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LocalXAConnectionFactory.LocalXAResource
LocalXAResource is a fake XAResource for non-XA connections.
|
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionFactory |
connectionFactory |
protected TransactionRegistry |
transactionRegistry |
| Constructor and Description |
|---|
LocalXAConnectionFactory(TransactionManager transactionManager,
ConnectionFactory connectionFactory)
Creates an LocalXAConnectionFactory which uses the specified connection factory to create database
connections.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
Create a new
Connection in an
implementation specific fashion. |
TransactionRegistry |
getTransactionRegistry() |
protected TransactionRegistry transactionRegistry
protected ConnectionFactory connectionFactory
public LocalXAConnectionFactory(TransactionManager transactionManager, ConnectionFactory connectionFactory)
transactionManager - the transaction manager in which connections will be enlistedconnectionFactory - the connection factory from which connections will be retrievedpublic TransactionRegistry getTransactionRegistry()
getTransactionRegistry in interface XAConnectionFactorypublic Connection createConnection() throws SQLException
ConnectionFactoryConnection in an
implementation specific fashion.createConnection in interface ConnectionFactorycreateConnection in interface XAConnectionFactoryConnectionSQLException - if a database error occurs creating the connectionCopyright © 2015. All rights reserved.