Méthode | 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
|
Méthode | 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 | |
Résultat | int[] |
protected HookDispatcher ( ) : System.Collections | ||
Résultat | 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 |
Résultat | object |
public IsTransient ( object entity ) : bool? | ||
entity | object | A transient entity |
Résultat | bool? |
public OnDelete ( object entity, object id, object state, string propertyNames, IType types ) : void | ||
entity | object | |
id | object | |
state | object | |
propertyNames | string | |
types | IType | |
Résultat | 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 | |
Résultat | bool |
public OnLoad ( object entity, object id, object state, string propertyNames, IType types ) : bool | ||
entity | object | |
id | object | |
state | object | |
propertyNames | string | |
types | IType | |
Résultat | bool |
public OnSave ( object entity, object id, object state, string propertyNames, IType types ) : bool | ||
entity | object | |
id | object | |
state | object | |
propertyNames | string | |
types | IType | |
Résultat | bool |
public PostFlush ( ICollection entities ) : void | ||
entities | ICollection | The entitites |
Résultat | void |
public PreFlush ( ICollection entities ) : void | ||
entities | ICollection | The entities |
Résultat | void |