|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the central interface in Spring's transaction support. Applications can use this directly, but it is not primarily meant as API. Typically, applications will work with either TransactionTemplate or the AOP transaction interceptor.
For implementers, AbstractPlatformTransactionManager is a good starting point. The default implementations are DataSourceTransactionManager and JtaTransactionManager.
TransactionTemplate
,
TransactionInterceptor
,
AbstractPlatformTransactionManager
,
DataSourceTransactionManager
,
JtaTransactionManager
Method Summary | |
void |
commit(TransactionStatus status)
Commit the given transaction, with regard to its status. |
TransactionStatus |
getTransaction(TransactionDefinition definition)
Return a currently active transaction or create a new one. |
void |
rollback(TransactionStatus status)
Roll back the given transaction, with regard to its status. |
Method Detail |
public TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException
definition
- TransactionDefinition instance (can be null for defaults),
describing propagation behavior, isolation level, timeout etc.
TransactionException
- in case of lookup, creation, or system errorspublic void commit(TransactionStatus status) throws TransactionException
status
- object returned by the getTransaction() method.
TransactionException
- in case of commit or system errorspublic void rollback(TransactionStatus status) throws TransactionException
status
- object returned by the getTransaction() method.
TransactionException
- in case of system errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |