C# 클래스 Prizm.Data.DAL.Hibernate.AuditInterceptor

상속: NHibernate.EmptyInterceptor, IDisposable
파일 보기 프로젝트 열기: AleksMorozova/prizm 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
OnDelete ( object entity, object id, object state, string propertyNames, NHibernate types ) : void

Is called whilr deleting record

OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, NHibernate types ) : bool

Is called while updating existing record

OnSave ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool

Is called while inserting new record

비공개 메소드들

메소드 설명
AuditInterceptor ( User currentUser ) : System
FlushDirtyEntityMapLikeComponent ( object entity, object currentState, object previousState, NHibernate types ) : void
IsAuditableType ( object obj ) : bool
IsMapLikeComponent ( object obj ) : bool
LogAudit ( object entity, string propertyNames, AuditRecordType actionType ) : void

Log insert/delete record (just one state)

LogAuditEntityMapLikeComponent ( object entity, AuditRecordType operationType ) : void
NewAuditRecord ( Item curentity, string fieldName, string newValue, string oldValue, AuditRecordType operationType ) : void

Creating log record and saving it to DB

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

OnDelete() 공개 메소드

Is called whilr deleting record
public OnDelete ( object entity, object id, object state, string propertyNames, NHibernate types ) : void
entity object
id object
state object
propertyNames string
types NHibernate
리턴 void

OnFlushDirty() 공개 메소드

Is called while updating existing record
public OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, NHibernate types ) : bool
entity object
id object
currentState object
previousState object
propertyNames string
types NHibernate
리턴 bool

OnSave() 공개 메소드

Is called while inserting new record
public OnSave ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool
entity object
id object
state object
propertyNames string
types NHibernate
리턴 bool