October 2018
Intermediate to advanced
590 pages
15h 5m
English
Spring's transaction abstraction is based on a transaction strategy. That is, for different underlying transaction APIs, there is a specific implementation. And all of these implementations implement the org.springframework.transaction.PlatformTransactionManager interface, which is quite simple and looks like this:
public interface PlatformTransactionManager { TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException; void commit(TransactionStatus status) throws TransactionException; void rollback(TransactionStatus status) throws TransactionException;}
You can use the getTransaction() method with a TransactionDefinition object to get an object of TransactionStatus. And the returned ...
Read now
Unlock full access