Class DefaultTransactionExecutor
Object
com.liferay.portal.spring.transaction.DefaultTransactionExecutor
- All Implemented Interfaces:
TransactionExecutor
- Author:
- Michael C. Han, Shuyang Zhou
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTransactionExecutor
(org.springframework.transaction.PlatformTransactionManager platformTransactionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit
(TransactionAttributeAdapter transactionAttributeAdapter, TransactionStatusAdapter transactionStatusAdapter) <T> T
execute
(TransactionAttributeAdapter transactionAttributeAdapter, com.liferay.petra.function.UnsafeSupplier<T, Throwable> unsafeSupplier) org.springframework.transaction.PlatformTransactionManager
void
rollback
(Throwable throwable1, TransactionAttributeAdapter transactionAttributeAdapter, TransactionStatusAdapter transactionStatusAdapter) start
(TransactionAttributeAdapter transactionAttributeAdapter)
-
Constructor Details
-
DefaultTransactionExecutor
public DefaultTransactionExecutor(org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
-
-
Method Details
-
commit
public void commit(TransactionAttributeAdapter transactionAttributeAdapter, TransactionStatusAdapter transactionStatusAdapter) - Specified by:
commit
in interfaceTransactionExecutor
-
execute
public <T> T execute(TransactionAttributeAdapter transactionAttributeAdapter, com.liferay.petra.function.UnsafeSupplier<T, Throwable> unsafeSupplier) throws Throwable- Specified by:
execute
in interfaceTransactionExecutor
- Throws:
Throwable
-
getPlatformTransactionManager
public org.springframework.transaction.PlatformTransactionManager getPlatformTransactionManager()- Specified by:
getPlatformTransactionManager
in interfaceTransactionExecutor
-
rollback
public void rollback(Throwable throwable1, TransactionAttributeAdapter transactionAttributeAdapter, TransactionStatusAdapter transactionStatusAdapter) throws Throwable - Specified by:
rollback
in interfaceTransactionExecutor
- Throws:
Throwable
-
start
- Specified by:
start
in interfaceTransactionExecutor
-