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.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.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 boolean |
CciLocalTransactionManager.isRollbackOnly(java.lang.Object transaction) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JdbcTransactionObjectSupport.createSavepoint()
This implementation creates a JDBC 3.0 Savepoint and returns it.
|
protected ConnectionHolder |
JdbcTransactionObjectSupport.getConnectionHolderForSavepoint() |
void |
JdbcTransactionObjectSupport.releaseSavepoint(java.lang.Object savepoint)
This implementation releases the given JDBC 3.0 Savepoint.
|
void |
JdbcTransactionObjectSupport.rollbackToSavepoint(java.lang.Object savepoint)
This implementation rolls back to the given JDBC 3.0 Savepoint.
|
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. |
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 | Class and Description |
---|---|
class |
CannotCreateTransactionException
Exception thrown when a transaction can't be created using an
underlying transaction API such as JTA.
|
class |
HeuristicCompletionException
Exception that represents a transaction failure caused by a heuristic
decision on the side of the transaction coordinator.
|
class |
IllegalTransactionStateException
Exception thrown when the existence or non-existence of a transaction
amounts to an illegal state according to the transaction propagation
behavior that applies.
|
class |
InvalidIsolationLevelException
Exception that gets thrown when an invalid isolation level is specified,
i.e.
|
class |
InvalidTimeoutException
Exception that gets thrown when an invalid timeout is specified,
that is, the specified timeout valid is out of range or the
transaction manager implementation doesn't support timeouts.
|
class |
NestedTransactionNotSupportedException
Exception thrown when attempting to work with a nested transaction
but nested transactions are not supported by the underlying backend.
|
class |
NoTransactionException
Exception thrown when an operation is attempted that
relies on an existing transaction (such as setting
rollback status) and there is no existing transaction.
|
class |
TransactionSuspensionNotSupportedException
Exception thrown when attempting to suspend an existing transaction
but transaction suspension is not supported by the underlying backend.
|
class |
TransactionSystemException
Exception thrown when a general transaction system error is encountered,
like on commit or rollback.
|
class |
TransactionTimedOutException
Exception to be thrown when a transaction has timed out.
|
class |
TransactionUsageException
Superclass for exceptions caused by inappropriate usage of
a Spring transaction API.
|
class |
UnexpectedRollbackException
Thrown when an attempt to commit a transaction resulted
in an unexpected rollback.
|
Modifier and Type | Method and Description |
---|---|
void |
PlatformTransactionManager.commit(TransactionStatus status)
Commit the given transaction, with regard to its status.
|
java.lang.Object |
SavepointManager.createSavepoint()
Create a new savepoint.
|
TransactionStatus |
PlatformTransactionManager.getTransaction(TransactionDefinition definition)
Return a currently active transaction or create a new one, according to
the specified propagation behavior.
|
void |
SavepointManager.releaseSavepoint(java.lang.Object savepoint)
Explicitly release the given savepoint.
|
void |
PlatformTransactionManager.rollback(TransactionStatus status)
Perform a rollback of the given transaction.
|
void |
SavepointManager.rollbackToSavepoint(java.lang.Object savepoint)
Roll back to the given savepoint.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
WebSphereUowTransactionManager.execute(TransactionDefinition definition,
TransactionCallback<T> callback) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPlatformTransactionManager.commit(TransactionStatus status)
This implementation of commit handles participating in existing
transactions and programmatic rollback requests.
|
void |
AbstractTransactionStatus.createAndHoldSavepoint()
Create a savepoint and hold it for the transaction.
|
java.lang.Object |
AbstractTransactionStatus.createSavepoint()
This implementation delegates to a SavepointManager for the
underlying transaction, if possible.
|
protected abstract void |
AbstractPlatformTransactionManager.doBegin(java.lang.Object transaction,
TransactionDefinition definition)
Begin a new transaction with semantics according to the given transaction
definition.
|
protected abstract void |
AbstractPlatformTransactionManager.doCommit(DefaultTransactionStatus status)
Perform an actual commit of the given transaction.
|
protected abstract java.lang.Object |
AbstractPlatformTransactionManager.doGetTransaction()
Return a transaction object for the current transaction state.
|
protected void |
AbstractPlatformTransactionManager.doResume(java.lang.Object transaction,
java.lang.Object suspendedResources)
Resume the resources of the current transaction.
|
protected abstract void |
AbstractPlatformTransactionManager.doRollback(DefaultTransactionStatus status)
Perform an actual rollback of the given transaction.
|
protected void |
AbstractPlatformTransactionManager.doSetRollbackOnly(DefaultTransactionStatus status)
Set the given transaction rollback-only.
|
protected java.lang.Object |
AbstractPlatformTransactionManager.doSuspend(java.lang.Object transaction)
Suspend the resources of the current transaction.
|
<T> T |
TransactionOperations.execute(TransactionCallback<T> action)
Execute the action specified by the given callback object within a transaction.
|
<T> T |
TransactionTemplate.execute(TransactionCallback<T> action) |
<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 boolean |
AbstractPlatformTransactionManager.isExistingTransaction(java.lang.Object transaction)
Check if the given transaction object indicates an existing transaction
(that is, a transaction which has already started).
|
protected void |
AbstractPlatformTransactionManager.registerAfterCompletionWithExistingTransaction(java.lang.Object transaction,
java.util.List<TransactionSynchronization> synchronizations)
Register the given list of transaction synchronizations with the existing transaction.
|
void |
AbstractTransactionStatus.releaseHeldSavepoint()
Release the savepoint that is held for the transaction.
|
void |
AbstractTransactionStatus.releaseSavepoint(java.lang.Object savepoint)
This implementation delegates to a SavepointManager for the
underlying transaction, if possible.
|
protected void |
AbstractPlatformTransactionManager.resume(java.lang.Object transaction,
AbstractPlatformTransactionManager.SuspendedResourcesHolder resourcesHolder)
Resume the given transaction.
|
void |
AbstractPlatformTransactionManager.rollback(TransactionStatus status)
This implementation of rollback handles participating in existing
transactions.
|
void |
AbstractTransactionStatus.rollbackToHeldSavepoint()
Roll back to the savepoint that is held for the transaction
and release the savepoint right afterwards.
|
void |
AbstractTransactionStatus.rollbackToSavepoint(java.lang.Object savepoint)
This implementation delegates to a SavepointManager for the
underlying transaction, if possible.
|
protected AbstractPlatformTransactionManager.SuspendedResourcesHolder |
AbstractPlatformTransactionManager.suspend(java.lang.Object transaction)
Suspend the given transaction.
|