1 package org.hibernate.transaction; 3 4 import java.util.Properties ; 5 6 import org.hibernate.ConnectionReleaseMode; 7 import org.hibernate.HibernateException; 8 import org.hibernate.Transaction; 9 import org.hibernate.jdbc.JDBCContext; 10 import org.hibernate.engine.SessionFactoryImplementor; 11 12 21 public interface TransactionFactory { 22 23 public static interface Context { 24 public SessionFactoryImplementor getFactory(); 25 public boolean isOpen(); 26 27 public boolean isFlushModeNever(); 28 public boolean isFlushBeforeCompletionEnabled(); 29 public void managedFlush(); 30 31 public boolean shouldAutoClose(); 32 public void managedClose(); 33 } 34 35 43 public Transaction beginTransaction(JDBCContext jdbcContext, Context context) throws HibernateException; 44 45 50 public void configure(Properties props) throws HibernateException; 51 52 55 public ConnectionReleaseMode getDefaultReleaseMode(); 56 } 57 58 59 60 61 62 | Popular Tags |