The IInterceptor type exposes the following members.

Methods

  NameDescription
AfterTransactionBegin
Called when a NHibernate transaction is begun via the NHibernate ITransaction API. Will not be called if transactions are being controlled via some other mechanism.
AfterTransactionCompletion
Called after a transaction is committed or rolled back.
BeforeTransactionCompletion
Called before a transaction is committed (but not before rollback).
FindDirty
Called from Flush(). The return value determines whether the entity is updated
Instantiate
Instantiate the entity class. Return nullNothingnullptra null reference (Nothing in Visual Basic) to indicate that Hibernate should use the default constructor of the class
IsUnsaved
Called when a transient entity is passed to SaveOrUpdate.
OnDelete
Called before an object is deleted
OnFlushDirty
Called when an object is detected to be dirty, during a flush.
OnLoad
Called just before an object is initialized
OnSave
Called before an object is saved
PostFlush
Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
PreFlush
Called before a flush
SetSession
Called when a session-scoped (and only session scoped) interceptor is attached to a session

See Also