public class TransactionContextAwareTransactionFactory<T> extends Object implements org.apache.ibatis.transaction.TransactionFactory
TransactionFactory implementation for 'dependent' engine (so not the process engine, but the IDM/DMN/Form/... engine).
This implementation will switch depending on the current context:
If a transaction context is active, the dependent engine does not need to create a transaction, and a regular JdbcTransaction is used. Otherwise, the engine simply need to participate in
the existing transaction, and a ManagedTransaction is used.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory |
jdbcTransactionFactory |
protected org.apache.ibatis.transaction.managed.ManagedTransactionFactory |
managedTransactionFactory |
protected Class<T> |
transactionContextClass |
| Constructor and Description |
|---|
TransactionContextAwareTransactionFactory(Class<T> transactionContextClass) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isNonIdmTransactionContextActive() |
org.apache.ibatis.transaction.Transaction |
newTransaction(Connection conn) |
org.apache.ibatis.transaction.Transaction |
newTransaction(DataSource dataSource,
org.apache.ibatis.session.TransactionIsolationLevel level,
boolean autoCommit) |
void |
setProperties(Properties props) |
protected org.apache.ibatis.transaction.managed.ManagedTransactionFactory managedTransactionFactory
protected org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory jdbcTransactionFactory
public void setProperties(Properties props)
setProperties in interface org.apache.ibatis.transaction.TransactionFactorypublic org.apache.ibatis.transaction.Transaction newTransaction(Connection conn)
newTransaction in interface org.apache.ibatis.transaction.TransactionFactorypublic org.apache.ibatis.transaction.Transaction newTransaction(DataSource dataSource, org.apache.ibatis.session.TransactionIsolationLevel level, boolean autoCommit)
newTransaction in interface org.apache.ibatis.transaction.TransactionFactoryprotected boolean isNonIdmTransactionContextActive()
Copyright © 2017 Flowable. All rights reserved.