public class ContextAwareJdbcTransaction
extends org.apache.ibatis.transaction.jdbc.JdbcTransaction
JdbcTransaction of Mybatis. The main difference is that the threadlocal on ConnectionHolder gets set/cleared when the connection is opened/closed.
This class will be used by the Process Engine when running in 'standalone' mode (i.e. Mybatis directly vs in a transaction managed environment).| Modifier and Type | Field and Description |
|---|---|
protected boolean |
connectionStored |
| Constructor and Description |
|---|
ContextAwareJdbcTransaction(Connection connection) |
ContextAwareJdbcTransaction(DataSource ds,
org.apache.ibatis.session.TransactionIsolationLevel desiredLevel,
boolean desiredAutoCommit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
openConnection() |
public ContextAwareJdbcTransaction(Connection connection)
public ContextAwareJdbcTransaction(DataSource ds, org.apache.ibatis.session.TransactionIsolationLevel desiredLevel, boolean desiredAutoCommit)
protected void openConnection()
throws SQLException
openConnection in class org.apache.ibatis.transaction.jdbc.JdbcTransactionSQLExceptionpublic void close()
throws SQLException
close in interface org.apache.ibatis.transaction.Transactionclose in class org.apache.ibatis.transaction.jdbc.JdbcTransactionSQLExceptionCopyright © 2017 Flowable. All rights reserved.