public class CallbackPreferringTransactionExecutor extends Object implements TransactionExecutor
Modifier and Type | Class and Description |
---|---|
protected static class |
CallbackPreferringTransactionExecutor.ThrowableHolder |
protected static class |
CallbackPreferringTransactionExecutor.ThrowableHolderException |
Constructor and Description |
---|
CallbackPreferringTransactionExecutor(org.springframework.transaction.PlatformTransactionManager platformTransactionManager) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.transaction.support.TransactionCallback<Object> |
createTransactionCallback(TransactionAttributeAdapter transactionAttributeAdapter,
com.liferay.petra.function.UnsafeSupplier<Object,Throwable> unsafeSupplier) |
<T> T |
execute(TransactionAttributeAdapter transactionAttributeAdapter,
com.liferay.petra.function.UnsafeSupplier<T,Throwable> unsafeSupplier) |
org.springframework.transaction.PlatformTransactionManager |
getPlatformTransactionManager() |
public CallbackPreferringTransactionExecutor(org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
public <T> T execute(TransactionAttributeAdapter transactionAttributeAdapter, com.liferay.petra.function.UnsafeSupplier<T,Throwable> unsafeSupplier) throws Throwable
execute
in interface TransactionExecutor
Throwable
public org.springframework.transaction.PlatformTransactionManager getPlatformTransactionManager()
getPlatformTransactionManager
in interface TransactionExecutor
protected org.springframework.transaction.support.TransactionCallback<Object> createTransactionCallback(TransactionAttributeAdapter transactionAttributeAdapter, com.liferay.petra.function.UnsafeSupplier<Object,Throwable> unsafeSupplier)