Allows user code to inspect and/or change property values before they are written and after they
are read from the database
The following tables list the members exposed by the IInterceptor type.
Public 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
| |
| Instantiate |
Instantiate the entity class. Return nullNothingnullptr 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
|