001
014
015 package com.liferay.portal.spring.transaction;
016
017 import org.springframework.transaction.PlatformTransactionManager;
018
019
022 public interface TransactionHandler {
023
024 public void commit(
025 PlatformTransactionManager platformTransactionManager,
026 TransactionAttributeAdapter transactionAttributeAdapter,
027 TransactionStatusAdapter transactionStatusAdapter);
028
029 public void rollback(
030 PlatformTransactionManager platformTransactionManager,
031 Throwable throwable,
032 TransactionAttributeAdapter transactionAttributeAdapter,
033 TransactionStatusAdapter transactionStatusAdapter)
034 throws Throwable;
035
036 public TransactionStatusAdapter start(
037 PlatformTransactionManager platformTransactionManager,
038 TransactionAttributeAdapter transactionAttributeAdapter);
039
040 }