|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ibatis.transaction.managed.ManagedTransactionFactory
public class ManagedTransactionFactory
Creates ManagedTransaction
instances.
ManagedTransaction
Constructor Summary | |
---|---|
ManagedTransactionFactory()
|
Method Summary | |
---|---|
Transaction |
newTransaction(Connection conn)
Creates a Transaction out of an existing connection. |
Transaction |
newTransaction(DataSource ds,
TransactionIsolationLevel level,
boolean autoCommit)
Creates a Transaction out of a datasource. |
void |
setProperties(Properties props)
Sets transaction factory custom properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedTransactionFactory()
Method Detail |
---|
public void setProperties(Properties props)
TransactionFactory
setProperties
in interface TransactionFactory
public Transaction newTransaction(Connection conn)
TransactionFactory
Transaction
out of an existing connection.
newTransaction
in interface TransactionFactory
conn
- Existing database connection
public Transaction newTransaction(DataSource ds, TransactionIsolationLevel level, boolean autoCommit)
TransactionFactory
Transaction
out of a datasource.
newTransaction
in interface TransactionFactory
ds
- DataSource to take the connection fromlevel
- Desired isolation levelautoCommit
- Desired autocommit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |