Package org.frankframework.core
Class TransactionAttributes
java.lang.Object
org.frankframework.core.TransactionAttributes
- All Implemented Interfaces:
HasTransactionAttribute
- Direct Known Subclasses:
AbstractJobDef
,AbstractPipe
,PipeLine
,Receiver
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static org.springframework.transaction.TransactionDefinition
configureTransactionAttributes
(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds) int
org.springframework.transaction.TransactionDefinition
getTxDef()
boolean
static boolean
isTransacted
(TransactionAttribute txAtt) void
setTransacted
(boolean transacted) Deprecated.void
setTransactionAttribute
(TransactionAttribute transactionAttribute) ThetransactionAttribute
declares transactional behavior of execution.void
setTransactionTimeout
(int transactionTimeoutSeconds) Set transactionTimeout in seconds.
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
TransactionAttributes
public TransactionAttributes()
-
-
Method Details
-
configure
- Throws:
ConfigurationException
-
configureTransactionAttributes
public static org.springframework.transaction.TransactionDefinition configureTransactionAttributes(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds) -
setTransacted
@Deprecated @ConfigurationWarning("implemented as setting of transacted=true as transactionAttribute=Required and transacted=false as transactionAttribute=Supports") public void setTransacted(boolean transacted) Deprecated. -
isTransacted
public boolean isTransacted() -
isTransacted
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeoutSeconds) Set transactionTimeout in seconds.- Specified by:
setTransactionTimeout
in interfaceHasTransactionAttribute
- Parameters:
transactionTimeoutSeconds
- Time in seconds after which a transaction will fail.
-
getTransactionAttribute
- Specified by:
getTransactionAttribute
in interfaceHasTransactionAttribute
-
setTransactionAttribute
Description copied from interface:HasTransactionAttribute
ThetransactionAttribute
declares transactional behavior of execution. It applies both to database transactions and XA transactions. The pipeline uses this to start a new transaction or suspend the current one when required. For developers: it is equal to <a href=\"https://docs.oracle.com/javaee/7/tutorial/transactions003.htm\">EJB transaction attribute. Possible values for transactionAttribute: <table border=\"1\">transactionAttribute callers Transaction Pipeline excecuted in Transaction <td colspan=\"1\" rowspan=\"2\">Required none T2 T1 T1 <td colspan=\"1\" rowspan=\"2\">RequiresNew none T2 T1 T2 <td colspan=\"1\" rowspan=\"2\">Mandatory none error T1 T1 <td colspan=\"1\" rowspan=\"2\">NotSupported none none T1 none <td colspan=\"1\" rowspan=\"2\">Supports none none T1 T1 <td colspan=\"1\" rowspan=\"2\">Never none none T1 error - Specified by:
setTransactionAttribute
in interfaceHasTransactionAttribute
-
getTransactionTimeout
public int getTransactionTimeout()- Specified by:
getTransactionTimeout
in interfaceHasTransactionAttribute
-
getTxDef
public org.springframework.transaction.TransactionDefinition getTxDef()- Specified by:
getTxDef
in interfaceHasTransactionAttribute
-