The IInterceptor type exposes the following members.

Methods

  NameDescription
Public methodAfterTransactionBegin
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.
Public methodAfterTransactionCompletion
Called after a transaction is committed or rolled back.
Public methodBeforeTransactionCompletion
Called before a transaction is committed (but not before rollback).
Public methodFindDirty
Called from Flush(). The return value determines whether the entity is updated
Public methodGetEntity
Get a fully loaded entity instance that is cached externally
Public methodGetEntityName
Get the entity name for a persistent or transient instance
Public methodInstantiate
Instantiate the entity class. Return nullNothingnullptra null reference (Nothing in Visual Basic) to indicate that Hibernate should use the default constructor of the class
Public methodIsTransient
Called when a transient entity is passed to SaveOrUpdate.
Public methodOnCollectionRecreate
Called before a collection is (re)created.
Public methodOnCollectionRemove
Called before a collection is deleted.
Public methodOnCollectionUpdate
Called before a collection is updated.
Public methodOnDelete
Called before an object is deleted
Public methodOnFlushDirty
Called when an object is detected to be dirty, during a flush.
Public methodOnLoad
Called just before an object is initialized
Public methodOnPrepareStatement
Called when sql string is being prepared.
Public methodOnSave
Called before an object is saved
Public methodPostFlush
Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
Public methodPreFlush
Called before a flush
Public methodSetSession
Called when a session-scoped (and only session scoped) interceptor is attached to a session

See Also