Package org.frankframework.core
Class TransactionAttributes
java.lang.Object
org.frankframework.core.TransactionAttributes
- All Implemented Interfaces:
HasTransactionAttribute
- Direct Known Subclasses:
AbstractPipe
,JobDef
,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 transactionTimeout) 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 i) Timeout (in seconds) of transaction started to process a message.
-
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 transactionTimeout) -
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 i) Description copied from interface:HasTransactionAttribute
Timeout (in seconds) of transaction started to process a message.- Specified by:
setTransactionTimeout
in interfaceHasTransactionAttribute
-
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
-