C# 클래스 Castle.ActiveRecord.ActiveRecordHooksBase

파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

보호된 메소드들

메소드 설명
BeforeDelete ( IDictionary adapter ) : void

Hook to perform additional tasks before removing the object instance representation from the database.

BeforeLoad ( object id, IDictionary adapter ) : bool

Hook to transform the read data from the database before populating the object instance

BeforeSave ( IDictionary state ) : bool

Hook to change the object state before saving it.

FindDirty ( object id, IDictionary previousState, IDictionary currentState, IType types ) : int[]

Called from Flush(). The return value determines whether the entity is updated

an array of property indicies - the entity is dirty an empty array - the entity is not dirty null - use Hibernate's default dirty-checking algorithm

IsUnsaved ( ) : object

Called when a transient entity is passed to SaveOrUpdate.

The return value determines if the object is saved true - the entity is passed to Save(), resulting in an INSERT false - the entity is passed to Update(), resulting in an UPDATE null - Hibernate uses the unsaved-value mapping to determine if the object is unsaved

OnDelete ( ) : void

Lifecycle method invoked during Delete of the entity

OnFlushDirty ( object id, IDictionary previousState, IDictionary currentState, IType types ) : bool

OnLoad ( object id ) : void

Lifecycle method invoked during Load of the entity

OnSave ( ) : void

Lifecycle method invoked during Save of the entity

OnUpdate ( ) : void

Lifecycle method invoked during Update of the entity

PostFlush ( ) : void

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

PreFlush ( ) : void

Called before a flush

메소드 상세

BeforeDelete() 보호된 메소드

Hook to perform additional tasks before removing the object instance representation from the database.
protected BeforeDelete ( IDictionary adapter ) : void
adapter IDictionary
리턴 void

BeforeLoad() 보호된 메소드

Hook to transform the read data from the database before populating the object instance
protected BeforeLoad ( object id, IDictionary adapter ) : bool
id object id of the obejct
adapter IDictionary list of properties and their values
리턴 bool

BeforeSave() 보호된 메소드

Hook to change the object state before saving it.
protected BeforeSave ( IDictionary state ) : bool
state IDictionary
리턴 bool

FindDirty() 보호된 메소드

Called from Flush(). The return value determines whether the entity is updated
an array of property indicies - the entity is dirty an empty array - the entity is not dirty null - use Hibernate's default dirty-checking algorithm
protected FindDirty ( object id, IDictionary previousState, IDictionary currentState, IType types ) : int[]
id object
previousState IDictionary
currentState IDictionary
types IType
리턴 int[]

IsUnsaved() 보호된 메소드

Called when a transient entity is passed to SaveOrUpdate.
The return value determines if the object is saved true - the entity is passed to Save(), resulting in an INSERT false - the entity is passed to Update(), resulting in an UPDATE null - Hibernate uses the unsaved-value mapping to determine if the object is unsaved
protected IsUnsaved ( ) : object
리턴 object

OnDelete() 보호된 메소드

Lifecycle method invoked during Delete of the entity
protected OnDelete ( ) : void
리턴 void

OnFlushDirty() 보호된 메소드

protected OnFlushDirty ( object id, IDictionary previousState, IDictionary currentState, IType types ) : bool
id object
previousState IDictionary
currentState IDictionary
types IType
리턴 bool

OnLoad() 보호된 메소드

Lifecycle method invoked during Load of the entity
protected OnLoad ( object id ) : void
id object
리턴 void

OnSave() 보호된 메소드

Lifecycle method invoked during Save of the entity
protected OnSave ( ) : void
리턴 void

OnUpdate() 보호된 메소드

Lifecycle method invoked during Update of the entity
protected OnUpdate ( ) : void
리턴 void

PostFlush() 보호된 메소드

Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
protected PostFlush ( ) : void
리턴 void

PreFlush() 보호된 메소드

Called before a flush
protected PreFlush ( ) : void
리턴 void