org.apache.ibatis.transaction.managed
Class ManagedTransactionFactory

java.lang.Object
  extended by org.apache.ibatis.transaction.managed.ManagedTransactionFactory
All Implemented Interfaces:
TransactionFactory

public class ManagedTransactionFactory
extends Object
implements TransactionFactory

Creates ManagedTransaction instances.

See Also:
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

ManagedTransactionFactory

public ManagedTransactionFactory()
Method Detail

setProperties

public void setProperties(Properties props)
Description copied from interface: TransactionFactory
Sets transaction factory custom properties.

Specified by:
setProperties in interface TransactionFactory

newTransaction

public Transaction newTransaction(Connection conn)
Description copied from interface: TransactionFactory
Creates a Transaction out of an existing connection.

Specified by:
newTransaction in interface TransactionFactory
Parameters:
conn - Existing database connection
Returns:
Transaction

newTransaction

public Transaction newTransaction(DataSource ds,
                                  TransactionIsolationLevel level,
                                  boolean autoCommit)
Description copied from interface: TransactionFactory
Creates a Transaction out of a datasource.

Specified by:
newTransaction in interface TransactionFactory
Parameters:
ds - DataSource to take the connection from
level - Desired isolation level
autoCommit - Desired autocommit
Returns:
Transaction


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.