The IInterceptor type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | 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
|
![]() | GetEntity | Get a fully loaded entity instance that is cached externally |
![]() | GetEntityName | Get the entity name for a persistent or transient instance |
![]() | 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
|
![]() | IsTransient |
Called when a transient entity is passed to SaveOrUpdate.
|
![]() | OnCollectionRecreate | Called before a collection is (re)created. |
![]() | OnCollectionRemove | Called before a collection is deleted. |
![]() | OnCollectionUpdate | Called before a collection is updated. |
![]() | 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
|
![]() | OnPrepareStatement | Called when sql string is being prepared. |
![]() | 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
|