java.lang.Object | ||
↳ | org.springframework.dao.support.DaoSupport | |
↳ | org.springframework.jca.cci.core.support.CciDaoSupport |
Convenient super class for CCI-based data access objects.
Requires a javax.resource.cci.ConnectionFactory to be set,
providing a CciTemplate
based
on it to subclasses through the getCciTemplate()
method.
This base class is mainly intended for CciTemplate usage but can
also be used when working with a Connection directly or when using
org.springframework.jca.cci.object
classes.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.dao.support.DaoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the CciTemplate for this DAO,
pre-initialized with the ConnectionFactory or set explicitly.
| |||||||||||
Return the ConnectionFactory used by this DAO.
| |||||||||||
Set the CciTemplate for this DAO explicitly,
as an alternative to specifying a ConnectionFactory.
| |||||||||||
Set the ConnectionFactory to be used by this DAO.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abstract subclasses must override this to check their configuration.
| |||||||||||
Create a CciTemplate for the given ConnectionFactory.
| |||||||||||
Obtain a CciTemplate derived from the main template instance,
inheriting the ConnectionFactory and other settings but
overriding the ConnectionSpec used for obtaining Connections.
| |||||||||||
Get a CCI Connection, either from the current transaction or a new one.
| |||||||||||
Close the given CCI Connection, created via this bean's ConnectionFactory,
if it isn't bound to the thread.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.dao.support.DaoSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Return the CciTemplate for this DAO, pre-initialized with the ConnectionFactory or set explicitly.
Return the ConnectionFactory used by this DAO.
Set the CciTemplate for this DAO explicitly, as an alternative to specifying a ConnectionFactory.
Set the ConnectionFactory to be used by this DAO.
Abstract subclasses must override this to check their configuration.
Implementors should be marked as final
Create a CciTemplate for the given ConnectionFactory. Only invoked if populating the DAO with a ConnectionFactory reference!
Can be overridden in subclasses to provide a CciTemplate instance with different configuration, or a custom CciTemplate subclass.
connectionFactory | the CCI ConnectionFactory to create a CciTemplate for |
---|
Obtain a CciTemplate derived from the main template instance, inheriting the ConnectionFactory and other settings but overriding the ConnectionSpec used for obtaining Connections.
connectionSpec | the CCI ConnectionSpec that the returned template instance is supposed to obtain Connections for |
---|
Get a CCI Connection, either from the current transaction or a new one.
CannotGetCciConnectionException | if the attempt to get a Connection failed |
---|
Close the given CCI Connection, created via this bean's ConnectionFactory, if it isn't bound to the thread.
con | Connection to close |
---|