Namespaces

Types

Type IInterceptor

Namespace NHibernate

Methods

Public instance methods

void AfterTransactionBegin(ITransaction tx)

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.
Parameters
ITransaction tx

void AfterTransactionCompletion(ITransaction tx)

Called after a transaction is committed or rolled back.
Parameters
ITransaction tx

void BeforeTransactionCompletion(ITransaction tx)

Called before a transaction is committed (but not before rollback).
Parameters
ITransaction tx

Int32[] FindDirty(object entity, object id, Object[] currentState, Object[] previousState, String[] propertyNames, IType[] types)

Parameters
return Int32[]
object entity
object id
Object[] currentState
Object[] previousState
String[] propertyNames
IType[] types

object Instantiate(Type type, object id)

${WriteSummary(content)}
Parameters
return object ${WriteSummary(content)}
Type type A mapped type
object id The identifier of the new instance

object IsUnsaved(object entity)

Called when a transient entity is passed to SaveOrUpdate .
The return value determines if the object is saved
Parameters
return object
object entity A transient entity

void OnDelete(object entity, object id, Object[] state, String[] propertyNames, IType[] types)

Parameters
object entity
object id
Object[] state
String[] propertyNames
IType[] types

bool OnFlushDirty(object entity, object id, Object[] currentState, Object[] previousState, String[] propertyNames, IType[] types)

Parameters
return bool
object entity
object id
Object[] currentState
Object[] previousState
String[] propertyNames
IType[] types

bool OnLoad(object entity, object id, Object[] state, String[] propertyNames, IType[] types)

Parameters
return bool
object entity
object id
Object[] state
String[] propertyNames
IType[] types

bool OnSave(object entity, object id, Object[] state, String[] propertyNames, IType[] types)

Parameters
return bool
object entity
object id
Object[] state
String[] propertyNames
IType[] types

void PostFlush(ICollection entities)

Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
Parameters
ICollection entities The entitites

void PreFlush(ICollection entities)

Called before a flush
Parameters
ICollection entities The entities

void SetSession(ISession session)

Called when a session-scoped (and session scoped) interceptor is attached to a session
Parameters
ISession session