public interface

BeforeCompletionManagedFlushChecker

org.hibernate.transaction.synchronization.BeforeCompletionManagedFlushChecker

Class Overview

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

Summary

Public Methods
abstract boolean shouldDoManagedFlush(TransactionFactory.Context ctx, Transaction jtaTransaction)
Check whether we should perform the managed flush

Public Methods

public abstract boolean shouldDoManagedFlush (TransactionFactory.Context ctx, Transaction jtaTransaction)

Check whether we should perform the managed flush

Parameters
ctx The Hibernate "transaction context"
jtaTransaction The JTA transaction
Returns
  • True to indicate to perform the managed flush; false otherwise.
Throws
Can be thrown while accessing the JTA transaction; will result in transaction being marked for rollback (best effort).
SystemException