Callback interface for transactional code. Used with {@link TransactionTemplate}'s
execute
method, often as anonymous class within a method implementation.
Typically used to assemble various calls to transaction-unaware data access services into a higher-level service method with transaction demarcation. As an alternative, consider the use of declarative transaction demarcation (e.g. through Spring's {@link org.springframework.transaction.annotation.Transactional} annotation).
@author Juergen Hoeller
@since 17.03.2003
@see TransactionTemplate
@see CallbackPreferringPlatformTransactionManager