Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TransactionSynchronizationAdapter.BeforeCommit Method

Invoked before transaction commit (before BeforeCompletion)

[Visual Basic]
Public Overridable Sub BeforeCommit( _
   ByVal readOnly As Boolean _
) _
    Implements ITransactionSynchronization.BeforeCommit
[C#]
public virtual void BeforeCommit(
   bool readOnly
);

Parameters

readOnly
If the transaction is defined as a read-only transaction.

Implements

ITransactionSynchronization.BeforeCommit

Remarks

Can flush transactional sessions to the database.

Note that exceptions will get propagated to the commit caller and cause a rollback of the transaction.

See Also

TransactionSynchronizationAdapter Class | Spring.Transaction.Support Namespace