|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionContext
Access to services needed in the context of processing transaction requests.
The context is roughly speaking equivalent to the Hibernate session, as opposed to theTransactionEnvironment
which is roughly equivalent to the Hibernate session factory
Method Summary | |
---|---|
void |
afterTransactionBegin(TransactionImplementor hibernateTransaction)
|
void |
afterTransactionCompletion(TransactionImplementor hibernateTransaction,
boolean successful)
|
void |
beforeTransactionCompletion(TransactionImplementor hibernateTransaction)
|
ConnectionReleaseMode |
getConnectionReleaseMode()
Get the mode for releasing JDBC connection in effect for ths context. |
JdbcConnectionAccess |
getJdbcConnectionAccess()
|
TransactionEnvironment |
getTransactionEnvironment()
Obtain the TransactionEnvironment associated with this context. |
boolean |
isAutoCloseSessionEnabled()
Should session automatically be closed after transaction completion in this context? |
boolean |
isClosed()
Is this context already closed? |
boolean |
isFlushBeforeCompletionEnabled()
Should before transaction completion processing perform a flush when initiated from JTA synchronization for this context? |
boolean |
isFlushModeNever()
Should flushes only happen manually for this context? |
void |
managedClose()
Perform a managed close. |
void |
managedFlush()
Perform a managed flush. |
String |
onPrepareStatement(String sql)
|
boolean |
shouldAutoClose()
Should JTA synchronization processing perform a automatic close (call to managedClose() for this
context? |
boolean |
shouldAutoJoinTransaction()
Should transactions be auto joined? Generally this is only a concern for CMT transactions. |
Method Detail |
---|
TransactionEnvironment getTransactionEnvironment()
TransactionEnvironment
associated with this context.
ConnectionReleaseMode getConnectionReleaseMode()
boolean shouldAutoJoinTransaction()
boolean isAutoCloseSessionEnabled()
boolean isClosed()
boolean isFlushModeNever()
boolean isFlushBeforeCompletionEnabled()
void managedFlush()
boolean shouldAutoClose()
managedClose()
for this
context?
void managedClose()
void afterTransactionBegin(TransactionImplementor hibernateTransaction)
void beforeTransactionCompletion(TransactionImplementor hibernateTransaction)
void afterTransactionCompletion(TransactionImplementor hibernateTransaction, boolean successful)
String onPrepareStatement(String sql)
JdbcConnectionAccess getJdbcConnectionAccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |