Package org.frankframework.core
Class IbisTransaction
java.lang.Object
org.frankframework.core.IbisTransaction
Class which generates extra logging when starting and committing transactions.
- Author:
- Peter Leeuwenburgh
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIbisTransaction
(org.springframework.transaction.PlatformTransactionManager txManager, org.springframework.transaction.TransactionDefinition txDef, String descriptionOfOwner) -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
Complete this transaction by either committing it or rolling it back, depending on the transaction status.boolean
static boolean
isDistributedTransactionsSupported
(org.springframework.transaction.PlatformTransactionManager txManager) boolean
void
-
Field Details
-
log
protected final org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
IbisTransaction
public IbisTransaction(@Nonnull org.springframework.transaction.PlatformTransactionManager txManager, @Nonnull org.springframework.transaction.TransactionDefinition txDef, @Nonnull String descriptionOfOwner)
-
-
Method Details
-
isDistributedTransactionsSupported
public static boolean isDistributedTransactionsSupported(org.springframework.transaction.PlatformTransactionManager txManager) -
setRollbackOnly
public void setRollbackOnly() -
isRollbackOnly
public boolean isRollbackOnly() -
isCompleted
public boolean isCompleted() -
complete
public void complete()Complete this transaction by either committing it or rolling it back, depending on the transaction status.In case a rollback is performed, a successful rollback will not raise an exception.
-