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) |
void |
endBatchExecution() |
void |
endPrepareStatement() |
void |
endStatementExecution() |
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.
|
void |
startBatchExecution() |
void |
startPrepareStatement() |
void |
startStatementExecution() |
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()
void startPrepareStatement()
void endPrepareStatement()
void startStatementExecution()
void endStatementExecution()
void startBatchExecution()
void endBatchExecution()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.