public interface TransactionFactory
Transaction
instances.Modifier and Type | Method and Description |
---|---|
Transaction |
newTransaction(Connection conn)
Creates a
Transaction out of an existing connection. |
Transaction |
newTransaction(DataSource dataSource,
TransactionIsolationLevel level,
boolean autoCommit)
Creates a
Transaction out of a datasource. |
void |
setProperties(Properties props)
Sets transaction factory custom properties.
|
void setProperties(Properties props)
props
- Transaction newTransaction(Connection conn)
Transaction
out of an existing connection.conn
- Existing database connectionTransaction newTransaction(DataSource dataSource, TransactionIsolationLevel level, boolean autoCommit)
Transaction
out of a datasource.dataSource
- DataSource to take the connection fromlevel
- Desired isolation levelautoCommit
- Desired autocommitCopyright © 2010–2015 MyBatis.org. All rights reserved.