Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.CheckWriteOperationAllowed Method

Check whether write operations are allowed on the given Session.

[Visual Basic]
Public Overridable Sub CheckWriteOperationAllowed( _
   ByVal session As ISession _
)
[C#]
public virtual void CheckWriteOperationAllowed(
   ISession session
);

Parameters

session
The current Hibernate session.

Remarks

Default implementation throws an InvalidDataAccessApiUsageException in case of FlushMode.Never. Can be overridden in subclasses.

Exceptions

Exception Type Condition
InvalidDataAccessApiUsageException If write operation is attempted in read-only mode

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace