Top Description Methods
org.hibernate.transaction.synchronization

public Interface BeforeCompletionManagedFlushChecker

Imports
javax.transaction.SystemException, .Transaction, org.hibernate.transaction.TransactionFactory

Contract for checking whether to perform a managed flush in a javax.transaction.Synchronization#beforeCompletion() callback
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True to indicate to perform the managed flush; false otherwise.
shouldDoManagedFlush
(TransactionFactory.Context
The Hibernate "transaction context"
ctx
,
Transaction
The JTA transaction
jtaTransaction
)

Check whether we should perform the managed flush

Method Detail

shouldDoManagedFlushback to summary
public boolean shouldDoManagedFlush(TransactionFactory.Context ctx, Transaction jtaTransaction) throws SystemException

Check whether we should perform the managed flush

Parameters
ctx:TransactionFactory.Context

The Hibernate "transaction context"

jtaTransaction:Transaction

The JTA transaction

Returns:boolean

True to indicate to perform the managed flush; false otherwise.

Exceptions
SystemException:
Can be thrown while accessing the JTA transaction; will result in transaction being marked for rollback (best effort).