java.lang.Objectorg.springframework.jca.cci.connection.DelegatingConnectionFactory
org.springframework.jca.cci.connection.SingleConnectionFactory
All Implemented Interfaces:
DisposableBean, javax.resource.cci.ConnectionFactory, InitializingBean
getConnection calls, and ignores calls to
Connection.close().
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.
Juergen - Hoeller1.2 - | Field Summary | ||
|---|---|---|
| protected final Log | logger | |
| Constructor: |
|---|
|
|
|
| Method from org.springframework.jca.cci.connection.SingleConnectionFactory Summary: |
|---|
| afterPropertiesSet, closeConnection, destroy, doCreateConnection, getCloseSuppressingConnectionProxy, getConnection, getConnection, initConnection, prepareConnection, resetConnection |
| Methods from org.springframework.jca.cci.connection.DelegatingConnectionFactory: |
|---|
| afterPropertiesSet, getConnection, getConnection, getMetaData, getRecordFactory, getReference, getTargetConnectionFactory, setReference, setTargetConnectionFactory |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.jca.cci.connection.SingleConnectionFactory Detail: |
|---|
|
|
As this bean implements DisposableBean, a bean factory will automatically invoke this on destruction of its cached singletons. |
|
|
|
|
Closes and reinitializes the Connection if an underlying Connection is present already. |
The default implementation is empty. Can be overridden in subclasses. |
|