站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

JDBCContext.Context (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.jdbc
Interface JDBCContext.Context

All Superinterfaces:
TransactionFactory.Context
All Known Implementing Classes:
SessionImpl, StatelessSessionImpl
Enclosing interface:
JDBCContext

public static interface JDBCContext.Context
extends TransactionFactory.Context


Method Summary
 void afterTransactionBegin(Transaction tx)
          We cannot rely upon this method being called! It is only called if we are using Hibernate Transaction API.
 void afterTransactionCompletion(boolean success, Transaction tx)
           
 void beforeTransactionCompletion(Transaction tx)
           
 ConnectionReleaseMode getConnectionReleaseMode()
           
 boolean isAutoCloseSessionEnabled()
           
 
Methods inherited from interface org.hibernate.transaction.TransactionFactory.Context
getFactory, isClosed, isFlushBeforeCompletionEnabled, isFlushModeNever, managedClose, managedFlush, shouldAutoClose
 

Method Detail

afterTransactionBegin

public void afterTransactionBegin(Transaction tx)
We cannot rely upon this method being called! It is only called if we are using Hibernate Transaction API.


beforeTransactionCompletion

public void beforeTransactionCompletion(Transaction tx)

afterTransactionCompletion

public void afterTransactionCompletion(boolean success,
                                       Transaction tx)

getConnectionReleaseMode

public ConnectionReleaseMode getConnectionReleaseMode()

isAutoCloseSessionEnabled

public boolean isAutoCloseSessionEnabled()