Package | Description |
---|---|
org.springframework.jca.cci.connection |
Provides a utility class for easy ConnectionFactory access,
a PlatformTransactionManager for local CCI transactions,
and various simple ConnectionFactory proxies/adapters.
|
org.springframework.jdbc.datasource |
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
|
org.springframework.jms.connection |
Provides a PlatformTransactionManager implementation for a single
JMS ConnectionFactory, and a SingleConnectionFactory adapter.
|
org.springframework.orm.hibernate5 |
Package providing integration of
Hibernate 5.x
with Spring concepts.
|
org.springframework.orm.jpa |
Package providing integration of JPA (Java Persistence API) with Spring concepts.
|
org.springframework.orm.jpa.vendor |
Support classes for adapting to specific JPA vendors.
|
org.springframework.transaction |
Exception hierarchy for Spring's transaction infrastructure,
independent of any specific transaction management system.
|
org.springframework.transaction.interceptor |
AOP-based solution for declarative transaction demarcation.
|
org.springframework.transaction.jta |
Transaction SPI implementation for JTA.
|
org.springframework.transaction.support |
Support classes for the org.springframework.transaction package.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CciLocalTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
protected void |
DataSourceTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition)
This implementation sets the isolation level but ignores the timeout.
|
static java.lang.Integer |
DataSourceUtils.prepareConnectionForTransaction(java.sql.Connection con,
TransactionDefinition definition)
Prepare the given Connection with the given transaction semantics.
|
protected void |
DataSourceTransactionManager.prepareTransactionalConnection(java.sql.Connection con,
TransactionDefinition definition)
Prepare the transactional
Connection right after transaction begin. |
Modifier and Type | Method and Description |
---|---|
protected void |
JmsTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
protected void |
HibernateTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JpaDialect.beginTransaction(EntityManager entityManager,
TransactionDefinition definition)
Begin the given JPA transaction, applying the semantics specified by the
given Spring transaction definition (in particular, an isolation level
and a timeout).
|
java.lang.Object |
DefaultJpaDialect.beginTransaction(EntityManager entityManager,
TransactionDefinition definition)
This implementation invokes the standard JPA
Transaction.begin
method. |
protected void |
JpaTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
HibernateJpaDialect.beginTransaction(EntityManager entityManager,
TransactionDefinition definition) |
java.lang.Object |
EclipseLinkJpaDialect.beginTransaction(EntityManager entityManager,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
TransactionStatus |
PlatformTransactionManager.getTransaction(TransactionDefinition definition)
Return a currently active transaction or create a new one, according to
the specified propagation behavior.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TransactionAttribute
This interface adds a
rollbackOn specification to TransactionDefinition . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTransactionAttribute
Spring's common transaction attribute implementation.
|
class |
DelegatingTransactionAttribute
TransactionAttribute implementation that delegates all calls to a given target
TransactionAttribute instance. |
class |
RuleBasedTransactionAttribute
TransactionAttribute implementation that works out whether a given exception
should cause transaction rollback by applying a number of rollback rules,
both positive and negative.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JtaTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition) |
protected void |
WebLogicJtaTransactionManager.doJtaBegin(JtaTransactionObject txObject,
TransactionDefinition definition) |
protected void |
JtaTransactionManager.doJtaBegin(JtaTransactionObject txObject,
TransactionDefinition definition)
Perform a JTA begin on the JTA UserTransaction or TransactionManager.
|
<T> T |
WebSphereUowTransactionManager.execute(TransactionDefinition definition,
TransactionCallback<T> callback) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTransactionDefinition
Default implementation of the
TransactionDefinition interface,
offering bean-style configuration and sensible default values
(PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false). |
class |
DelegatingTransactionDefinition
TransactionDefinition implementation that delegates all calls to a given target
TransactionDefinition instance. |
class |
TransactionTemplate
Template class that simplifies programmatic transaction demarcation and
transaction exception handling.
|
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractPlatformTransactionManager.determineTimeout(TransactionDefinition definition)
Determine the actual timeout to use for the given definition.
|
protected abstract void |
AbstractPlatformTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition)
Begin a new transaction with semantics according to the given transaction
definition.
|
<T> T |
CallbackPreferringPlatformTransactionManager.execute(TransactionDefinition definition,
TransactionCallback<T> callback)
Execute the action specified by the given callback object within a transaction.
|
TransactionStatus |
AbstractPlatformTransactionManager.getTransaction(TransactionDefinition definition)
This implementation handles propagation behavior.
|
protected DefaultTransactionStatus |
AbstractPlatformTransactionManager.newTransactionStatus(TransactionDefinition definition,
java.lang.Object transaction,
boolean newTransaction,
boolean newSynchronization,
boolean debug,
java.lang.Object suspendedResources)
Create a TransactionStatus instance for the given arguments.
|
protected void |
AbstractPlatformTransactionManager.prepareSynchronization(DefaultTransactionStatus status,
TransactionDefinition definition)
Initialize transaction synchronization as appropriate.
|
protected DefaultTransactionStatus |
AbstractPlatformTransactionManager.prepareTransactionStatus(TransactionDefinition definition,
java.lang.Object transaction,
boolean newTransaction,
boolean newSynchronization,
boolean debug,
java.lang.Object suspendedResources)
Create a new TransactionStatus for the given arguments,
also initializing transaction synchronization as appropriate.
|
Constructor and Description |
---|
DefaultTransactionDefinition(TransactionDefinition other)
Copy constructor.
|
DelegatingTransactionDefinition(TransactionDefinition targetDefinition)
Create a DelegatingTransactionAttribute for the given target attribute.
|
TransactionTemplate(PlatformTransactionManager transactionManager,
TransactionDefinition transactionDefinition)
Construct a new TransactionTemplate using the given transaction manager,
taking its default settings from the given transaction definition.
|