org.hibernate.jdbc

Interface JDBCContext.Context

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

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 Details

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.

afterTransactionCompletion

public void afterTransactionCompletion(boolean success,
                                       Transaction tx)

beforeTransactionCompletion

public void beforeTransactionCompletion(Transaction tx)

getConnectionReleaseMode

public ConnectionReleaseMode getConnectionReleaseMode()

isAutoCloseSessionEnabled

public boolean isAutoCloseSessionEnabled()