Method | Description | |
---|---|---|
FindDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : int[] |
Called from
|
|
Instantiate ( System entityName, EntityMode entityMode, object id ) : object |
Instantiate the entity class. Return The identifier property of the returned instance should be initialized with the given identifier. |
|
IsTransient ( object entity ) : bool? |
Called when a transient entity is passed to The return value determines if the object is saved |
|
OnDelete ( object entity, object id, object state, string propertyNames, IType types ) : void |
Called before an object is deleted It is not recommended that the interceptor modify the |
|
OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : bool |
Called when an object is detected to be dirty, during a flush. The interceptor may modify the detected |
|
OnLoad ( object entity, object id, object state, string propertyNames, IType types ) : bool |
Called just before an object is initialized The interceptor may change the |
|
OnSave ( object entity, object id, object state, string propertyNames, IType types ) : bool |
Called before an object is saved The interceptor may modify the |
|
PostFlush ( ICollection entities ) : void |
Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.
|
|
PreFlush ( ICollection entities ) : void |
Called before a flush
|
Method | Description | |
---|---|---|
HookDispatcher ( ) : System.Collections |
Initializes a new instance of the HookDispatcher class.
|
public FindDirty ( object entity, object id, object currentState, object previousState, string propertyNames, IType types ) : int[] | ||
entity | object | A persistent entity |
id | object | |
currentState | object | |
previousState | object | |
propertyNames | string | |
types | IType | |
return | int[] |
protected HookDispatcher ( ) : System.Collections | ||
return | System.Collections |
public Instantiate ( System entityName, EntityMode entityMode, object id ) : object | ||
entityName | System | the name of the entity |
entityMode | EntityMode | The type of entity instance to be returned. |
id | object | the identifier of the new instance |
return | object |
public IsTransient ( object entity ) : bool? | ||
entity | object | A transient entity |
return | bool? |
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 |
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 |
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 |
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 |
public PostFlush ( ICollection entities ) : void | ||
entities | ICollection | The entitites |
return | void |
public PreFlush ( ICollection entities ) : void | ||
entities | ICollection | The entities |
return | void |