【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,CMTTransactionFactory.java,希望对大家有所帮助!
//$Id: CMTTransactionFactory.java 8820 2005-12-10 17:25:56Z steveebersole $
package org.hibernate.transaction;
import java.util.Properties;
import org.hibernate.ConnectionReleaseMode;
import org.hibernate.HibernateException;
import org.hibernate.Transaction;
import org.hibernate.jdbc.JDBCContext;
/**
* Factory for <tt>CMTTransaction</tt>.
*
* @see CMTTransaction
* @author Gavin King
*/
public class CMTTransactionFactory implements TransactionFactory {
public ConnectionReleaseMode getDefaultReleaseMode() {
return ConnectionReleaseMode.AFTER_STATEMENT;
}
public void configure(Properties props) throws HibernateException {}
public Transaction createTransaction(JDBCContext jdbcContext, Context transactionContext)
throws HibernateException {
return new CMTTransaction(jdbcContext, transactionContext);
}
public boolean isTransactionManagerRequired() {
return true;
}
public boolean areCallbacksLocalToHibernateTransactions() {
return false;
}
}
上一篇:
CMTTransaction.java
下一篇:
英文简历范文:人力资源个人简历(七)