C# Class Rebel.Framework.Persistence.NHibernate.NhEventListeners

Inheritance: global::NHibernate.Event.IPostInsertEventListener, global::NHibernate.Event.IPostUpdateEventListener, global::NHibernate.Event.IDeleteEventListener, IPreDeleteEventListener, ISaveOrUpdateEventListener, IFlushEventListener, IMergeEventListener, IEvictEventListener
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
AddNodeIdHandler ( System.DisposableObject caller, Guid>.Action method ) : void
NhEventListeners ( ) : System
OnDelete ( NHibernate.Event.DeleteEvent @event ) : void

Handle the given delete event.

OnDelete ( NHibernate.Event.DeleteEvent @event, ISet transientEntities ) : void
OnEvict ( NHibernate.Event.EvictEvent @event ) : void
OnFlush ( NHibernate.Event.FlushEvent @event ) : void

Handle the given flush event.

OnMerge ( NHibernate.Event.MergeEvent @event ) : void

Handle the given merge event.

OnMerge ( NHibernate.Event.MergeEvent @event, IDictionary copiedAlready ) : void

Handle the given merge event.

OnPostInsert ( NHibernate.Event.PostInsertEvent @event ) : void
OnPostUpdate ( NHibernate.Event.PostUpdateEvent @event ) : void
OnPreDelete ( NHibernate.Event.PreDeleteEvent @event ) : bool

Return true if the operation should be vetoed

OnSaveOrUpdate ( NHibernate.Event.SaveOrUpdateEvent @event ) : void
RemoveNodeIdHandler ( System.DisposableObject caller ) : void

Protected Methods

Method Description
EnsureDisposedHandlersRemoved ( ) : void
OnNodeIdAvailable ( IReferenceByGuid referenceByGuid, System.Guid guid ) : void

Private Methods

Method Description
EnsureVersionIdsInitialised ( ) : ConcurrentHashedCollection
GetUsefulEntityName ( object entity, string entityName, object id ) : string

Method Details

AddNodeIdHandler() public static method

public static AddNodeIdHandler ( System.DisposableObject caller, Guid>.Action method ) : void
caller System.DisposableObject
method Guid>.Action
return void

EnsureDisposedHandlersRemoved() protected static method

protected static EnsureDisposedHandlersRemoved ( ) : void
return void

NhEventListeners() public method

public NhEventListeners ( ) : System
return System

OnDelete() public method

Handle the given delete event.
public OnDelete ( NHibernate.Event.DeleteEvent @event ) : void
@event NHibernate.Event.DeleteEvent
return void

OnDelete() public method

public OnDelete ( NHibernate.Event.DeleteEvent @event, ISet transientEntities ) : void
@event NHibernate.Event.DeleteEvent
transientEntities ISet
return void

OnEvict() public method

public OnEvict ( NHibernate.Event.EvictEvent @event ) : void
@event NHibernate.Event.EvictEvent
return void

OnFlush() public method

Handle the given flush event.
public OnFlush ( NHibernate.Event.FlushEvent @event ) : void
@event NHibernate.Event.FlushEvent
return void

OnMerge() public method

Handle the given merge event.
public OnMerge ( NHibernate.Event.MergeEvent @event ) : void
@event NHibernate.Event.MergeEvent
return void

OnMerge() public method

Handle the given merge event.
public OnMerge ( NHibernate.Event.MergeEvent @event, IDictionary copiedAlready ) : void
@event NHibernate.Event.MergeEvent
copiedAlready IDictionary
return void

OnNodeIdAvailable() protected static method

protected static OnNodeIdAvailable ( IReferenceByGuid referenceByGuid, System.Guid guid ) : void
referenceByGuid IReferenceByGuid
guid System.Guid
return void

OnPostInsert() public method

public OnPostInsert ( NHibernate.Event.PostInsertEvent @event ) : void
@event NHibernate.Event.PostInsertEvent
return void

OnPostUpdate() public method

public OnPostUpdate ( NHibernate.Event.PostUpdateEvent @event ) : void
@event NHibernate.Event.PostUpdateEvent
return void

OnPreDelete() public method

Return true if the operation should be vetoed
public OnPreDelete ( NHibernate.Event.PreDeleteEvent @event ) : bool
@event NHibernate.Event.PreDeleteEvent
return bool

OnSaveOrUpdate() public method

public OnSaveOrUpdate ( NHibernate.Event.SaveOrUpdateEvent @event ) : void
@event NHibernate.Event.SaveOrUpdateEvent
return void

RemoveNodeIdHandler() public static method

public static RemoveNodeIdHandler ( System.DisposableObject caller ) : void
caller System.DisposableObject
return void