Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.ApplyFlushMode Method

Apply the flush mode that's been specified for this accessor to the given Session.

[Visual Basic]
Protected Sub ApplyFlushMode( _
   ByVal session As ISession, _
   ByVal existingTransaction As Boolean _
)
[C#]
protected FlushModeHolder ApplyFlushMode(
   ISession session,
   bool existingTransaction
);

Parameters

session
The current Hibernate Session.
existingTransaction
if set to true if executing within an existing transaction.

Return Value

the previous flush mode to restore after the operation, or

null
if none

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace