public interface TransactionContext extends Serializable
TransactionEnvironment
which is roughly equivalent to the Hibernate session factoryModifier and Type | Method and Description |
---|---|
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.
|
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)
JdbcConnectionAccess getJdbcConnectionAccess()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.