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.hibernate3 |
Package providing integration of
Hibernate 3.x
with Spring concepts.
|
org.springframework.orm.jdo |
Package providing integration of JDO (Java Date Objects) 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.test |
This package contains the legacy JUnit 3.8 class hierarchy, which as of Spring 3.0
has been deprecated in favor of using the listener-based Spring TestContext Framework.
|
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(Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
protected void |
DataSourceTransactionManager.doBegin(Object transaction,
TransactionDefinition definition)
This implementation sets the isolation level but ignores the timeout.
|
static Integer |
DataSourceUtils.prepareConnectionForTransaction(Connection con,
TransactionDefinition definition)
Prepare the given Connection with the given transaction semantics.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JmsTransactionManager.doBegin(Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
protected void |
HibernateTransactionManager.doBegin(Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
Object |
JdoDialect.beginTransaction(javax.jdo.Transaction transaction,
TransactionDefinition definition)
Begin the given JDO transaction, applying the semantics specified by the
given Spring transaction definition (in particular, an isolation level
and a timeout).
|
Object |
DefaultJdoDialect.beginTransaction(javax.jdo.Transaction transaction,
TransactionDefinition definition)
This implementation invokes the standard JDO
Transaction.begin()
method and also Transaction.setIsolationLevel(String) if necessary. |
protected void |
JdoTransactionManager.doBegin(Object transaction,
TransactionDefinition definition) |
protected String |
DefaultJdoDialect.getJdoIsolationLevel(TransactionDefinition definition)
Determine the JDO isolation level String to use for the given
Spring transaction definition.
|
Modifier and Type | Method and Description |
---|---|
Object |
JpaDialect.beginTransaction(javax.persistence.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).
|
Object |
DefaultJpaDialect.beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition)
This implementation invokes the standard JPA
Transaction.begin
method. |
protected void |
JpaTransactionManager.doBegin(Object transaction,
TransactionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
Object |
HibernateJpaDialect.beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition) |
Object |
EclipseLinkJpaDialect.beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition) |
Object |
OpenJpaDialect.beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition) |
Object |
TopLinkJpaDialect.beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected TransactionDefinition |
AbstractTransactionalSpringContextTests.transactionDefinition
Deprecated.
Transaction definition used by this test class: by default, a plain
DefaultTransactionDefinition.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTransactionalSpringContextTests.setTransactionDefinition(TransactionDefinition customDefinition)
Deprecated.
Call this method in an overridden
ConditionalTestCase.runBare() method to override
the transaction attributes that will be used, so that AbstractSingleSpringContextTests.setUp()
and AbstractSingleSpringContextTests.tearDown() behavior is modified. |
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
Transaction attribute that takes the EJB approach to rolling
back on runtime, but not checked, exceptions.
|
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(Object transaction,
TransactionDefinition definition) |
protected void |
JtaTransactionManager.doJtaBegin(JtaTransactionObject txObject,
TransactionDefinition definition)
Perform a JTA begin on the JTA UserTransaction or TransactionManager.
|
protected void |
WebLogicJtaTransactionManager.doJtaBegin(JtaTransactionObject txObject,
TransactionDefinition definition) |
protected void |
OC4JJtaTransactionManager.doJtaBegin(JtaTransactionObject txObject,
TransactionDefinition definition)
Deprecated.
|
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(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,
Object transaction,
boolean newTransaction,
boolean newSynchronization,
boolean debug,
Object suspendedResources)
Create a rae 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,
Object transaction,
boolean newTransaction,
boolean newSynchronization,
boolean debug,
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.
|
Copyright © 2015. All rights reserved.