open class CciLocalTransactionManager : AbstractPlatformTransactionManager, ResourceTransactionManager, InitializingBean
org.springframework.transaction.PlatformTransactionManager implementation that manages local transactions for a single CCI ConnectionFactory. Binds a CCI Connection from the specified ConnectionFactory to the thread, potentially allowing for one thread-bound Connection per ConnectionFactory. Application code is required to retrieve the CCI Connection via Alternatively, you can allow application code to work with the standard Java EE lookup pattern |
|
open class ConnectionHolder : ResourceHolderSupport
Connection holder, wrapping a CCI Connection. CciLocalTransactionManager binds instances of this class to the thread, for a given ConnectionFactory. Note: This is an SPI class, not intended to be used by applications. |
|
open class ConnectionSpecConnectionFactoryAdapter : DelegatingConnectionFactory
An adapter for a target CCI javax.resource.cci.ConnectionFactory, applying the given ConnectionSpec to every standard Can be used to proxy a target JNDI ConnectionFactory that does not have a ConnectionSpec configured. Client code can work with the ConnectionFactory without passing in a ConnectionSpec on every In the following example, client code can simply transparently work with the preconfigured "myConnectionFactory", implicitly accessing "myTargetConnectionFactory" with the specified user credentials.
If the "connectionSpec" is empty, this proxy will simply delegate to the standard |
|
open class NotSupportedRecordFactory : RecordFactory
Implementation of the CCI RecordFactory interface that always throws NotSupportedException. Useful as a placeholder for a RecordFactory argument (for example as defined by the RecordCreator callback), in particular when the connector's |
|
open class SingleConnectionFactory : DelegatingConnectionFactory, DisposableBean
A CCI ConnectionFactory adapter that returns the same Connection on all Useful for testing and standalone environments, to keep using the same Connection for multiple CciTemplate calls, without having a pooling ConnectionFactory, also spanning any number of transactions. You can either pass in a CCI Connection directly, or let this factory lazily create a Connection via a given target ConnectionFactory. |
|
open class TransactionAwareConnectionFactoryProxy : DelegatingConnectionFactory
Proxy for a target CCI javax.resource.cci.ConnectionFactory, adding awareness of Spring-managed transactions. Similar to a transactional JNDI ConnectionFactory as provided by a Java EE server. Data access code that should remain unaware of Spring's data access support can work with this proxy to seamlessly participate in Spring-managed transactions. Note that the transaction manager, for example the CciLocalTransactionManager, still needs to work with underlying ConnectionFactory, not with this proxy. Make sure that TransactionAwareConnectionFactoryProxy is the outermost ConnectionFactory of a chain of ConnectionFactory proxies/adapters. TransactionAwareConnectionFactoryProxy can delegate either directly to the target connection pool or to some intermediate proxy/adapter like ConnectionSpecConnectionFactoryAdapter. Delegates to ConnectionFactoryUtils for automatically participating in thread-bound transactions, for example managed by CciLocalTransactionManager. This proxy allows data access code to work with the plain JCA CCI API and still participate in Spring-managed transactions, similar to CCI code in a Java EE/JTA environment. However, if possible, use Spring's ConnectionFactoryUtils, CciTemplate or CCI operation objects to get transaction participation even without a proxy for the target ConnectionFactory, avoiding the need to define such a proxy in the first place. NOTE: This ConnectionFactory proxy needs to return wrapped Connections in order to handle close calls properly. Therefore, the returned Connections cannot be cast to a native CCI Connection type or to a connection pool implementation type. |