C# Class NSoft.NFramework.Data.NHibernateEx.Interceptors.InterceptorDecorator

Inheritance: IInterceptor
Show file Open project: debop/NFramework

Public Methods

Method Description
AfterTransactionBegin ( ITransaction tx ) : void
AfterTransactionCompletion ( ITransaction tx ) : void
BeforeTransactionCompletion ( ITransaction tx ) : void
FindDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : int[]
GetEntity ( string entityName, object id ) : object
GetEntityName ( object entity ) : string
Instantiate ( string entityName, EntityMode entityMode, object id ) : object
InterceptorDecorator ( IInterceptor inner ) : System

Constructor

IsTransient ( object entity ) : bool?
OnCollectionRecreate ( object collection, object key ) : void
OnCollectionRemove ( object collection, object key ) : void
OnCollectionUpdate ( object collection, object key ) : void
OnDelete ( object entity, object id, object state, string propertyNames, IType types ) : void
OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : bool
OnLoad ( object entity, object id, object state, string propertyNames, IType types ) : bool
OnPrepareStatement ( NHibernate.SqlCommand.SqlString sql ) : NHibernate.SqlCommand.SqlString
OnSave ( object entity, object id, object state, string propertyNames, IType types ) : bool
PostFlush ( ICollection entities ) : void
PreFlush ( ICollection entities ) : void
SetSession ( ISession session ) : void

Method Details

AfterTransactionBegin() public method

public AfterTransactionBegin ( ITransaction tx ) : void
tx ITransaction
return void

AfterTransactionCompletion() public method

public AfterTransactionCompletion ( ITransaction tx ) : void
tx ITransaction
return void

BeforeTransactionCompletion() public method

public BeforeTransactionCompletion ( ITransaction tx ) : void
tx ITransaction
return void

FindDirty() public method

public FindDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : int[]
entity object
id object
currentState object
previousState object
propertyNames string
types IType
return int[]

GetEntity() public method

public GetEntity ( string entityName, object id ) : object
entityName string
id object
return object

GetEntityName() public method

public GetEntityName ( object entity ) : string
entity object
return string

Instantiate() public method

public Instantiate ( string entityName, EntityMode entityMode, object id ) : object
entityName string
entityMode EntityMode
id object
return object

InterceptorDecorator() public method

Constructor
public InterceptorDecorator ( IInterceptor inner ) : System
inner IInterceptor
return System

IsTransient() public method

public IsTransient ( object entity ) : bool?
entity object
return bool?

OnCollectionRecreate() public method

public OnCollectionRecreate ( object collection, object key ) : void
collection object
key object
return void

OnCollectionRemove() public method

public OnCollectionRemove ( object collection, object key ) : void
collection object
key object
return void

OnCollectionUpdate() public method

public OnCollectionUpdate ( object collection, object key ) : void
collection object
key object
return void

OnDelete() public method

public OnDelete ( object entity, object id, object state, string propertyNames, IType types ) : void
entity object
id object
state object
propertyNames string
types IType
return void

OnFlushDirty() public method

public OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : bool
entity object
id object
currentState object
previousState object
propertyNames string
types IType
return bool

OnLoad() public method

public OnLoad ( object entity, object id, object state, string propertyNames, IType types ) : bool
entity object
id object
state object
propertyNames string
types IType
return bool

OnPrepareStatement() public method

public OnPrepareStatement ( NHibernate.SqlCommand.SqlString sql ) : NHibernate.SqlCommand.SqlString
sql NHibernate.SqlCommand.SqlString
return NHibernate.SqlCommand.SqlString

OnSave() public method

public OnSave ( object entity, object id, object state, string propertyNames, IType types ) : bool
entity object
id object
state object
propertyNames string
types IType
return bool

PostFlush() public method

public PostFlush ( ICollection entities ) : void
entities ICollection
return void

PreFlush() public method

public PreFlush ( ICollection entities ) : void
entities ICollection
return void

SetSession() public method

public SetSession ( ISession session ) : void
session ISession
return void